Completed
Push — 22.x ( ab5323...4b32e9 )
by Tim
01:41
created
src/Observers/UrlRewriteUpdateObserver.php 1 patch
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.