Completed
Push — master ( 77b4e9...0efcf6 )
by Tim
17s queued 11s
created
tests/unit/Observers/UrlRewriteUpdateObserverTest.php 2 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
 
67 67
         // initialize a mock processor instance
68 68
         $this->mockProductUrlRewriteProcessor = $this->getMockBuilder('TechDivision\Import\Product\UrlRewrite\Services\ProductUrlRewriteProcessorInterface')
69
-                                                     ->setMethods(get_class_methods('TechDivision\Import\Product\UrlRewrite\Services\ProductUrlRewriteProcessorInterface'))
70
-                                                     ->getMock();
69
+                                                        ->setMethods(get_class_methods('TechDivision\Import\Product\UrlRewrite\Services\ProductUrlRewriteProcessorInterface'))
70
+                                                        ->getMock();
71 71
 
72 72
         // initialize the observer
73 73
         $this->observer = new UrlRewriteUpdateObserver($this->mockProductUrlRewriteProcessor);
@@ -104,14 +104,14 @@  discard block
 block discarded – undo
104 104
 
105 105
         // initialize the categories
106 106
         $categories = array(
107
-             $path1 = 'Default Category'                                => array(MemberNames::ENTITY_ID => 2, MemberNames::PARENT_ID => 1, MemberNames::IS_ANCHOR => null, MemberNames::URL_PATH => null, MemberNames::PATH => $path1),
108
-             $path2 = 'Default Category/Men'                            => array(MemberNames::ENTITY_ID => 3, MemberNames::PARENT_ID => 2, MemberNames::IS_ANCHOR => null, MemberNames::URL_PATH => 'men', MemberNames::PATH => $path2),
109
-             $path3 = 'Default Category/Men/Tops'                       => array(MemberNames::ENTITY_ID => 4, MemberNames::PARENT_ID => 3, MemberNames::IS_ANCHOR => null, MemberNames::URL_PATH => 'men/tops-men', MemberNames::PATH => $path3),
110
-             $path4 = 'Default Category/Men/Tops/Hoodies & Sweatshirts' => array(MemberNames::ENTITY_ID => 5, MemberNames::PARENT_ID => 4, MemberNames::IS_ANCHOR => null, MemberNames::URL_PATH => 'men/tops-men/hoodies-and-sweatshirts-men', MemberNames::PATH => $path4),
111
-             $path5 = 'Default Category/Collections'                    => array(MemberNames::ENTITY_ID => 6, MemberNames::PARENT_ID => 3, MemberNames::IS_ANCHOR => null, MemberNames::URL_PATH => 'collections', MemberNames::PATH => $path5),
112
-             $path6 = 'Default Category/Collections/Eco Friendly'       => array(MemberNames::ENTITY_ID => 7, MemberNames::PARENT_ID => 6, MemberNames::IS_ANCHOR => null, MemberNames::URL_PATH => 'collections/eco-friendly', MemberNames::PATH => $path6),
113
-             $path7 = 'Default Category/Collections/Old'                => array(MemberNames::ENTITY_ID => 8, MemberNames::PARENT_ID => 6, MemberNames::IS_ANCHOR => null, MemberNames::URL_PATH => 'collections/old', MemberNames::PATH => $path7),
114
-             $path8 = 'Default Category/Men/Old'                        => array(MemberNames::ENTITY_ID => 9, MemberNames::PARENT_ID => 3, MemberNames::IS_ANCHOR => null, MemberNames::URL_PATH => 'men/old', MemberNames::PATH => $path8),
107
+                $path1 = 'Default Category'                                => array(MemberNames::ENTITY_ID => 2, MemberNames::PARENT_ID => 1, MemberNames::IS_ANCHOR => null, MemberNames::URL_PATH => null, MemberNames::PATH => $path1),
108
+                $path2 = 'Default Category/Men'                            => array(MemberNames::ENTITY_ID => 3, MemberNames::PARENT_ID => 2, MemberNames::IS_ANCHOR => null, MemberNames::URL_PATH => 'men', MemberNames::PATH => $path2),
109
+                $path3 = 'Default Category/Men/Tops'                       => array(MemberNames::ENTITY_ID => 4, MemberNames::PARENT_ID => 3, MemberNames::IS_ANCHOR => null, MemberNames::URL_PATH => 'men/tops-men', MemberNames::PATH => $path3),
110
+                $path4 = 'Default Category/Men/Tops/Hoodies & Sweatshirts' => array(MemberNames::ENTITY_ID => 5, MemberNames::PARENT_ID => 4, MemberNames::IS_ANCHOR => null, MemberNames::URL_PATH => 'men/tops-men/hoodies-and-sweatshirts-men', MemberNames::PATH => $path4),
111
+                $path5 = 'Default Category/Collections'                    => array(MemberNames::ENTITY_ID => 6, MemberNames::PARENT_ID => 3, MemberNames::IS_ANCHOR => null, MemberNames::URL_PATH => 'collections', MemberNames::PATH => $path5),
112
+                $path6 = 'Default Category/Collections/Eco Friendly'       => array(MemberNames::ENTITY_ID => 7, MemberNames::PARENT_ID => 6, MemberNames::IS_ANCHOR => null, MemberNames::URL_PATH => 'collections/eco-friendly', MemberNames::PATH => $path6),
113
+                $path7 = 'Default Category/Collections/Old'                => array(MemberNames::ENTITY_ID => 8, MemberNames::PARENT_ID => 6, MemberNames::IS_ANCHOR => null, MemberNames::URL_PATH => 'collections/old', MemberNames::PATH => $path7),
114
+                $path8 = 'Default Category/Men/Old'                        => array(MemberNames::ENTITY_ID => 9, MemberNames::PARENT_ID => 3, MemberNames::IS_ANCHOR => null, MemberNames::URL_PATH => 'men/old', MemberNames::PATH => $path8),
115 115
         );
116 116
 
117 117
         // initialize a mock import adapter instance
@@ -123,8 +123,8 @@  discard block
 block discarded – undo
123 123
 
124 124
         // mock the system logger
125 125
         $mockSystemLogger = $this->getMockBuilder('Psr\Log\LoggerInterface')
126
-                                 ->setMethods(get_class_methods('Psr\Log\LoggerInterface'))
127
-                                 ->getMock();
126
+                                    ->setMethods(get_class_methods('Psr\Log\LoggerInterface'))
127
+                                    ->getMock();
128 128
 
129 129
         // the found URL rewrites
130 130
         $urlRewrites = array(
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
                     ->method('getUrlRewritesByEntityTypeAndEntityIdAndStoreId')
318 318
                     ->with(UrlRewriteObserver::ENTITY_TYPE, $entityId, $storeId)
319 319
                     ->willReturn($urlRewrites);
320
-       $this->mockProductUrlRewriteProcessor->expects($this->exactly(6))
320
+        $this->mockProductUrlRewriteProcessor->expects($this->exactly(6))
321 321
                     ->method('persistUrlRewrite')
322 322
                     ->withConsecutive(
323 323
                         array(
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
         $mockSubject->expects($this->any())
457 457
                     ->method('getCategory')
458 458
                     ->will(
459
-                        $this->returnCallback(function ($categoryId, $storeViewCode) use ($categories) {
459
+                        $this->returnCallback(function($categoryId, $storeViewCode) use ($categories) {
460 460
                             foreach ($categories as $category) {
461 461
                                 if ((int) $category[MemberNames::ENTITY_ID] === (int) $categoryId) {
462 462
                                     return $category;
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
         $mockSubject->expects($this->any())
484 484
                     ->method('getCoreConfigData')
485 485
                     ->will(
486
-                        $this->returnCallback(function ($arg1, $arg2) {
486
+                        $this->returnCallback(function($arg1, $arg2) {
487 487
                             return $arg2;
488 488
                         })
489 489
                     );
Please login to merge, or discard this patch.
RoboFile.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -58,9 +58,9 @@  discard block
 block discarded – undo
58 58
     {
59 59
         // optimize autoloader with custom path
60 60
         return $this->taskComposerInstall()
61
-             ->preferDist()
62
-             ->optimizeAutoloader()
63
-             ->run();
61
+                ->preferDist()
62
+                ->optimizeAutoloader()
63
+                ->run();
64 64
     }
65 65
 
66 66
     /**
@@ -72,9 +72,9 @@  discard block
 block discarded – undo
72 72
     {
73 73
         // optimize autoloader with custom path
74 74
         return $this->taskComposerUpdate()
75
-             ->preferDist()
76
-             ->optimizeAutoloader()
77
-             ->run();
75
+                ->preferDist()
76
+                ->optimizeAutoloader()
77
+                ->run();
78 78
     }
79 79
 
80 80
     /**
@@ -95,10 +95,10 @@  discard block
 block discarded – undo
95 95
     public function prepare()
96 96
     {
97 97
         return $this->taskFileSystemStack()
98
-             ->mkdir($this->properties['dist.dir'])
99
-             ->mkdir($this->properties['target.dir'])
100
-             ->mkdir(sprintf('%s/reports', $this->properties['target.dir']))
101
-             ->run();
98
+                ->mkdir($this->properties['dist.dir'])
99
+                ->mkdir($this->properties['target.dir'])
100
+                ->mkdir(sprintf('%s/reports', $this->properties['target.dir']))
101
+                ->run();
102 102
     }
103 103
 
104 104
     /**
@@ -168,8 +168,8 @@  discard block
 block discarded – undo
168 168
 
169 169
         // run PHPUnit
170 170
         return $this->taskPHPUnit(sprintf('%s/bin/phpunit', $this->properties['vendor.dir']))
171
-             ->configFile('phpunit.xml')
172
-             ->run();
171
+                ->configFile('phpunit.xml')
172
+                ->run();
173 173
     }
174 174
 
175 175
     /**
Please login to merge, or discard this patch.
src/Observers/UrlRewriteUpdateObserver.php 2 patches
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -100,14 +100,14 @@  discard block
 block discarded – undo
100 100
 
101 101
                             // finally log a warning that the old category is not available ony more
102 102
                             $this->getSubject()
103
-                                 ->getSystemLogger()
104
-                                 ->warning(
105
-                                     sprintf(
106
-                                         'Category with ID "%d" is not longer available for URL rewrite with ID "%d"',
107
-                                         $metadata[UrlRewriteObserver::CATEGORY_ID],
108
-                                         $existingUrlRewrite[MemberNames::URL_REWRITE_ID]
109
-                                     )
110
-                                 );
103
+                                    ->getSystemLogger()
104
+                                    ->warning(
105
+                                        sprintf(
106
+                                            'Category with ID "%d" is not longer available for URL rewrite with ID "%d"',
107
+                                            $metadata[UrlRewriteObserver::CATEGORY_ID],
108
+                                            $existingUrlRewrite[MemberNames::URL_REWRITE_ID]
109
+                                        )
110
+                                    );
111 111
                         }
112 112
                     }
113 113
                 }
@@ -119,14 +119,14 @@  discard block
 block discarded – undo
119 119
                 if ($targetPath === $existingUrlRewrite[MemberNames::REQUEST_PATH]) {
120 120
                     // finally log a warning that the old category is not available ony more
121 121
                     $this->getSubject()
122
-                         ->getSystemLogger()
123
-                         ->warning(
124
-                             sprintf(
125
-                                 'New target path "%s" eqals request path for URL rewrite with ID "%d"',
126
-                                 $existingUrlRewrite[MemberNames::REQUEST_PATH],
127
-                                 $existingUrlRewrite[MemberNames::URL_REWRITE_ID]
128
-                             )
129
-                         );
122
+                            ->getSystemLogger()
123
+                            ->warning(
124
+                                sprintf(
125
+                                    'New target path "%s" eqals request path for URL rewrite with ID "%d"',
126
+                                    $existingUrlRewrite[MemberNames::REQUEST_PATH],
127
+                                    $existingUrlRewrite[MemberNames::URL_REWRITE_ID]
128
+                                )
129
+                            );
130 130
 
131 131
                     // stop processing the URL rewrite
132 132
                     continue;
@@ -153,14 +153,14 @@  discard block
 block discarded – undo
153 153
 
154 154
                     // log a message, that old URL rewrites have been cleaned-up
155 155
                     $this->getSubject()
156
-                         ->getSystemLogger()
157
-                         ->warning(
158
-                             sprintf(
159
-                                 'Cleaned-up URL rewrite "%s" for product with SKU "%s"',
160
-                                 $existingUrlRewrite[MemberNames::REQUEST_PATH],
161
-                                 $this->getValue(ColumnKeys::SKU)
162
-                             )
163
-                         );
156
+                            ->getSystemLogger()
157
+                            ->warning(
158
+                                sprintf(
159
+                                    'Cleaned-up URL rewrite "%s" for product with SKU "%s"',
160
+                                    $existingUrlRewrite[MemberNames::REQUEST_PATH],
161
+                                    $this->getValue(ColumnKeys::SKU)
162
+                                )
163
+                            );
164 164
                 }
165 165
             }
166 166
         }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
 
106 106
                 // skip update of URL rewrite, if nothing to change
107 107
                 if ($targetPath === $existingUrlRewrite[MemberNames::TARGET_PATH] &&
108
-                    301 === (int)$existingUrlRewrite[MemberNames::REDIRECT_TYPE]) {
108
+                    301 === (int) $existingUrlRewrite[MemberNames::REDIRECT_TYPE]) {
109 109
                     // stop processing the URL rewrite
110 110
                     continue;
111 111
                 }
Please login to merge, or discard this patch.
tests/unit/Observers/UrlRewriteObserverTest.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
         $mockSubject->expects($this->any())
457 457
                     ->method('getCategory')
458 458
                     ->will(
459
-                        $this->returnCallback(function ($categoryId, $storeViewCode) use ($categories) {
459
+                        $this->returnCallback(function($categoryId, $storeViewCode) use ($categories) {
460 460
                             foreach ($categories as $category) {
461 461
                                 if ((int) $category[MemberNames::ENTITY_ID] === (int) $categoryId) {
462 462
                                     return $category;
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
         $mockSubject->expects($this->any())
484 484
                     ->method('getCoreConfigData')
485 485
                     ->will(
486
-                        $this->returnCallback(function ($arg1, $arg2) {
486
+                        $this->returnCallback(function($arg1, $arg2) {
487 487
                             return $arg2;
488 488
                         })
489 489
                     );
Please login to merge, or discard this patch.
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
 
74 74
         // initialize a mock processor instance
75 75
         $this->mockProductUrlRewriteProcessor = $this->getMockBuilder('TechDivision\Import\Product\UrlRewrite\Services\ProductUrlRewriteProcessorInterface')
76
-                                                     ->setMethods(get_class_methods('TechDivision\Import\Product\UrlRewrite\Services\ProductUrlRewriteProcessorInterface'))
77
-                                                     ->getMock();
76
+                                                        ->setMethods(get_class_methods('TechDivision\Import\Product\UrlRewrite\Services\ProductUrlRewriteProcessorInterface'))
77
+                                                        ->getMock();
78 78
 
79 79
         // initialize the observer
80 80
         $this->observer = new UrlRewriteObserver($this->mockProductUrlRewriteProcessor);
@@ -350,12 +350,12 @@  discard block
 block discarded – undo
350 350
 
351 351
         // initialize the categories
352 352
         $categories = array(
353
-             $path1 = 'Default Category'                                => array(MemberNames::ENTITY_ID => 2, MemberNames::PARENT_ID => 1, MemberNames::IS_ANCHOR => null, MemberNames::URL_PATH => null, MemberNames::PATH => $path1),
354
-             $path2 = 'Default Category/Men'                            => array(MemberNames::ENTITY_ID => 3, MemberNames::PARENT_ID => 2, MemberNames::IS_ANCHOR => null, MemberNames::URL_PATH => 'men', MemberNames::PATH => $path2),
355
-             $path3 = 'Default Category/Men/Tops'                       => array(MemberNames::ENTITY_ID => 4, MemberNames::PARENT_ID => 3, MemberNames::IS_ANCHOR => null, MemberNames::URL_PATH => 'men/tops-men', MemberNames::PATH => $path3),
356
-             $path4 = 'Default Category/Men/Tops/Hoodies & Sweatshirts' => array(MemberNames::ENTITY_ID => 5, MemberNames::PARENT_ID => 4, MemberNames::IS_ANCHOR => null, MemberNames::URL_PATH => 'men/tops-men/hoodies-and-sweatshirts-men', MemberNames::PATH => $path4),
357
-             $path5 = 'Default Category/Collections'                    => array(MemberNames::ENTITY_ID => 6, MemberNames::PARENT_ID => 3, MemberNames::IS_ANCHOR => null, MemberNames::URL_PATH => 'collections', MemberNames::PATH => $path5),
358
-             $path6 = 'Default Category/Collections/Eco Friendly'       => array(MemberNames::ENTITY_ID => 7, MemberNames::PARENT_ID => 6, MemberNames::IS_ANCHOR => null, MemberNames::URL_PATH => 'collections/eco-friendly', MemberNames::PATH => $path6),
353
+                $path1 = 'Default Category'                                => array(MemberNames::ENTITY_ID => 2, MemberNames::PARENT_ID => 1, MemberNames::IS_ANCHOR => null, MemberNames::URL_PATH => null, MemberNames::PATH => $path1),
354
+                $path2 = 'Default Category/Men'                            => array(MemberNames::ENTITY_ID => 3, MemberNames::PARENT_ID => 2, MemberNames::IS_ANCHOR => null, MemberNames::URL_PATH => 'men', MemberNames::PATH => $path2),
355
+                $path3 = 'Default Category/Men/Tops'                       => array(MemberNames::ENTITY_ID => 4, MemberNames::PARENT_ID => 3, MemberNames::IS_ANCHOR => null, MemberNames::URL_PATH => 'men/tops-men', MemberNames::PATH => $path3),
356
+                $path4 = 'Default Category/Men/Tops/Hoodies & Sweatshirts' => array(MemberNames::ENTITY_ID => 5, MemberNames::PARENT_ID => 4, MemberNames::IS_ANCHOR => null, MemberNames::URL_PATH => 'men/tops-men/hoodies-and-sweatshirts-men', MemberNames::PATH => $path4),
357
+                $path5 = 'Default Category/Collections'                    => array(MemberNames::ENTITY_ID => 6, MemberNames::PARENT_ID => 3, MemberNames::IS_ANCHOR => null, MemberNames::URL_PATH => 'collections', MemberNames::PATH => $path5),
358
+                $path6 = 'Default Category/Collections/Eco Friendly'       => array(MemberNames::ENTITY_ID => 7, MemberNames::PARENT_ID => 6, MemberNames::IS_ANCHOR => null, MemberNames::URL_PATH => 'collections/eco-friendly', MemberNames::PATH => $path6),
359 359
         );
360 360
 
361 361
         // initialize a mock import adapter instance
@@ -377,8 +377,8 @@  discard block
 block discarded – undo
377 377
 
378 378
         // mock the system logger
379 379
         $mockSystemLogger = $this->getMockBuilder('Psr\Log\LoggerInterface')
380
-                                 ->setMethods(get_class_methods('Psr\Log\LoggerInterface'))
381
-                                 ->getMock();
380
+                                    ->setMethods(get_class_methods('Psr\Log\LoggerInterface'))
381
+                                    ->getMock();
382 382
 
383 383
         // create a mock subject
384 384
         $mockSubject = $this->getMockBuilder('TechDivision\Import\Product\UrlRewrite\Subjects\UrlRewriteSubject')
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
                             return $arg2;
488 488
                         })
489 489
                     );
490
-       $mockSubject->expects(($this->exactly(1)))
490
+        $mockSubject->expects(($this->exactly(1)))
491 491
                     ->method('getImportAdapter')
492 492
                     ->willReturn($mockImportAdapter);
493 493
 
Please login to merge, or discard this patch.
src/Observers/UrlRewriteObserver.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -228,14 +228,14 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
                     } else {
317 317
                         throw $e;
318 318
                     }
@@ -361,18 +361,18 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
                 } else {
406 406
                     throw $e;
407 407
                 }
Please login to merge, or discard this patch.
src/Observers/ProductUrlRewriteObserver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -259,7 +259,7 @@
 block discarded – undo
259 259
             array(
260 260
                 ColumnKeys::SKU                => $sku,
261 261
                 ColumnKeys::STORE_VIEW_CODE    => $storeViewCode,
262
-                ColumnKeys::CATEGORIES         => $this->getValue(ColumnKeys::CATEGORIES, isset($this->adminRow[$sku][ColumnKeys::CATEGORIES]) ? $this->adminRow[$sku][ColumnKeys::CATEGORIES]: null),
262
+                ColumnKeys::CATEGORIES         => $this->getValue(ColumnKeys::CATEGORIES, isset($this->adminRow[$sku][ColumnKeys::CATEGORIES]) ? $this->adminRow[$sku][ColumnKeys::CATEGORIES] : null),
263 263
                 ColumnKeys::PRODUCT_WEBSITES   => $this->getValue(ColumnKeys::PRODUCT_WEBSITES, isset($this->adminRow[$sku][ColumnKeys::PRODUCT_WEBSITES]) ? $this->adminRow[$sku][ColumnKeys::PRODUCT_WEBSITES] : null),
264 264
                 ColumnKeys::VISIBILITY         => $this->getValue(ColumnKeys::VISIBILITY, isset($this->adminRow[$sku][ColumnKeys::VISIBILITY]) ? $this->adminRow[$sku][ColumnKeys::VISIBILITY] : null),
265 265
                 ColumnKeys::URL_KEY            => $this->getValue(ColumnKeys::URL_KEY, isset($this->adminRow[$sku][ColumnKeys::URL_KEY]) ? $this->adminRow[$sku][ColumnKeys::URL_KEY] : null)
Please login to merge, or discard this patch.