Completed
Branch v4 (4e54dd)
by Pieter
03:26
created
src/Core/SearchFilters/SearchFilterHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
         PropertyAccessorInterface  $accessor
15 15
     ): Pagerfanta {
16 16
         $paginator = new Pagerfanta(new ArrayAdapter(
17
-            array_values(array_filter($input, function ($item) use ($searchFilterRequest, $accessor) {
17
+            array_values(array_filter($input, function($item) use ($searchFilterRequest, $accessor) {
18 18
                 return self::filter($accessor, $item, $searchFilterRequest);
19 19
             }))
20 20
         ));
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         $count = 0;
56 56
         $offset = $searchFilterRequest->getOffset();
57 57
         $max = $offset + $searchFilterRequest->getNumberOfItems();
58
-        return array_values(array_filter($input, function ($item) use (&$count, $searchFilterRequest, $max, $offset, $accessor) {
58
+        return array_values(array_filter($input, function($item) use (&$count, $searchFilterRequest, $max, $offset, $accessor) {
59 59
             if ($count >= $max) {
60 60
                 return false;
61 61
             }
Please login to merge, or discard this patch.
src/Plugins/Mock/Pagers/MockAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
         );
71 71
 
72 72
         return array_map(
73
-            function ($id) {
73
+            function($id) {
74 74
                 return $this->dataLayer->retrieve($this->resourceClass, $id, $this->context);
75 75
             },
76 76
             SearchFilterHelper::applySearchFilter($this->idList, $searchFilterRequest, $this->propertyAccessor)
Please login to merge, or discard this patch.
src/Plugins/StatusCheck/DataLayers/StatusCheckRetriever.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,11 +95,11 @@
 block discarded – undo
95 95
      */
96 96
     public function retrieveAll(string $resourceClass, array $context, SearchFilterRequest $searchFilterRequest): iterable
97 97
     {
98
-        $iterator = new RewindableGenerator(function () {
98
+        $iterator = new RewindableGenerator(function() {
99 99
             return $this->iterate();
100 100
         });
101 101
         if (array_key_exists('status', $searchFilterRequest->getSearches())) {
102
-            $filter = function (Status $status) use ($searchFilterRequest) {
102
+            $filter = function(Status $status) use ($searchFilterRequest) {
103 103
                 return $status->getStatus() === $searchFilterRequest->getSearches()['status'];
104 104
             };
105 105
             $iterator = new CallbackFilterIterator(
Please login to merge, or discard this patch.