Passed
Push — master ( 1a9d97...a8401c )
by Pieter
03:23 queued 52s
created
src/SearchFilters/SearchFilterHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         $count = 0;
23 23
         $offset = $searchFilterRequest->getOffset();
24 24
         $max = $offset + $searchFilterRequest->getNumberOfItems();
25
-        return array_values(array_filter($input, function ($item) use (&$count, $searchFilterRequest, $max, $offset, $accessor) {
25
+        return array_values(array_filter($input, function($item) use (&$count, $searchFilterRequest, $max, $offset, $accessor) {
26 26
             if ($count >= $max) {
27 27
                 return false;
28 28
             }
Please login to merge, or discard this patch.
src/Mocks/MockApiResourceDataLayer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
             return [];
128 128
         }
129 129
         return array_map(
130
-            function ($id) use (&$resourceClass, &$context) {
130
+            function($id) use (&$resourceClass, &$context) {
131 131
                 return $this->retrieve($resourceClass, $id, $context);
132 132
             },
133 133
             SearchFilterHelper::applySearchFilter($cacheItem->get(), $searchFilterRequest, $this->propertyAccessor)
Please login to merge, or discard this patch.
src/Retrievers/StatusCheckRetriever.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -94,11 +94,11 @@
 block discarded – undo
94 94
         $offset = $searchFilterRequest->getOffset();
95 95
         $numberOfItems = $searchFilterRequest->getNumberOfItems();
96 96
         $filter = (array_key_exists('status', $searchFilterRequest->getSearches()))
97
-            ? function (Status $status) use ($searchFilterRequest) { return $status->getStatus() === $searchFilterRequest->getSearches()['status']; }
98
-            : function () { return true; };
97
+            ? function(Status $status) use ($searchFilterRequest) { return $status->getStatus() === $searchFilterRequest->getSearches()['status']; }
98
+            : function() { return true; };
99 99
         return new LimitIterator(
100 100
             new CallbackFilterIterator(
101
-                new RewindableGenerator(function () {
101
+                new RewindableGenerator(function() {
102 102
                     return $this->iterate();
103 103
                 }),
104 104
                 $filter
Please login to merge, or discard this patch.
src/ExtendReaderWithConfigReader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $className = $class->getName();
36 36
         $annotations = $this->reader->getClassAnnotations($class);
37 37
         if (isset($this->config[$className])) {
38
-            $annotations = array_filter($annotations, function ($annotation) {
38
+            $annotations = array_filter($annotations, function($annotation) {
39 39
                 return !($annotation instanceof ApiResource);
40 40
             });
41 41
             $annotations[] = $this->config[$className];
Please login to merge, or discard this patch.