@@ -50,7 +50,7 @@ |
||
| 50 | 50 | { |
| 51 | 51 | $promise = $next($request); |
| 52 | 52 | |
| 53 | - return $promise->then(function (ResponseInterface $response) use ($request) { |
|
| 53 | + return $promise->then(function(ResponseInterface $response) use ($request) { |
|
| 54 | 54 | return $this->transformResponseToException($request, $response); |
| 55 | 55 | }); |
| 56 | 56 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | return [ |
| 22 | - ['Content-Type' => ['multipart/form-data; boundary="' . ($bodyBuilder->getBoundary() . '""')]], |
|
| 22 | + ['Content-Type' => ['multipart/form-data; boundary="'.($bodyBuilder->getBoundary().'""')]], |
|
| 23 | 23 | $bodyBuilder->build() |
| 24 | 24 | ]; |
| 25 | 25 | } |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | foreach ($formParameters as $key => $value) { |
| 34 | 34 | $bodyBuilder->addResource($key, $value); |
| 35 | 35 | } |
| 36 | - return array(array('Content-Type' => array('multipart/form-data; boundary="' . ($bodyBuilder->getBoundary() . '""'))), $bodyBuilder->build()); |
|
| 36 | + return array(array('Content-Type' => array('multipart/form-data; boundary="'.($bodyBuilder->getBoundary().'""'))), $bodyBuilder->build()); |
|
| 37 | 37 | } |
| 38 | 38 | return array(array(), null); |
| 39 | 39 | } |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | { |
| 45 | 45 | if (!$requestBody instanceof MediaFileUploadModel) { |
| 46 | 46 | throw new \LogicException( |
| 47 | - 'you need to pass an object of type ' . MediaFileUploadModel::class |
|
| 47 | + 'you need to pass an object of type '.MediaFileUploadModel::class |
|
| 48 | 48 | ); |
| 49 | 49 | } |
| 50 | 50 | } |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | { |
| 33 | 33 | $promise = $next($request); |
| 34 | 34 | |
| 35 | - return $promise->then(function (ResponseInterface $response) use ($request, $first) { |
|
| 35 | + return $promise->then(function(ResponseInterface $response) use ($request, $first) { |
|
| 36 | 36 | $statusCode = $response->getStatusCode(); |
| 37 | 37 | $content = \json_decode($response->getBody()->__toString(), true); |
| 38 | 38 | |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | foreach ($formParameters as $key => $value) { |
| 34 | 34 | $bodyBuilder->addResource($key, $value); |
| 35 | 35 | } |
| 36 | - return array(array('Content-Type' => array('multipart/form-data; boundary="' . ($bodyBuilder->getBoundary() . '""'))), $bodyBuilder->build()); |
|
| 36 | + return array(array('Content-Type' => array('multipart/form-data; boundary="'.($bodyBuilder->getBoundary().'""'))), $bodyBuilder->build()); |
|
| 37 | 37 | } |
| 38 | 38 | return array(array(), null); |
| 39 | 39 | } |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | foreach ($formParameters as $key => $value) { |
| 34 | 34 | $bodyBuilder->addResource($key, $value); |
| 35 | 35 | } |
| 36 | - return array(array('Content-Type' => array('multipart/form-data; boundary="' . ($bodyBuilder->getBoundary() . '""'))), $bodyBuilder->build()); |
|
| 36 | + return array(array('Content-Type' => array('multipart/form-data; boundary="'.($bodyBuilder->getBoundary().'""'))), $bodyBuilder->build()); |
|
| 37 | 37 | } |
| 38 | 38 | return array(array(), null); |
| 39 | 39 | } |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | $prepend = $this->uri->getPath(); |
| 49 | 49 | $path = $request->getUri()->getPath(); |
| 50 | 50 | if (0 !== strpos($path, $prepend)) { |
| 51 | - $request = $request->withUri($request->getUri()->withPath($prepend . $path)); |
|
| 51 | + $request = $request->withUri($request->getUri()->withPath($prepend.$path)); |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | return $next($request); |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | */ |
| 49 | 49 | public function handleRequest(RequestInterface $request, callable $next, callable $first) |
| 50 | 50 | { |
| 51 | - $addHostNext = function (RequestInterface $request) use ($next, $first) { |
|
| 51 | + $addHostNext = function(RequestInterface $request) use ($next, $first) { |
|
| 52 | 52 | return $this->addHostPlugin->handleRequest($request, $next, $first); |
| 53 | 53 | }; |
| 54 | 54 | |