Completed
Push — master ( a70eef...5e94ac )
by
unknown
04:52 queued 04:25
created
src/Observers/UrlRewriteObserver.php 2 patches
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -252,14 +252,14 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
@@ -341,8 +341,8 @@  discard block
 block discarded – undo
341 341
                     // query whether or not debug mode has been enabled
342 342
                     if ($this->getSubject()->isDebugMode()) {
343 343
                         $this->getSubject()
344
-                             ->getSystemLogger()
345
-                             ->warning($this->getSubject()->appendExceptionSuffix($e->getMessage()));
344
+                                ->getSystemLogger()
345
+                                ->warning($this->getSubject()->appendExceptionSuffix($e->getMessage()));
346 346
                     } else {
347 347
                         throw $e;
348 348
                     }
@@ -391,18 +391,18 @@  discard block
 block discarded – undo
391 391
         // do NOT create new URL rewrites, if the product is NOT visible (any more), BUT
392 392
         // handle existing URL rewrites, e. g. to remove and clean up the URL rewrites
393 393
         if (!$this->isVisible()) {
394
-             // log a message
395
-             $this->getSubject()
396
-                 ->getSystemLogger()
397
-                 ->debug(
398
-                     sprintf(
399
-                         'Product with SKU "%s" is not visible, so no URL rewrites will be created',
400
-                         $this->getValue(ColumnKeys::SKU)
401
-                     )
402
-                 );
403
-
404
-             // return without creating any rewrites
405
-             return;
394
+                // log a message
395
+                $this->getSubject()
396
+                    ->getSystemLogger()
397
+                    ->debug(
398
+                        sprintf(
399
+                            'Product with SKU "%s" is not visible, so no URL rewrites will be created',
400
+                            $this->getValue(ColumnKeys::SKU)
401
+                        )
402
+                    );
403
+
404
+                // return without creating any rewrites
405
+                return;
406 406
         }
407 407
 
408 408
         // load the root category of the default store view (as we're in the
@@ -433,8 +433,8 @@  discard block
 block discarded – undo
433 433
                 if (!$this->getSubject()->isStrictMode()) {
434 434
                     $message = sprintf("Error with category '%s'", $path);
435 435
                     $this->getSubject()
436
-                         ->getSystemLogger()
437
-                         ->warning($this->getSubject()->appendExceptionSuffix($message));
436
+                            ->getSystemLogger()
437
+                            ->warning($this->getSubject()->appendExceptionSuffix($message));
438 438
                     $this->mergeStatus(
439 439
                         array(
440 440
                             RegistryKeys::NO_STRICT_VALIDATIONS => array(
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -456,7 +456,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.