Passed
Push — master ( bca814...405448 )
by Gaetano
09:09 queued 17s
created
Core/FieldHandler/EzCountry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
             $fieldValue = array($fieldValue);
42 42
         }
43 43
         if (!$refsResolved) {
44
-            foreach($fieldValue as $key => $countryValue) {
44
+            foreach ($fieldValue as $key => $countryValue) {
45 45
                 $fieldValue[$key] = $this->referenceResolver->resolveReference($countryValue);
46 46
             }
47 47
         }
Please login to merge, or discard this patch.
Core/Matcher/RoleMatcher.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
                 $role = $this->repository->getRoleService()->loadRole($roleId);
104 104
                 $roles[$role->id] = $role;
105 105
             /// @todo should we survive as well UnauthorizedException ? It seems to be a different kind of error than non-existing roles...
106
-            } catch(NotFoundException $e) {
106
+            } catch (NotFoundException $e) {
107 107
                 if (!$tolerateMisses) {
108 108
                     throw $e;
109 109
                 }
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
                 $role = $this->repository->getRoleService()->loadRoleByIdentifier($roleIdentifier);
131 131
                 $roles[$role->id] = $role;
132 132
             /// @todo should we survive as well UnauthorizedException ? It seems to be a different kind of error than non-existing roles...
133
-            } catch(NotFoundException $e) {
133
+            } catch (NotFoundException $e) {
134 134
                 if (!$tolerateMisses) {
135 135
                     throw $e;
136 136
                 }
Please login to merge, or discard this patch.
Core/Matcher/TagMatcher.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
                 // return unique contents
132 132
                 $tag = $this->tagService->loadTag($tagId);
133 133
                 $tags[$tag->id] = $tag;
134
-            } catch(NotFoundException $e) {
134
+            } catch (NotFoundException $e) {
135 135
                 if (!$tolerateMisses) {
136 136
                     throw $e;
137 137
                 }
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
                 foreach ($this->tagService->loadTagChildren($tag) as $childTag) {
161 161
                     $tags[$childTag->id] = $childTag;
162 162
                 }
163
-            } catch(NotFoundException $e) {
163
+            } catch (NotFoundException $e) {
164 164
                 if (!$tolerateMisses) {
165 165
                     throw $e;
166 166
                 }
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
             $childTags = $this->findTagsByParentTagIds(array_keys($parentTags));
189 189
             $tags = array_merge($tags, $childTags);
190 190
             $parentTags = $childTags;
191
-        } while (count( $childTags ) > 0);
191
+        } while (count($childTags) > 0);
192 192
 
193 193
         return $tags;
194 194
     }
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
                 // return unique contents
222 222
                 $tag = $this->tagService->loadTagByRemoteId($tagRemoteId);
223 223
                 $tags[$tag->id] = $tag;
224
-            } catch(NotFoundException $e) {
224
+            } catch (NotFoundException $e) {
225 225
                 if (!$tolerateMisses) {
226 226
                     throw $e;
227 227
                 }
Please login to merge, or discard this patch.
Core/Matcher/UserMatcher.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -108,12 +108,12 @@  discard block
 block discarded – undo
108 108
         $users = [];
109 109
 
110 110
         foreach ($userIds as $userId) {
111
-            try{
111
+            try {
112 112
                 // return unique contents
113 113
                 $user = $this->repository->getUserService()->loadUser($userId);
114 114
 
115 115
                 $users[$user->id] = $user;
116
-            } catch(NotFoundException $e) {
116
+            } catch (NotFoundException $e) {
117 117
                 if (!$tolerateMisses) {
118 118
                     throw $e;
119 119
                 }
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
                 $user = $this->repository->getUserService()->loadUserByLogin($login);
140 140
 
141 141
                 $users[$user->id] = $user;
142
-            } catch(NotFoundException $e) {
142
+            } catch (NotFoundException $e) {
143 143
                 if (!$tolerateMisses) {
144 144
                     throw $e;
145 145
                 }
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 
189 189
             try {
190 190
                 $group = $this->repository->getUserService()->loadUserGroup($groupId);
191
-            } catch(NotFoundException $e) {
191
+            } catch (NotFoundException $e) {
192 192
                 if ($tolerateMisses) {
193 193
                     continue;
194 194
                 } else {
Please login to merge, or discard this patch.
Core/Matcher/ObjectStateGroupMatcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
                 // return unique contents
101 101
                 $objectStateGroup = $this->repository->getObjectStateService()->loadObjectStateGroup($objectStateGroupId);
102 102
                 $objectStateGroups[$objectStateGroup->id] = $objectStateGroup;
103
-            } catch(NotFoundException $e) {
103
+            } catch (NotFoundException $e) {
104 104
                 if (!$tolerateMisses) {
105 105
                     throw $e;
106 106
                 }
Please login to merge, or discard this patch.
Core/Matcher/LocationMatcherDirectLoad.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,11 +36,11 @@  discard block
 block discarded – undo
36 36
             $locations = array();
37 37
             switch ($key) {
38 38
                 case self::MATCH_LOCATION_ID:
39
-                    foreach($match as $locationId) {
39
+                    foreach ($match as $locationId) {
40 40
                         try {
41 41
                             $location = $this->repository->getLocationService()->loadLocation($locationId);
42 42
                             $locations[$location->id] = $location;
43
-                        } catch(NotFoundException $e) {
43
+                        } catch (NotFoundException $e) {
44 44
                             if (!$tolerateMisses) {
45 45
                                 throw $e;
46 46
                             }
@@ -48,11 +48,11 @@  discard block
 block discarded – undo
48 48
                     }
49 49
                     break;
50 50
                 case self::MATCH_LOCATION_REMOTE_ID:
51
-                    foreach($match as $locationRemoteId) {
51
+                    foreach ($match as $locationRemoteId) {
52 52
                         try {
53 53
                             $location = $this->repository->getLocationService()->loadLocationByRemoteId($locationRemoteId);
54 54
                             $locations[$location->id] = $location;
55
-                        } catch(NotFoundException $e) {
55
+                        } catch (NotFoundException $e) {
56 56
                             if (!$tolerateMisses) {
57 57
                                 throw $e;
58 58
                             }
Please login to merge, or discard this patch.
Core/Matcher/SectionMatcher.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
                 // return unique contents
104 104
                 $section = $this->repository->getSectionService()->loadSection($sectionId);
105 105
                 $sections[$section->id] = $section;
106
-            } catch(NotFoundException $e) {
106
+            } catch (NotFoundException $e) {
107 107
                 if (!$tolerateMisses) {
108 108
                     throw $e;
109 109
                 }
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
                 // return unique contents
129 129
                 $section = $this->repository->getSectionService()->loadSectionByIdentifier($sectionIdentifier);
130 130
                 $sections[$section->id] = $section;
131
-            } catch(NotFoundException $e) {
131
+            } catch (NotFoundException $e) {
132 132
                 if (!$tolerateMisses) {
133 133
                     throw $e;
134 134
                 }
Please login to merge, or discard this patch.
Core/Matcher/UserGroupMatcher.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
                 $userGroup = $this->repository->getUserService()->loadUserGroup($userGroupId);
107 107
 
108 108
                 $userGroups[$userGroup->id] = $userGroup;
109
-            } catch(NotFoundException $e) {
109
+            } catch (NotFoundException $e) {
110 110
                 if (!$tolerateMisses) {
111 111
                     throw $e;
112 112
                 }
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
                 $userGroup = $this->repository->getUserService()->loadUserGroup($content->id);
137 137
 
138 138
                 $userGroups[$userGroup->id] = $userGroup;
139
-            } catch(NotFoundException $e) {
139
+            } catch (NotFoundException $e) {
140 140
                 if (!$tolerateMisses) {
141 141
                     throw $e;
142 142
                 }
Please login to merge, or discard this patch.
Core/Matcher/LanguageMatcher.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
                 // return unique contents
100 100
                 $language = $this->repository->getContentLanguageService()->loadLanguageById($languageId);
101 101
                 $languages[$language->id] = $language;
102
-            } catch(NotFoundException $e) {
102
+            } catch (NotFoundException $e) {
103 103
                 if (!$tolerateMisses) {
104 104
                     throw $e;
105 105
                 }
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                 // return unique contents
125 125
                 $language = $this->repository->getContentLanguageService()->loadLanguage($languageIdentifier);
126 126
                 $languages[$language->id] = $language;
127
-            } catch(NotFoundException $e) {
127
+            } catch (NotFoundException $e) {
128 128
                 if (!$tolerateMisses) {
129 129
                     throw $e;
130 130
                 }
Please login to merge, or discard this patch.