@@ -99,7 +99,7 @@ |
||
99 | 99 | |
100 | 100 | // skip update of URL rewrite, if nothing to change |
101 | 101 | if ($targetPath === $existingUrlRewrite[MemberNames::TARGET_PATH] && |
102 | - 301 === (int)$existingUrlRewrite[MemberNames::REDIRECT_TYPE]) { |
|
102 | + 301 === (int) $existingUrlRewrite[MemberNames::REDIRECT_TYPE]) { |
|
103 | 103 | // stop processing the URL rewrite |
104 | 104 | continue; |
105 | 105 | } |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | { |
228 | 228 | |
229 | 229 | // explode the path of the root category |
230 | - list ($rootCategoryPath, ) = explode('/', $path); |
|
230 | + list ($rootCategoryPath,) = explode('/', $path); |
|
231 | 231 | |
232 | 232 | // query whether or not a root category with the given path exists |
233 | 233 | if ($rootCategory = $this->getCategoryByPath($rootCategoryPath)) { |
@@ -295,9 +295,9 @@ discard block |
||
295 | 295 | */ |
296 | 296 | public function isUrlKeyOf(array $urlRewrite) |
297 | 297 | { |
298 | - return ((integer) $urlRewrite[MemberNames::ENTITY_ID] === (integer) $this->getLastEntityId()) && |
|
299 | - ((integer) $urlRewrite[MemberNames::STORE_ID] === (integer) $this->getRowStoreId()) && |
|
300 | - ((integer) $urlRewrite[MemberNames::REDIRECT_TYPE] === 0); |
|
298 | + return ((integer) $urlRewrite[MemberNames::ENTITY_ID] === (integer) $this->getLastEntityId()) && |
|
299 | + ((integer) $urlRewrite[MemberNames::STORE_ID] === (integer) $this->getRowStoreId()) && |
|
300 | + ((integer) $urlRewrite[MemberNames::REDIRECT_TYPE] === 0); |
|
301 | 301 | } |
302 | 302 | |
303 | 303 | /** |
@@ -103,7 +103,7 @@ |
||
103 | 103 | // query whether or not the URL key column has a |
104 | 104 | // value, if yes, use the value from the column |
105 | 105 | if ($this->hasValue(ColumnKeys::URL_KEY)) { |
106 | - $urlKey = $this->getValue(ColumnKeys::URL_KEY); |
|
106 | + $urlKey = $this->getValue(ColumnKeys::URL_KEY); |
|
107 | 107 | } else { |
108 | 108 | // query whether or not the column `url_key` has a value |
109 | 109 | if ($category && |