@@ -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\ServiceMethod; |
| 10 | 10 | |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | ); |
| 137 | 137 | } catch (LogicException $exception) { |
| 138 | 138 | throw new LogicException( |
| 139 | - $exception->getMessage() . |
|
| 139 | + $exception->getMessage(). |
|
| 140 | 140 | sprintf(' for %s::%s()', |
| 141 | 141 | $reflectionMethod->getDeclaringClass()->getName(), |
| 142 | 142 | $reflectionMethod->getName() |
@@ -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\Internal\Converter; |
| 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\Internal\Converter; |
| 10 | 10 | |
@@ -38,6 +38,6 @@ discard block |
||
| 38 | 38 | return 'false'; |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | - return (string)$value; |
|
| 41 | + return (string) $value; |
|
| 42 | 42 | } |
| 43 | 43 | } |
@@ -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\Converter; |
| 10 | 10 | |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | */ |
| 72 | 72 | public function getResponseBodyConverter(TypeToken $type): ResponseBodyConverter |
| 73 | 73 | { |
| 74 | - $key = (string)$type; |
|
| 74 | + $key = (string) $type; |
|
| 75 | 75 | if (isset($this->responseBodyConverters[$key])) { |
| 76 | 76 | return $this->responseBodyConverters[$key]; |
| 77 | 77 | } |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | */ |
| 103 | 103 | public function getRequestBodyConverter(TypeToken $type): RequestBodyConverter |
| 104 | 104 | { |
| 105 | - $key = (string)$type; |
|
| 105 | + $key = (string) $type; |
|
| 106 | 106 | if (isset($this->requestBodyConverters[$key])) { |
| 107 | 107 | return $this->requestBodyConverters[$key]; |
| 108 | 108 | } |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | */ |
| 134 | 134 | public function getStringConverter(TypeToken $type): StringConverter |
| 135 | 135 | { |
| 136 | - $key = (string)$type; |
|
| 136 | + $key = (string) $type; |
|
| 137 | 137 | if (isset($this->stringConverters[$key])) { |
| 138 | 138 | return $this->stringConverters[$key]; |
| 139 | 139 | } |
@@ -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; |
| 10 | 10 | |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | * @param array $headers |
| 193 | 193 | * @param null|string $filename |
| 194 | 194 | */ |
| 195 | - public function addPart(string $name, StreamInterface $contents, array $headers = [], ?string $filename = null): void |
|
| 195 | + public function addPart(string $name, StreamInterface $contents, array $headers = [], ?string $filename = null) : void |
|
| 196 | 196 | { |
| 197 | 197 | $this->parts[] = [ |
| 198 | 198 | 'name' => $name, |
@@ -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\Command; |
| 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 | |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | * @param callable $onFailure On any network request failure |
| 53 | 53 | * @return Call |
| 54 | 54 | */ |
| 55 | - public function enqueue(?callable $onResponse = null, ?callable $onFailure = null): Call; |
|
| 55 | + public function enqueue(? callable $onResponse = null, ? callable $onFailure = null) : Call; |
|
| 56 | 56 | |
| 57 | 57 | /** |
| 58 | 58 | * When making requests asynchronously, call wait() to execute the requests |
@@ -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 @@ |
||
| 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 | |