Completed
Push — master ( 5a501b...3982a6 )
by Gaetano
08:04
created
Core/Matcher/LocationMatcher.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,9 @@  discard block
 block discarded – undo
50 50
 
51 51
             $query = new LocationQuery();
52 52
             $query->limit = self::INT_MAX_16BIT;
53
-            if (isset($query->performCount)) $query->performCount = false;
53
+            if (isset($query->performCount)) {
54
+                $query->performCount = false;
55
+            }
54 56
             $query->filter = $this->getQueryCriterion($key, $values);
55 57
             $results = $this->repository->getSearchService()->findLocations($query);
56 58
 
@@ -196,7 +198,9 @@  discard block
 block discarded – undo
196 198
     {
197 199
         $query = new LocationQuery();
198 200
         $query->limit = self::INT_MAX_16BIT;
199
-        if (isset($query->performCount)) $query->performCount = false;
201
+        if (isset($query->performCount)) {
202
+            $query->performCount = false;
203
+        }
200 204
         $query->filter = new Query\Criterion\ParentLocationId($parentLocationIds);
201 205
 
202 206
         $results = $this->repository->getSearchService()->findLocations($query);
Please login to merge, or discard this patch.
Core/Matcher/ContentMatcher.php 1 patch
Braces   +12 added lines, -4 removed lines patch added patch discarded remove patch
@@ -85,7 +85,9 @@  discard block
 block discarded – undo
85 85
 
86 86
                     $query = new Query();
87 87
                     $query->limit = self::INT_MAX_16BIT;
88
-                    if (isset($query->performCount)) $query->performCount = false;
88
+                    if (isset($query->performCount)) {
89
+                        $query->performCount = false;
90
+                    }
89 91
                     $query->filter = $this->getQueryCriterion($key, $values);
90 92
                     switch ($key) {
91 93
                         case 'content_type_id':
@@ -206,7 +208,9 @@  discard block
 block discarded – undo
206 208
     {
207 209
         $query = new Query();
208 210
         $query->limit = self::INT_MAX_16BIT;
209
-        if (isset($query->performCount)) $query->performCount = false;
211
+        if (isset($query->performCount)) {
212
+            $query->performCount = false;
213
+        }
210 214
         $query->filter = new Query\Criterion\ParentLocationId($parentLocationIds);
211 215
         $results = $this->repository->getSearchService()->findContent($query);
212 216
 
@@ -246,7 +250,9 @@  discard block
 block discarded – undo
246 250
     {
247 251
         $query = new Query();
248 252
         $query->limit = self::INT_MAX_16BIT;
249
-        if (isset($query->performCount)) $query->performCount = false;
253
+        if (isset($query->performCount)) {
254
+            $query->performCount = false;
255
+        }
250 256
         $query->filter = new Query\Criterion\ContentTypeIdentifier($contentTypeIdentifiers);
251 257
         // sort objects by depth, lower to higher, so that deleting them has less chances of failure
252 258
         // NB: we only do this in eZP versions that allow depth sorting on content queries
@@ -274,7 +280,9 @@  discard block
 block discarded – undo
274 280
     {
275 281
         $query = new Query();
276 282
         $query->limit = self::INT_MAX_16BIT;
277
-        if (isset($query->performCount)) $query->performCount = false;
283
+        if (isset($query->performCount)) {
284
+            $query->performCount = false;
285
+        }
278 286
         $query->filter = new Query\Criterion\ContentTypeId($contentTypeIds);
279 287
         // sort objects by depth, lower to higher, so that deleting them has less chances of failure
280 288
         // NB: we only do this in eZP versions that allow depth sorting on content queries
Please login to merge, or discard this patch.
Core/Matcher/TrashMatcher.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,9 @@
 block discarded – undo
36 36
 
37 37
             $query = new Query();
38 38
             $query->limit = self::INT_MAX_16BIT;
39
-            if (isset($query->performCount)) $query->performCount = false;
39
+            if (isset($query->performCount)) {
40
+                $query->performCount = false;
41
+            }
40 42
             $query->filter = $this->getQueryCriterion($key, $values);
41 43
             $results = $this->repository->getTrashService()->findTrashItems($query);
42 44
 
Please login to merge, or discard this patch.
Core/Loader/FilesystemRecursive.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@
 block discarded – undo
60 60
                         }
61 61
                     }
62 62
                 }
63
-            }
64
-            else {
63
+            } else {
65 64
                 throw new \Exception("Path '$path' is neither a file nor directory");
66 65
             }
67 66
         }
Please login to merge, or discard this patch.