@@ -24,7 +24,7 @@ |
||
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 |
@@ -4,7 +4,7 @@ discard block |
||
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 |
||
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()); |
@@ -4,7 +4,7 @@ |
||
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 |
@@ -4,7 +4,7 @@ discard block |
||
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 |
||
34 | 34 | ServiceMethodBuilder $serviceMethodBuilder, |
35 | 35 | ?Converter $converter, |
36 | 36 | ?int $index |
37 | - ): void; |
|
37 | + ) : void; |
|
38 | 38 | } |
@@ -4,7 +4,7 @@ |
||
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 |
@@ -4,7 +4,7 @@ discard block |
||
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 |
||
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 | } |
@@ -4,7 +4,7 @@ |
||
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 |
@@ -4,7 +4,7 @@ |
||
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 |
@@ -4,7 +4,7 @@ discard block |
||
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 |
||
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 |
||
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 | } |
@@ -1,6 +1,6 @@ |
||
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 |