File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -238,7 +238,8 @@ private function createLocalCopy(): void
238
238
*/
239
239
private function checkMediaDirectoryChanged (): bool
240
240
{
241
- return rtrim ($ this ->mediaDirectoryPath , '/ ' ) !== rtrim ($ this ->directoryMedia ->getAbsolutePath (), '/ ' );
241
+ return rtrim ($ this ->mediaDirectoryPath ?? '' , '/ ' )
242
+ !== rtrim ($ this ->directoryMedia ->getAbsolutePath () ?? '' , '/ ' );
242
243
}
243
244
244
245
/**
Original file line number Diff line number Diff line change @@ -296,7 +296,7 @@ public function fetch(Quote $quote, Total $total)
296
296
$ description = $ total ->getDiscountDescription ();
297
297
$ result = [
298
298
'code ' => $ this ->getCode (),
299
- 'title ' => strlen ( is_string ( $ description) ? $ description : '' ) ? __ ('Discount (%1) ' , $ description ) : __ ('Discount ' ),
299
+ 'title ' => strlen ($ description ?? '' ) ? __ ('Discount (%1) ' , $ description ) : __ ('Discount ' ),
300
300
'value ' => $ amount
301
301
];
302
302
}
You can’t perform that action at this time.
0 commit comments