Completed
Push — master ( c34cac...3c68a7 )
by Pieter
04:47
created
src/Apie.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
         if (!$this->chainableFormatRetriever) {
325 325
             $this->chainableFormatRetriever = new ChainableFormatRetriever(
326 326
                 array_map(
327
-                    function (EncoderProviderInterface $encoderProvider) {
327
+                    function(EncoderProviderInterface $encoderProvider) {
328 328
                         return $encoderProvider->getFormatRetriever();
329 329
                     },
330 330
                     $this->encoders
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
         if (!$this->chainableFactory) {
360 360
             $this->chainableFactory = new ChainableFactory(
361 361
                 array_map(
362
-                    function (ApiResourceFactoryProviderInterface $factoryProvider) {
362
+                    function(ApiResourceFactoryProviderInterface $factoryProvider) {
363 363
                         return $factoryProvider->getApiResourceFactory();
364 364
                     },
365 365
                     $this->apiResourceFactories
Please login to merge, or discard this patch.
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,6 @@
 block discarded – undo
148 148
     private $openApiEventProviders = [];
149 149
 
150 150
     /**
151
-
152 151
      * @param object[] $plugins
153 152
      * @param bool $debug
154 153
      * @param string|null $cacheFolder
Please login to merge, or discard this patch.
src/Core/IdentifierExtractor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
                     return $result;
48 48
                 }
49 49
             } catch (ReflectionException $e) {
50
-                $e->getMessage();//ignore
50
+                $e->getMessage(); //ignore
51 51
             }
52 52
         }
53 53
         return null;
Please login to merge, or discard this patch.
src/Core/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/Plugins/ValueObject/ValueObjectPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     public function getDynamicSchemaLogic(): array
35 35
     {
36 36
         return [
37
-            ValueObjectInterface::class => function (string $resourceClass) {
37
+            ValueObjectInterface::class => function(string $resourceClass) {
38 38
                 return $resourceClass::toSchema();
39 39
             }
40 40
         ];
Please login to merge, or discard this patch.
src/Plugins/Mock/DataLayers/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/Plugins/FakeAnnotations/Readers/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.
src/Core/ApieCore.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
             $this->getApiResourceMetadataFactory(),
61 61
             $this->getIdentifierExtractor(),
62 62
             $this->apie->getBaseUrl(),
63
-            function (Document $doc) {
63
+            function(Document $doc) {
64 64
                 $this->apie->onOpenApiDocGenerated($doc);
65 65
             }
66 66
         );
Please login to merge, or discard this patch.
src/Plugins/Mock/ResourceFactories/MockApiResourceFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
         $prop->setAccessible(true);
101 101
         $factories = $prop->getValue($factory);
102 102
         return $this->apie = new ChainableFactory(
103
-            array_filter($factories, function (ApiResourceFactoryInterface $factory) {
103
+            array_filter($factories, function(ApiResourceFactoryInterface $factory) {
104 104
                 return !$factory instanceof MockApiResourceFactory;
105 105
             })
106 106
         );
Please login to merge, or discard this patch.
src/Plugins/StatusCheck/DataLayers/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.