@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Yproximite\Api\Message; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Yproximite\Api\Message\CallTracking; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Yproximite\Api\Message\Location; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Yproximite\Api\Message\Article; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Yproximite\Api\Message\Article; |
| 5 | 5 | |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | $message->setMediaLimit($article->getMediaLimit()); |
| 28 | 28 | $message->setShareOnFacebook($article->isShareOnFacebook()); |
| 29 | 29 | |
| 30 | - $categoryIds = array_map(function (Category $category) { |
|
| 30 | + $categoryIds = array_map(function(Category $category) { |
|
| 31 | 31 | return $category->getId(); |
| 32 | 32 | }, $article->getCategories()); |
| 33 | 33 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Yproximite\Api\Message\Field; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Yproximite\Api\Message\Site; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Yproximite\Api\Factory; |
| 5 | 5 | |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | */ |
| 30 | 30 | public function createMany(string $class, array $list): array |
| 31 | 31 | { |
| 32 | - return array_map(function (array $data) use ($class) { |
|
| 32 | + return array_map(function(array $data) use ($class) { |
|
| 33 | 33 | return self::create($class, $data); |
| 34 | 34 | }, $list); |
| 35 | 35 | } |
@@ -167,8 +167,8 @@ discard block |
||
| 167 | 167 | |
| 168 | 168 | $secondRequestCounter = 0; |
| 169 | 169 | |
| 170 | - $httpClient->sendRequest($secondRequest)->will(function ($args) use ($secondRequestCounter, $secondResponse) { |
|
| 171 | - $secondRequestCounter ++; |
|
| 170 | + $httpClient->sendRequest($secondRequest)->will(function($args) use ($secondRequestCounter, $secondResponse) { |
|
| 171 | + $secondRequestCounter++; |
|
| 172 | 172 | |
| 173 | 173 | if ($secondRequestCounter === 1) { |
| 174 | 174 | $errorResponse = MessageFactoryDiscovery::find()->createResponse(401); |
@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | $response->getBody()->willReturn($stream); |
| 203 | 203 | $stream->__toString()->willReturn($rawResponse); |
| 204 | 204 | |
| 205 | - $httpClient->sendRequest($request)->will(function ($args) { |
|
| 205 | + $httpClient->sendRequest($request)->will(function($args) { |
|
| 206 | 206 | $errorResponse = MessageFactoryDiscovery::find()->createResponse(401); |
| 207 | 207 | |
| 208 | 208 | throw HttpException::create($args[0], $errorResponse); |