Passed
Pull Request — master (#8)
by Pieter
02:37
created
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.
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
         ObjectAccessInterface $objectAccess
15 15
     ): Pagerfanta {
16 16
         $paginator = new Pagerfanta(new ArrayAdapter(
17
-            array_values(array_filter($input, function ($item) use ($searchFilterRequest, $objectAccess) {
17
+            array_values(array_filter($input, function($item) use ($searchFilterRequest, $objectAccess) {
18 18
                 return self::filter($objectAccess, $item, $searchFilterRequest);
19 19
             }))
20 20
         ));
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         $count = 0;
64 64
         $offset = $searchFilterRequest->getOffset();
65 65
         $max = $offset + $searchFilterRequest->getNumberOfItems();
66
-        return array_values(array_filter($input, function ($item) use (&$count, $searchFilterRequest, $max, $offset, $accessor) {
66
+        return array_values(array_filter($input, function($item) use (&$count, $searchFilterRequest, $max, $offset, $accessor) {
67 67
             if ($count >= $max) {
68 68
                 return false;
69 69
             }
Please login to merge, or discard this patch.
src/Plugins/Pagination/PaginationPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         }
62 62
         if ($added) {
63 63
             $document->components->headers['Count'] = new Header('number of results', ['schema' => new Schema(['type' => 'number', 'format' => 'int'])]);
64
-            $document->components->headers['Url'] = new Header('pagination url', ['schema' => new Schema(['type' => 'string', 'format' => 'url']) ]);
64
+            $document->components->headers['Url'] = new Header('pagination url', ['schema' => new Schema(['type' => 'string', 'format' => 'url'])]);
65 65
         }
66 66
         return $document;
67 67
     }
Please login to merge, or discard this patch.