Completed
Pull Request — master (#72)
by Nate
02:43
created
src/Internal/AnnotationHandler/QueryNameAnnotHandler.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\Internal\AnnotationHandler;
10 10
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         ServiceMethodBuilder $serviceMethodBuilder,
38 38
         ?Converter $converter,
39 39
         ?int $index
40
-    ): void {
40
+    ) : void {
41 41
         $serviceMethodBuilder->addParameterHandler(
42 42
             $index,
43 43
             new QueryNameParamHandler($converter, $annotation->isEncoded())
Please login to merge, or discard this patch.
src/Internal/AnnotationHandler/HeadersAnnotHandler.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\Internal\AnnotationHandler;
10 10
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         ServiceMethodBuilder $serviceMethodBuilder,
35 35
         ?Converter $converter,
36 36
         ?int $index
37
-    ): void {
37
+    ) : void {
38 38
         /** @var string[] $headerList */
39 39
         $headerList = $annotation->getValue();
40 40
         foreach ($headerList as $name => $header) {
Please login to merge, or discard this patch.
src/Internal/AnnotationHandler/BodyAnnotHandler.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\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
         $serviceMethodBuilder->setIsJson();
41 41
         $serviceMethodBuilder->addParameterHandler($index, new BodyParamHandler($converter));
42 42
     }
Please login to merge, or discard this patch.
src/Internal/AnnotationHandler/PartMapAnnotHandler.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\Internal\AnnotationHandler;
10 10
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         ServiceMethodBuilder $serviceMethodBuilder,
38 38
         ?Converter $converter,
39 39
         ?int $index
40
-    ): void {
40
+    ) : void {
41 41
         $serviceMethodBuilder->setIsMultipart();
42 42
         $serviceMethodBuilder->addParameterHandler(
43 43
             $index,
Please login to merge, or discard this patch.
src/Internal/AnnotationHandler/QueryAnnotHandler.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\Internal\AnnotationHandler;
10 10
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         ServiceMethodBuilder $serviceMethodBuilder,
38 38
         ?Converter $converter,
39 39
         ?int $index
40
-    ): void {
40
+    ) : void {
41 41
         $serviceMethodBuilder->addParameterHandler(
42 42
             $index,
43 43
             new QueryParamHandler($converter, $annotation->getValue(), $annotation->isEncoded())
Please login to merge, or discard this patch.
src/Internal/ParameterHandler/FieldParamHandler.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\Internal\ParameterHandler;
10 10
 
Please login to merge, or discard this patch.
src/Internal/ParameterHandler/AbstractParameterHandler.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\Internal\ParameterHandler;
10 10
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      */
37 37
     protected function getListValues($list): Generator
38 38
     {
39
-        foreach ((array)$list as $key => $element) {
39
+        foreach ((array) $list as $key => $element) {
40 40
             if (!is_int($key)) {
41 41
                 throw new RuntimeException('Retrofit: Array value must use numeric keys');
42 42
             }
Please login to merge, or discard this patch.
src/Internal/DefaultProxyFactory.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\Internal;
10 10
 
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
                     $reflectionTypeName = '\\'.$reflectionTypeName;
166 166
                 }
167 167
 
168
-                $type = $reflectionParameter->getType()->allowsNull() ? new NullableType($reflectionTypeName): $reflectionTypeName;
168
+                $type = $reflectionParameter->getType()->allowsNull() ? new NullableType($reflectionTypeName) : $reflectionTypeName;
169 169
                 $paramBuilder->setTypeHint($type);
170 170
 
171 171
                 if ($reflectionParameter->isPassedByReference()) {
Please login to merge, or discard this patch.
src/Internal/ServiceMethod/DefaultServiceMethodBuilder.php 1 patch
Spacing   +8 added lines, -8 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\ServiceMethod;
10 10
 
@@ -153,8 +153,8 @@  discard block
 block discarded – undo
153 153
     {
154 154
         if ($this->hasBody !== null && $this->hasBody !== $hasBody) {
155 155
             throw new LogicException(
156
-                'Retrofit: Body cannot be changed after it has been set. This indicates a conflict between ' .
157
-                'HTTP Request annotations, body annotations, and request type annotations. For example, ' .
156
+                'Retrofit: Body cannot be changed after it has been set. This indicates a conflict between '.
157
+                'HTTP Request annotations, body annotations, and request type annotations. For example, '.
158 158
                 '@GET cannot be used with @Body, @Field, or @Part annotations'
159 159
             );
160 160
         }
@@ -176,8 +176,8 @@  discard block
 block discarded – undo
176 176
     {
177 177
         if ($this->contentType !== null && $this->contentType !== $contentType) {
178 178
             throw new LogicException(
179
-                'Retrofit: Content type cannot be changed after it has been set. This indicates a conflict between ' .
180
-                'HTTP Request annotations, body annotations, and request type annotations. For example, ' .
179
+                'Retrofit: Content type cannot be changed after it has been set. This indicates a conflict between '.
180
+                'HTTP Request annotations, body annotations, and request type annotations. For example, '.
181 181
                 '@GET cannot be used with @Body, @Field, or @Part annotations'
182 182
             );
183 183
         }
@@ -325,15 +325,15 @@  discard block
 block discarded – undo
325 325
 
326 326
         if ($this->hasBody === true && $this->contentType === null) {
327 327
             throw new LogicException(
328
-                'Retrofit: Cannot build service method with body and no content type. Set one using @Body, ' .
328
+                'Retrofit: Cannot build service method with body and no content type. Set one using @Body, '.
329 329
                 '@Field, or @Part'
330 330
             );
331 331
         }
332 332
 
333 333
         if ($this->hasBody !== true && $this->contentType !== null) {
334 334
             throw new LogicException(
335
-                'Retrofit: Cannot set a content-type without a body. This indicates a conflict between ' .
336
-                'HTTP Request annotations, body annotations, and request type annotations. For example, ' .
335
+                'Retrofit: Cannot set a content-type without a body. This indicates a conflict between '.
336
+                'HTTP Request annotations, body annotations, and request type annotations. For example, '.
337 337
                 '@GET cannot be used with @Body, @Field, or @Part annotations'
338 338
             );
339 339
         }
Please login to merge, or discard this patch.