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
238238 */
239239 private function checkMediaDirectoryChanged (): bool
240240 {
241- return rtrim ($ this ->mediaDirectoryPath , '/ ' ) !== rtrim ($ this ->directoryMedia ->getAbsolutePath (), '/ ' );
241+ return rtrim ($ this ->mediaDirectoryPath ?? '' , '/ ' )
242+ !== rtrim ($ this ->directoryMedia ->getAbsolutePath () ?? '' , '/ ' );
242243 }
243244
244245 /**
Original file line number Diff line number Diff line change @@ -296,7 +296,7 @@ public function fetch(Quote $quote, Total $total)
296296 $ description = $ total ->getDiscountDescription ();
297297 $ result = [
298298 'code ' => $ this ->getCode (),
299- 'title ' => strlen ( is_string ( $ description) ? $ description : '' ) ? __ ('Discount (%1) ' , $ description ) : __ ('Discount ' ),
299+ 'title ' => strlen ($ description ?? '' ) ? __ ('Discount (%1) ' , $ description ) : __ ('Discount ' ),
300300 'value ' => $ amount
301301 ];
302302 }
You can’t perform that action at this time.
0 commit comments