@@ -456,7 +456,7 @@ |
||
456 | 456 | // and prepare the attributes for each URL rewrite |
457 | 457 | foreach ($this->productCategoryIds as $this->categoryId) { |
458 | 458 | try { |
459 | - $preparedAttributes = $this->prepareAttributes($storeViewCode); |
|
459 | + $preparedAttributes = $this->prepareAttributes($storeViewCode); |
|
460 | 460 | $this->urlRewrites[$this->categoryId] = $preparedAttributes; |
461 | 461 | } catch (\Exception $e) { |
462 | 462 | // query whether or not strict mode has been enabled |
@@ -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(); |
@@ -402,18 +402,18 @@ discard block |
||
402 | 402 | // do NOT create new URL rewrites, if the product is NOT visible (any more), BUT |
403 | 403 | // handle existing URL rewrites, e. g. to remove and clean up the URL rewrites |
404 | 404 | if (!$this->isVisible()) { |
405 | - // log a message |
|
406 | - $this->getSubject() |
|
407 | - ->getSystemLogger() |
|
408 | - ->debug( |
|
409 | - sprintf( |
|
410 | - 'Product with SKU "%s" is not visible, so no URL rewrites will be created', |
|
411 | - $this->getValue(ColumnKeys::SKU) |
|
412 | - ) |
|
413 | - ); |
|
414 | - |
|
415 | - // return without creating any rewrites |
|
416 | - return; |
|
405 | + // log a message |
|
406 | + $this->getSubject() |
|
407 | + ->getSystemLogger() |
|
408 | + ->debug( |
|
409 | + sprintf( |
|
410 | + 'Product with SKU "%s" is not visible, so no URL rewrites will be created', |
|
411 | + $this->getValue(ColumnKeys::SKU) |
|
412 | + ) |
|
413 | + ); |
|
414 | + |
|
415 | + // return without creating any rewrites |
|
416 | + return; |
|
417 | 417 | } |
418 | 418 | |
419 | 419 | // load the root category of the default store view (as we're in the |
@@ -444,8 +444,8 @@ discard block |
||
444 | 444 | if (!$this->getSubject()->isStrictMode()) { |
445 | 445 | $message = sprintf("Error with category '%s'", $path); |
446 | 446 | $this->getSubject() |
447 | - ->getSystemLogger() |
|
448 | - ->warning($this->getSubject()->appendExceptionSuffix($message)); |
|
447 | + ->getSystemLogger() |
|
448 | + ->warning($this->getSubject()->appendExceptionSuffix($message)); |
|
449 | 449 | $this->mergeStatus( |
450 | 450 | array( |
451 | 451 | RegistryKeys::NO_STRICT_VALIDATIONS => array( |