@@ -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']; |
@@ -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 | /** |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | $this->parameters[] = $paramName; |
| 61 | 61 | |
| 62 | 62 | // replace {variable} with $variable in path for each match found |
| 63 | - $path = str_replace($pathMatches[0][$key], '$' . $paramName, $path); |
|
| 63 | + $path = str_replace($pathMatches[0][$key], '$'.$paramName, $path); |
|
| 64 | 64 | } |
| 65 | 65 | } |
| 66 | 66 | |
@@ -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 | } |
@@ -463,7 +463,7 @@ |
||
| 463 | 463 | return null; |
| 464 | 464 | } |
| 465 | 465 | |
| 466 | - return '$' . $callback->getName(); |
|
| 466 | + return '$'.$callback->getName(); |
|
| 467 | 467 | } |
| 468 | 468 | |
| 469 | 469 | /** |