Completed
Branch v4 (4e54dd)
by Pieter
03:26
created
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/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/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/Core/CorePlugin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -186,16 +186,16 @@
 block discarded – undo
186 186
                     new SerializerExtractor($factory),
187 187
                     $reflectionExtractor,
188 188
                 ] + $this->getApie()->getListExtractors(),
189
-                $this->getApie()->getTypeExtractors() +[
189
+                $this->getApie()->getTypeExtractors() + [
190 190
                     $phpDocExtractor,
191 191
                     $reflectionExtractor,
192 192
                 ],
193 193
                 $this->getApie()->getDescriptionExtractors() + [
194 194
                     $phpDocExtractor,
195
-                ] ,
195
+                ],
196 196
                 $this->getApie()->getAccessExtractors() + [
197 197
                     $reflectionExtractor,
198
-                ] ,
198
+                ],
199 199
                 $this->getApie()->getInitializableExtractors() + [
200 200
                     $reflectionExtractor,
201 201
                 ]
Please login to merge, or discard this patch.
src/Apie.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         $this->pluginContainer = new PluginContainer($plugins);
113 113
         $this->pluginContainer->each(
114 114
             ApieAwareInterface::class,
115
-            function (ApieAwareInterface $plugin) {
115
+            function(ApieAwareInterface $plugin) {
116 116
                 $plugin->setApie($this);
117 117
             }
118 118
         );
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
 
322 322
     public function onOpenApiDocGenerated(Document $document): Document
323 323
     {
324
-        $this->pluginContainer->each(OpenApiEventProviderInterface::class, function (OpenApiEventProviderInterface $plugin) use (&$document) {
324
+        $this->pluginContainer->each(OpenApiEventProviderInterface::class, function(OpenApiEventProviderInterface $plugin) use (&$document) {
325 325
             $document = $plugin->onOpenApiDocGenerated($document);
326 326
         });
327 327
         return $document;
Please login to merge, or discard this patch.
Indentation   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,6 @@  discard block
 block discarded – undo
95 95
     private $chainableFormatRetriever;
96 96
 
97 97
     /**
98
-
99 98
      * @param object[] $plugins
100 99
      * @param bool $debug
101 100
      * @param string|null $cacheFolder
@@ -343,7 +342,7 @@  discard block
 block discarded – undo
343 342
         return $document;
344 343
     }
345 344
 
346
-     public function getObjectAccess(): ObjectAccessInterface
345
+        public function getObjectAccess(): ObjectAccessInterface
347 346
     {
348 347
         $objectAccess = new ObjectAccess();
349 348
         $objectAccesses = $this->pluginContainer->getPluginsWithInterface(ObjectAccessProviderInterface::class);
Please login to merge, or discard this patch.
src/Core/ApiResourceFacade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -193,7 +193,7 @@
 block discarded – undo
193 193
         if (!$event->getResource()) {
194 194
             $event->setResource($this->serializer->postData(
195 195
                 $resourceClass,
196
-                (string)$event->getRequest()->getBody(),
196
+                (string) $event->getRequest()->getBody(),
197 197
                 $event->getRequest()->getHeader('Content-Type')[0] ?? 'application/json'
198 198
             ));
199 199
         }
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
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
             $this->apie->getBaseUrl(),
85 85
             $this->getSubActionContainer(),
86 86
             $this->apie->getPropertyConverter(),
87
-            function (Document $doc) {
87
+            function(Document $doc) {
88 88
                 $this->apie->onOpenApiDocGenerated($doc);
89 89
             }
90 90
         );
Please login to merge, or discard this patch.
src/OpenApiSchema/SubActions/SubAction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,13 +58,13 @@
 block discarded – undo
58 58
 
59 59
     public function getSummary(): ?string
60 60
     {
61
-        $factory  = DocBlockFactory::createInstance();
61
+        $factory = DocBlockFactory::createInstance();
62 62
         $docComment = $this->reflectionMethod->getDocComment();
63 63
         if (!$docComment) {
64 64
             return null;
65 65
         }
66 66
         $docblock = $factory->create($docComment);
67
-        return $docblock->getDescription() ? : null;
67
+        return $docblock->getDescription() ?: null;
68 68
     }
69 69
 
70 70
     /**
Please login to merge, or discard this patch.
src/Plugins/Core/Serializers/SymfonySerializerAdapter.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -147,8 +147,8 @@
 block discarded – undo
147 147
         return $this->serializer->denormalize(
148 148
             $data,
149 149
             $resourceClass,
150
-           null,
151
-           ['object_access' => new ObjectAccess(false, true)]
150
+            null,
151
+            ['object_access' => new ObjectAccess(false, true)]
152 152
         );
153 153
     }
154 154
 }
Please login to merge, or discard this patch.