Completed
Pull Request — master (#72)
by Nate
02:43
created
src/Internal/AnnotationHandler/HttpRequestAnnotHandler.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     /**
25 25
      * Sets the request method, uri, and whether or not the request contains a body
26 26
      *
27
-     * @param HttpRequest|AbstractAnnotation $annotation The annotation to handle
27
+     * @param AbstractAnnotation $annotation The annotation to handle
28 28
      * @param ServiceMethodBuilder $serviceMethodBuilder Used to construct a [@see ServiceMethod]
29 29
      * @param Converter|null $converter Converter used to convert types before sending to service method
30 30
      * @param int|null $index The position of the parameter or null if annotation does not reference parameter
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
  * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5 5
  */
6 6
 
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace Tebru\Retrofit\Internal\AnnotationHandler;
10 10
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         ServiceMethodBuilder $serviceMethodBuilder,
37 37
         ?Converter $converter,
38 38
         ?int $index
39
-    ): void {
39
+    ) : void {
40 40
         $uri = $annotation->getValue();
41 41
 
42 42
         $serviceMethodBuilder->setMethod($annotation->getType());
Please login to merge, or discard this patch.
src/ResponseBodyConverter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
  * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5 5
  */
6 6
 
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace Tebru\Retrofit;
10 10
 
Please login to merge, or discard this patch.
src/AnnotationHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
  * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5 5
  */
6 6
 
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace Tebru\Retrofit;
10 10
 
@@ -34,5 +34,5 @@  discard block
 block discarded – undo
34 34
         ServiceMethodBuilder $serviceMethodBuilder,
35 35
         ?Converter $converter,
36 36
         ?int $index
37
-    ): void;
37
+    ) : void;
38 38
 }
Please login to merge, or discard this patch.
src/Proxy/AbstractProxy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
  * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5 5
  */
6 6
 
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace Tebru\Retrofit\Proxy;
10 10
 
Please login to merge, or discard this patch.
src/Finder/ServiceResolver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
  * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5 5
  */
6 6
 
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace Tebru\Retrofit\Finder;
10 10
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
                 $className .= $namespaceMatches[1];
62 62
             }
63 63
 
64
-            $className .= '\\' . $interfaceMatches[1];
64
+            $className .= '\\'.$interfaceMatches[1];
65 65
 
66 66
             $services[] = $className;
67 67
         }
Please login to merge, or discard this patch.
src/Http/MultipartBody.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
  * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5 5
  */
6 6
 
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace Tebru\Retrofit\Http;
10 10
 
Please login to merge, or discard this patch.
src/Annotation/Path.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
  * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5 5
  */
6 6
 
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace Tebru\Retrofit\Annotation;
10 10
 
Please login to merge, or discard this patch.
src/Annotation/Headers.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
  * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5 5
  */
6 6
 
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace Tebru\Retrofit\Annotation;
10 10
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     protected function init(): void
37 37
     {
38 38
         // loop through each string and break on ':'
39
-        foreach ((array)$this->getValue() as $header) {
39
+        foreach ((array) $this->getValue() as $header) {
40 40
             $position = strpos($header, ':');
41 41
 
42 42
             if ($position === false) {
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
             $name = trim(substr($header, 0, $position));
47 47
             $value = trim(substr($header, $position + 1));
48 48
 
49
-            $this->value[$name] = (string)$value;
49
+            $this->value[$name] = (string) $value;
50 50
         }
51 51
     }
52 52
 }
Please login to merge, or discard this patch.
src/Annotation/HeaderMap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Tebru\Retrofit\Annotation;
6 6
 
Please login to merge, or discard this patch.