@@ -57,7 +57,7 @@ |
||
| 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']; |
@@ -76,5 +76,5 @@ |
||
| 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 | } |
@@ -152,7 +152,7 @@ discard block |
||
| 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 |
||
| 461 | 461 | return null; |
| 462 | 462 | } |
| 463 | 463 | |
| 464 | - return '$' . $callback->getName(); |
|
| 464 | + return '$'.$callback->getName(); |
|
| 465 | 465 | } |
| 466 | 466 | |
| 467 | 467 | /** |
@@ -57,7 +57,7 @@ |
||
| 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 | |
@@ -94,7 +94,7 @@ |
||
| 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 | } |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | */ |
| 67 | 67 | public function getVariable() |
| 68 | 68 | { |
| 69 | - return '$' . $this->getVariableName(); |
|
| 69 | + return '$'.$this->getVariableName(); |
|
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | /** |
@@ -101,7 +101,7 @@ discard block |
||
| 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 |
||
| 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 | } |