@@ -228,14 +228,14 @@ discard block |
||
228 | 228 | if ($storeViewCode === StoreViewCodes::ADMIN) { |
229 | 229 | // log a message and return |
230 | 230 | $this->getSubject() |
231 | - ->getSystemLogger() |
|
232 | - ->debug( |
|
233 | - sprintf( |
|
234 | - 'Store with code "%s" is not active, no URL rewrites will be created for product with SKU "%s"', |
|
235 | - $storeViewCode, |
|
236 | - $sku |
|
237 | - ) |
|
238 | - ); |
|
231 | + ->getSystemLogger() |
|
232 | + ->debug( |
|
233 | + sprintf( |
|
234 | + 'Store with code "%s" is not active, no URL rewrites will be created for product with SKU "%s"', |
|
235 | + $storeViewCode, |
|
236 | + $sku |
|
237 | + ) |
|
238 | + ); |
|
239 | 239 | |
240 | 240 | // return without creating any rewrites |
241 | 241 | return $this->getRow(); |
@@ -245,14 +245,14 @@ discard block |
||
245 | 245 | if (!$this->getSubject()->storeIsActive($storeViewCode)) { |
246 | 246 | // log a message and return |
247 | 247 | $this->getSubject() |
248 | - ->getSystemLogger() |
|
249 | - ->debug( |
|
250 | - sprintf( |
|
251 | - 'Store with code "%s" is not active, no URL rewrites will be created for product with SKU "%s"', |
|
252 | - $storeViewCode, |
|
253 | - $sku |
|
254 | - ) |
|
255 | - ); |
|
248 | + ->getSystemLogger() |
|
249 | + ->debug( |
|
250 | + sprintf( |
|
251 | + 'Store with code "%s" is not active, no URL rewrites will be created for product with SKU "%s"', |
|
252 | + $storeViewCode, |
|
253 | + $sku |
|
254 | + ) |
|
255 | + ); |
|
256 | 256 | |
257 | 257 | // return without creating any rewrites |
258 | 258 | return $this->getRow(); |
@@ -311,8 +311,8 @@ discard block |
||
311 | 311 | // query whether or not debug mode has been enabled |
312 | 312 | if ($this->getSubject()->isDebugMode()) { |
313 | 313 | $this->getSubject() |
314 | - ->getSystemLogger() |
|
315 | - ->warning($this->getSubject()->appendExceptionSuffix($e->getMessage())); |
|
314 | + ->getSystemLogger() |
|
315 | + ->warning($this->getSubject()->appendExceptionSuffix($e->getMessage())); |
|
316 | 316 | } elseif ($this->getSubject()->isStrictMode()) { |
317 | 317 | throw $e; |
318 | 318 | } |
@@ -361,18 +361,18 @@ discard block |
||
361 | 361 | // do NOT create new URL rewrites, if the product is NOT visible (any more), BUT |
362 | 362 | // handle existing URL rewrites, e. g. to remove and clean up the URL rewrites |
363 | 363 | if (!$this->isVisible()) { |
364 | - // log a message |
|
365 | - $this->getSubject() |
|
366 | - ->getSystemLogger() |
|
367 | - ->debug( |
|
368 | - sprintf( |
|
369 | - 'Product with SKU "%s" is not visible, so no URL rewrites will be created', |
|
370 | - $this->getValue(ColumnKeys::SKU) |
|
371 | - ) |
|
372 | - ); |
|
373 | - |
|
374 | - // return without creating any rewrites |
|
375 | - return; |
|
364 | + // log a message |
|
365 | + $this->getSubject() |
|
366 | + ->getSystemLogger() |
|
367 | + ->debug( |
|
368 | + sprintf( |
|
369 | + 'Product with SKU "%s" is not visible, so no URL rewrites will be created', |
|
370 | + $this->getValue(ColumnKeys::SKU) |
|
371 | + ) |
|
372 | + ); |
|
373 | + |
|
374 | + // return without creating any rewrites |
|
375 | + return; |
|
376 | 376 | } |
377 | 377 | |
378 | 378 | // load the root category of the default store view (as we're in the |
@@ -400,8 +400,8 @@ discard block |
||
400 | 400 | // query whether or not debug mode has been enabled |
401 | 401 | if ($this->getSubject()->isDebugMode()) { |
402 | 402 | $this->getSubject() |
403 | - ->getSystemLogger() |
|
404 | - ->warning($this->getSubject()->appendExceptionSuffix($e->getMessage())); |
|
403 | + ->getSystemLogger() |
|
404 | + ->warning($this->getSubject()->appendExceptionSuffix($e->getMessage())); |
|
405 | 405 | } elseif ($this->getSubject()->isStrictMode()) { |
406 | 406 | throw $e; |
407 | 407 | } |