Completed
Branch develop (972ca0)
by Nate
02:45
created
src/Generation/Handler/HeaderHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
         }
58 58
 
59 59
         if ($context->annotations()->isMultipart()) {
60
-            return ['Content-Type' => 'multipart/form-data; boundary=' . $context->annotations()->getMultipartBoundary()];
60
+            return ['Content-Type' => 'multipart/form-data; boundary='.$context->annotations()->getMultipartBoundary()];
61 61
         }
62 62
 
63 63
         $contentType = ['Content-Type' => 'application/x-www-form-urlencoded'];
Please login to merge, or discard this patch.
src/Generation/Handler/ReturnHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,5 +76,5 @@
 block discarded – undo
76 76
 
77 77
         $context->body()->add('$returnEvent = new \Tebru\Retrofit\Event\ReturnEvent($return);');
78 78
         $context->body()->add('$this->eventDispatcher->dispatch("retrofit.return", $returnEvent);');
79
-        $context->body()->add('return $returnEvent->getReturn();');    }
79
+        $context->body()->add('return $returnEvent->getReturn();'); }
80 80
 }
Please login to merge, or discard this patch.
src/Generation/Provider/AnnotationProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
         }
153 153
 
154 154
         /** @var Header[] $headerAnnotations */
155
-        $headerAnnotations = $this->annotations->get(Header::NAME) ;
155
+        $headerAnnotations = $this->annotations->get(Header::NAME);
156 156
 
157 157
         $headers = [];
158 158
         foreach ($headerAnnotations as $headerAnnotation) {
@@ -461,7 +461,7 @@  discard block
 block discarded – undo
461 461
             return null;
462 462
         }
463 463
 
464
-        return '$' . $callback->getName();
464
+        return '$'.$callback->getName();
465 465
     }
466 466
 
467 467
     /**
Please login to merge, or discard this patch.
src/Generation/Printer/ArrayPrinter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     public function printArray(array $array)
58 58
     {
59 59
         $string = var_export($array, true);
60
-        $string = preg_replace('/\'\$(.+)\'/', '$' . '\\1', $string);
60
+        $string = preg_replace('/\'\$(.+)\'/', '$'.'\\1', $string);
61 61
 
62 62
         $statements = $this->parser->parse($string);
63 63
 
Please login to merge, or discard this patch.
src/Adapter/Rest/RestAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
         if (class_exists($service)) {
95 95
             $class = $service;
96 96
         } elseif (interface_exists($service)) {
97
-            $class = Retrofit::NAMESPACE_PREFIX . '\\' . $service;
97
+            $class = Retrofit::NAMESPACE_PREFIX.'\\'.$service;
98 98
         } else {
99 99
             throw new RetrofitException(sprintf('Could not create client. "%s" should be a class or interface.', $service));
100 100
         }
Please login to merge, or discard this patch.
src/Annotation/VariableMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
      */
67 67
     public function getVariable()
68 68
     {
69
-        return '$' . $this->getVariableName();
69
+        return '$'.$this->getVariableName();
70 70
     }
71 71
 
72 72
     /**
Please login to merge, or discard this patch.
src/RetrofitBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         $this->eventDispatcher->addListener(MethodEvent::NAME, new DynamoMethodListener());
102 102
 
103 103
         if (null === $this->cacheDir) {
104
-            $this->cacheDir = sys_get_temp_dir() . '/retrofit';
104
+            $this->cacheDir = sys_get_temp_dir().'/retrofit';
105 105
         }
106 106
 
107 107
         if (null === $this->serviceResolver) {
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         if (null === $this->generator) {
112 112
             $this->generator = Generator::builder()
113 113
                 ->setNamespacePrefix(Retrofit::NAMESPACE_PREFIX)
114
-                ->setCacheDir($this->cacheDir . '/retrofit')
114
+                ->setCacheDir($this->cacheDir.'/retrofit')
115 115
                 ->setEventDispatcher($this->eventDispatcher)
116 116
                 ->build();
117 117
         }
Please login to merge, or discard this patch.