@@ -252,14 +252,14 @@ discard block |
||
252 | 252 | if ($storeViewCode === StoreViewCodes::ADMIN) { |
253 | 253 | // log a message and return |
254 | 254 | $this->getSubject() |
255 | - ->getSystemLogger() |
|
256 | - ->debug( |
|
257 | - sprintf( |
|
258 | - 'Store with code "%s" is not active, no URL rewrites will be created for product with SKU "%s"', |
|
259 | - $storeViewCode, |
|
260 | - $sku |
|
261 | - ) |
|
262 | - ); |
|
255 | + ->getSystemLogger() |
|
256 | + ->debug( |
|
257 | + sprintf( |
|
258 | + 'Store with code "%s" is not active, no URL rewrites will be created for product with SKU "%s"', |
|
259 | + $storeViewCode, |
|
260 | + $sku |
|
261 | + ) |
|
262 | + ); |
|
263 | 263 | |
264 | 264 | // return without creating any rewrites |
265 | 265 | return $this->getRow(); |
@@ -269,14 +269,14 @@ discard block |
||
269 | 269 | if (!$this->getSubject()->storeIsActive($storeViewCode)) { |
270 | 270 | // log a message and return |
271 | 271 | $this->getSubject() |
272 | - ->getSystemLogger() |
|
273 | - ->debug( |
|
274 | - sprintf( |
|
275 | - 'Store with code "%s" is not active, no URL rewrites will be created for product with SKU "%s"', |
|
276 | - $storeViewCode, |
|
277 | - $sku |
|
278 | - ) |
|
279 | - ); |
|
272 | + ->getSystemLogger() |
|
273 | + ->debug( |
|
274 | + sprintf( |
|
275 | + 'Store with code "%s" is not active, no URL rewrites will be created for product with SKU "%s"', |
|
276 | + $storeViewCode, |
|
277 | + $sku |
|
278 | + ) |
|
279 | + ); |
|
280 | 280 | |
281 | 281 | // return without creating any rewrites |
282 | 282 | return $this->getRow(); |
@@ -342,7 +342,7 @@ discard block |
||
342 | 342 | try { |
343 | 343 | $this->persistUrlRewriteProductCategory($urlRewriteProductCategory); |
344 | 344 | } catch (\PDOException $pdoe) { |
345 | - $this->handleDuplicateUrlKeyExceptionWithStrictMode($urlRewriteProductCategory, $pdoe); |
|
345 | + $this->handleDuplicateUrlKeyExceptionWithStrictMode($urlRewriteProductCategory, $pdoe); |
|
346 | 346 | } |
347 | 347 | } |
348 | 348 | } catch (\Exception $e) { |
@@ -410,18 +410,18 @@ discard block |
||
410 | 410 | // do NOT create new URL rewrites, if the product is NOT visible (any more), BUT |
411 | 411 | // handle existing URL rewrites, e. g. to remove and clean up the URL rewrites |
412 | 412 | if (!$this->isVisible()) { |
413 | - // log a message |
|
414 | - $this->getSubject() |
|
415 | - ->getSystemLogger() |
|
416 | - ->debug( |
|
417 | - sprintf( |
|
418 | - 'Product with SKU "%s" is not visible, so no URL rewrites will be created', |
|
419 | - $this->getValue(ColumnKeys::SKU) |
|
420 | - ) |
|
421 | - ); |
|
422 | - |
|
423 | - // return without creating any rewrites |
|
424 | - return; |
|
413 | + // log a message |
|
414 | + $this->getSubject() |
|
415 | + ->getSystemLogger() |
|
416 | + ->debug( |
|
417 | + sprintf( |
|
418 | + 'Product with SKU "%s" is not visible, so no URL rewrites will be created', |
|
419 | + $this->getValue(ColumnKeys::SKU) |
|
420 | + ) |
|
421 | + ); |
|
422 | + |
|
423 | + // return without creating any rewrites |
|
424 | + return; |
|
425 | 425 | } |
426 | 426 | |
427 | 427 | // load the root category of the default store view (as we're in the |
@@ -452,8 +452,8 @@ discard block |
||
452 | 452 | if (!$this->getSubject()->isStrictMode()) { |
453 | 453 | $message = sprintf("Error with category '%s'", $path); |
454 | 454 | $this->getSubject() |
455 | - ->getSystemLogger() |
|
456 | - ->warning($this->getSubject()->appendExceptionSuffix($message)); |
|
455 | + ->getSystemLogger() |
|
456 | + ->warning($this->getSubject()->appendExceptionSuffix($message)); |
|
457 | 457 | $this->mergeStatus( |
458 | 458 | array( |
459 | 459 | RegistryKeys::NO_STRICT_VALIDATIONS => array( |
@@ -475,7 +475,7 @@ discard block |
||
475 | 475 | // and prepare the attributes for each URL rewrite |
476 | 476 | foreach ($this->productCategoryIds as $this->categoryId) { |
477 | 477 | try { |
478 | - $preparedAttributes = $this->prepareAttributes($storeViewCode); |
|
478 | + $preparedAttributes = $this->prepareAttributes($storeViewCode); |
|
479 | 479 | $this->urlRewrites[$this->categoryId] = $preparedAttributes; |
480 | 480 | } catch (\Exception $e) { |
481 | 481 | // query whether or not strict mode has been enabled |
@@ -874,7 +874,7 @@ discard block |
||
874 | 874 | * @return void |
875 | 875 | * @throws \Exception |
876 | 876 | */ |
877 | - public function handleDuplicateUrlKeyExceptionWithStrictMode(array $urlRewriteData, \PDOException|\Exception $pdoe): void |
|
877 | + public function handleDuplicateUrlKeyExceptionWithStrictMode(array $urlRewriteData, \PDOException | \Exception $pdoe): void |
|
878 | 878 | { |
879 | 879 | $message = sprintf( |
880 | 880 | 'Is a "Duplicate entry" PDO exception is thrown: with Urlrewrite Data \\n |