@@ -140,7 +140,9 @@ |
||
140 | 140 | |
141 | 141 | private function deleteIdenticalRecords($existingRecords): void |
142 | 142 | { |
143 | - if($this->strict) return; |
|
143 | + if($this->strict) { |
|
144 | + return; |
|
145 | + } |
|
144 | 146 | |
145 | 147 | // The old homepage url should be removed since this is no longer in effect. |
146 | 148 | // In case of any redirect to this old homepage, the last used redirect is now back in effect. |
@@ -33,8 +33,7 @@ |
||
33 | 33 | |
34 | 34 | $currentUrlRecord->replaceAndRedirect(['slug' => $recentRedirectSlug]); |
35 | 35 | } |
36 | - } |
|
37 | - catch(UrlRecordNotFound $e) |
|
36 | + } catch(UrlRecordNotFound $e) |
|
38 | 37 | { |
39 | 38 | // No url present so nothing to do here... |
40 | 39 | } |