Completed
Pull Request — master (#72)
by Nate
02:43
created
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/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.
src/Internal/RequestBuilder.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
 
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Command/CompileCommand.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\Command;
10 10
 
Please login to merge, or discard this patch.
src/Call.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
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
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
Please login to merge, or discard this patch.
src/HttpClient.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/ConverterFactory.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.