Completed
Pull Request — master (#72)
by Nate
03:35
created
src/Internal/ParameterHandler/QueryNameParamHandler.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/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.
src/Internal/ServiceMethod/DefaultServiceMethod.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\Internal\ServiceMethod;
10 10
 
@@ -126,8 +126,8 @@  discard block
 block discarded – undo
126 126
     {
127 127
         if (count($this->parameterHandlers) !== count($args)) {
128 128
             throw new LogicException(sprintf(
129
-                'Retrofit: Incompatible number of arguments. Expected %d and got %s. This either ' .
130
-                'means that the service method was not called with the correct number of parameters, ' .
129
+                'Retrofit: Incompatible number of arguments. Expected %d and got %s. This either '.
130
+                'means that the service method was not called with the correct number of parameters, '.
131 131
                 'or there is not an annotation for every parameter.',
132 132
                 count($this->parameterHandlers),
133 133
                 count($args)
Please login to merge, or discard this patch.
src/Internal/ServiceMethod/ServiceMethodFactory.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\ServiceMethod;
10 10
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
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()
Please login to merge, or discard this patch.
src/Internal/Converter/DefaultRequestBodyConverter.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\Converter;
10 10
 
Please login to merge, or discard this patch.
src/Internal/Converter/DefaultResponseBodyConverter.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\Converter;
10 10
 
Please login to merge, or discard this patch.
src/Internal/Converter/DefaultStringConverter.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\Converter;
10 10
 
@@ -38,6 +38,6 @@  discard block
 block discarded – undo
38 38
             return 'false';
39 39
         }
40 40
 
41
-        return (string)$value;
41
+        return (string) $value;
42 42
     }
43 43
 }
Please login to merge, or discard this patch.
src/Internal/Converter/ConverterProvider.php 1 patch
Spacing   +4 added lines, -4 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\Converter;
10 10
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.