Completed
Pull Request — master (#72)
by Nate
02:43
created
src/Internal/HttpClientCall.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;
10 10
 
@@ -102,16 +102,16 @@  discard block
 block discarded – undo
102 102
      * @return Call
103 103
      * @throws \LogicException
104 104
      */
105
-    public function enqueue(?callable $onResponse = null, ?callable $onFailure = null): Call
105
+    public function enqueue(? callable $onResponse = null, ? callable $onFailure = null) : Call
106 106
     {
107 107
         $this->client->sendAsync(
108 108
             $this->request(),
109
-            function (ResponseInterface $response) use ($onResponse) {
109
+            function(ResponseInterface $response) use ($onResponse) {
110 110
                 if ($onResponse !== null) {
111 111
                     $onResponse($this->createResponse($response));
112 112
                 }
113 113
             },
114
-            function (Throwable $throwable) use ($onFailure) {
114
+            function(Throwable $throwable) use ($onFailure) {
115 115
                 if ($onFailure === null) {
116 116
                     throw $throwable;
117 117
                 }
Please login to merge, or discard this patch.
src/Internal/AnnotationProcessor.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
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         }
99 99
 
100 100
         throw new LogicException(sprintf(
101
-            'Retrofit: Could not find parameter named %s in %s::%s. Please double check that annotations are properly ' .
101
+            'Retrofit: Could not find parameter named %s in %s::%s. Please double check that annotations are properly '.
102 102
             'referencing method parameters.',
103 103
             $name,
104 104
             $reflectionMethod->getDeclaringClass()->getName(),
Please login to merge, or discard this patch.
src/Internal/Filesystem.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
 
@@ -39,6 +39,6 @@  discard block
 block discarded – undo
39 39
     {
40 40
         $written = file_put_contents($filename, $contents);
41 41
 
42
-        return !((int)$written === 0);
42
+        return !((int) $written === 0);
43 43
     }
44 44
 }
Please login to merge, or discard this patch.
src/Internal/CallAdapter/CallAdapterProvider.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\CallAdapter;
10 10
 
Please login to merge, or discard this patch.
src/Internal/AnnotationHandler/QueryMapAnnotHandler.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 QueryMapParamHandler($converter, $annotation->isEncoded())
Please login to merge, or discard this patch.
src/Internal/AnnotationHandler/FieldMapAnnotHandler.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->setIsFormUrlEncoded();
42 42
         $serviceMethodBuilder->addParameterHandler(
43 43
             $index,
Please login to merge, or discard this patch.
src/Internal/AnnotationHandler/PathAnnotHandler.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->addParameterHandler($index, new PathParamHandler($converter, $annotation->getValue()));
41 41
     }
42 42
 }
Please login to merge, or discard this patch.
src/Internal/AnnotationHandler/HeaderAnnotHandler.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->addParameterHandler(
41 41
             $index,
42 42
             new HeaderParamHandler($converter, $annotation->getValue())
Please login to merge, or discard this patch.
src/Internal/AnnotationHandler/HeaderMapAnnotHandler.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->addParameterHandler($index, new HeaderMapParamHandler($converter));
41 41
     }
42 42
 }
Please login to merge, or discard this patch.