Completed
Push — master ( b2c38b...f910d1 )
by Gaetano
07:22
created
Core/Executor/LoopExecutor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
                     $subStep = new MigrationStep($type, $stepDef, array_merge($step->context, array()));
81 81
                     try {
82 82
                         $result = $stepExecutors[$j]->execute($subStep);
83
-                    } catch(MigrationStepSkippedException $e) {
83
+                    } catch (MigrationStepSkippedException $e) {
84 84
                         // all ok, continue the loop
85 85
                     }
86 86
                 }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
                     $subStep = new MigrationStep($type, $stepDef, array_merge($step->context, array()));
98 98
                     try {
99 99
                         $result = $stepExecutors[$j]->execute($subStep);
100
-                    } catch(MigrationStepSkippedException $e) {
100
+                    } catch (MigrationStepSkippedException $e) {
101 101
                         // all ok, continue the loop
102 102
                     }
103 103
                 }
Please login to merge, or discard this patch.
Core/Matcher/QueryBasedMatcher.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -308,6 +308,9 @@
 block discarded – undo
308 308
         return $out;
309 309
     }
310 310
 
311
+    /**
312
+     * @return string
313
+     */
311 314
     protected function hash2SortOrder($value)
312 315
     {
313 316
         $sortOrder = null;
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
                 return new Query\Criterion\DateMetadata(Query\Criterion\DateMetadata::CREATED, self::$operatorsMap[$operator], $match);
147 147
 
148 148
             case self::MATCH_GROUP:
149
-                foreach($values as &$value) {
149
+                foreach ($values as &$value) {
150 150
                     if (!ctype_digit($value)) {
151 151
                         $value = $this->groupMatcher->matchOneByKey($value)->id;
152 152
                     }
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
                 return new Query\Criterion\DateMetadata(Query\Criterion\DateMetadata::MODIFIED, self::$operatorsMap[$operator], $match);
166 166
 
167 167
             case self::MATCH_OBJECT_STATE:
168
-                foreach($values as &$value) {
168
+                foreach ($values as &$value) {
169 169
                     if (!ctype_digit($value)) {
170 170
                         $value = $this->stateMatcher->matchOneByKey($value)->id;
171 171
                     }
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
                 return new Query\Criterion\ObjectStateId($values);
174 174
 
175 175
             case self::MATCH_OWNER:
176
-                foreach($values as &$value) {
176
+                foreach ($values as &$value) {
177 177
                     if (!ctype_digit($value)) {
178 178
                         $value = $this->userMatcher->matchOneByKey($value)->id;
179 179
                     }
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
                 return new Query\Criterion\ParentLocationId($locationIds);
194 194
 
195 195
             case self::MATCH_SECTION:
196
-                foreach($values as &$value) {
196
+                foreach ($values as &$value) {
197 197
                     if (!ctype_digit($value)) {
198 198
                         $value = $this->sectionMatcher->matchOneByKey($value)->id;
199 199
                     }
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 
215 215
             case self::MATCH_AND:
216 216
                 $subCriteria = array();
217
-                foreach($values as $subCriterion) {
217
+                foreach ($values as $subCriterion) {
218 218
                     $value = reset($subCriterion);
219 219
                     $subCriteria[] = $this->getQueryCriterion(key($subCriterion), $value);
220 220
                 }
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
 
223 223
             case self::MATCH_OR:
224 224
                 $subCriteria = array();
225
-                foreach($values as $subCriterion) {
225
+                foreach ($values as $subCriterion) {
226 226
                     $value = reset($subCriterion);
227 227
                     $subCriteria[] = $this->getQueryCriterion(key($subCriterion), $value);
228 228
                 }
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
 
260 260
             $direction = $this->hash2SortOrder($sortItem['sort_order']);
261 261
 
262
-            switch($sortItem['sort_field']) {
262
+            switch ($sortItem['sort_field']) {
263 263
                 case SELF::SORT_CONTENT_ID:
264 264
                     $out[] = new SortClause\ContentId($direction);
265 265
                     break;
Please login to merge, or discard this patch.
Core/Helper/SortConverter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     public function sortField2Hash($value)
41 41
     {
42 42
         $ref = new \ReflectionClass('eZ\Publish\API\Repository\Values\Content\Location');
43
-        foreach($ref->getConstants() as $key => $val) {
43
+        foreach ($ref->getConstants() as $key => $val) {
44 44
             if (strpos($key, 'SORT_FIELD_') === 0 && $val == $value) {
45 45
                 $out = strtolower(substr($key, 11));
46 46
                 if ($out == 'contentobject_id') {
Please login to merge, or discard this patch.