@@ -58,7 +58,7 @@ |
||
| 58 | 58 | } |
| 59 | 59 | $responseCode = $client->getResponse()->getStatus(); |
| 60 | 60 | |
| 61 | - if ((string) $expectedResponseCode !== (string) $responseCode) { |
|
| 61 | + if ((string)$expectedResponseCode !== (string)$responseCode) { |
|
| 62 | 62 | throw new Exception('Excepted code '.$expectedResponseCode.', got '.$responseCode.' for route '.$routeName); |
| 63 | 63 | } |
| 64 | 64 | } |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | ->setAllowedTypes('entity', 'string') |
| 87 | 87 | ->setAllowedTypes('requirements', 'array') |
| 88 | 88 | ->setAllowedTypes('options', 'array') |
| 89 | - ->setNormalizer('route', function (Options $options, $value) { |
|
| 89 | + ->setNormalizer('route', function(Options $options, $value) { |
|
| 90 | 90 | if (null === $value && null === $options->offsetGet('pattern')) { |
| 91 | 91 | throw new InvalidOptionsException('A pattern or a route should be provided'); |
| 92 | 92 | } |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | 'array', |
| 53 | 53 | 'string', |
| 54 | 54 | ]) |
| 55 | - ->setNormalizer('where', function (Options $options, $value) { |
|
| 55 | + ->setNormalizer('where', function(Options $options, $value) { |
|
| 56 | 56 | // Allow the configuration "where: article.enabled" instead of |
| 57 | 57 | // where: |
| 58 | 58 | // - article.enabled |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | $valueToFind = $accessor->getValue($entity, $property); |
| 78 | 78 | $found = false; |
| 79 | 79 | |
| 80 | - $crawler->filter($selector)->each(function (Crawler $node) use ($valueToFind, &$found) { |
|
| 80 | + $crawler->filter($selector)->each(function(Crawler $node) use ($valueToFind, &$found) { |
|
| 81 | 81 | if (false !== strpos($node->text(), $valueToFind)) { |
| 82 | 82 | $found = true; |
| 83 | 83 | } |
@@ -129,7 +129,7 @@ |
||
| 129 | 129 | $urlInfo = new UrlInfo( |
| 130 | 130 | $urlParts['scheme'], |
| 131 | 131 | $urlParts['host'], |
| 132 | - (int) $urlParts['port'], |
|
| 132 | + (int)$urlParts['port'], |
|
| 133 | 133 | $urlParts['path'], |
| 134 | 134 | $urlParts['query'], |
| 135 | 135 | $urlParts['fragment'], |