@@ -75,8 +75,8 @@ |
||
75 | 75 | private function loadContextInitializer(ContainerBuilder $container, $config) |
76 | 76 | { |
77 | 77 | $definition = new Definition('Behat\WebApiExtension\Context\Initializer\ApiClientAwareInitializer', array( |
78 | - new Reference(self::CLIENT_ID), |
|
79 | - $config |
|
78 | + new Reference(self::CLIENT_ID), |
|
79 | + $config |
|
80 | 80 | )); |
81 | 81 | $definition->addTag(ContextExtension::INITIALIZER_TAG); |
82 | 82 | $container->setDefinition('web_api.context_initializer', $definition); |
@@ -241,7 +241,7 @@ |
||
241 | 241 | |
242 | 242 | if (null === $expected) { |
243 | 243 | throw new \RuntimeException( |
244 | - "Can not convert expected to json:\n".$this->replacePlaceHolder($jsonString->getRaw()) |
|
244 | + "Can not convert expected to json:\n".$this->replacePlaceHolder($jsonString->getRaw()) |
|
245 | 245 | ); |
246 | 246 | } |
247 | 247 |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | parse_str(implode('&', explode("\n", $body)), $fields); |
165 | 165 | |
166 | 166 | foreach ($fields as $key => $value) { |
167 | - if(is_array($value)) { |
|
167 | + if (is_array($value)) { |
|
168 | 168 | foreach ($value as $formKey => $formValue) { |
169 | 169 | $requestFields[] = sprintf('%s%s=%s', urlencode($key), urlencode('[' . $formKey . ']'), urlencode($formValue)); |
170 | 170 | } |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | |
242 | 242 | if (null === $expected) { |
243 | 243 | throw new \RuntimeException( |
244 | - "Can not convert expected to json:\n".$this->replacePlaceHolder($jsonString->getRaw()) |
|
244 | + "Can not convert expected to json:\n" . $this->replacePlaceHolder($jsonString->getRaw()) |
|
245 | 245 | ); |
246 | 246 | } |
247 | 247 |
@@ -14,8 +14,8 @@ |
||
14 | 14 | use Behat\Gherkin\Node\TableNode; |
15 | 15 | use GuzzleHttp\ClientInterface; |
16 | 16 | use GuzzleHttp\Exception\RequestException; |
17 | -use PHPUnit\Framework\Assert as Assertions; |
|
18 | 17 | use GuzzleHttp\Psr7\Request; |
18 | +use PHPUnit\Framework\Assert as Assertions; |
|
19 | 19 | use Psr\Http\Message\ResponseInterface; |
20 | 20 | |
21 | 21 | /** |