@@ -100,7 +100,7 @@ |
||
100 | 100 | ->thenUnset() |
101 | 101 | ->end() |
102 | 102 | ->validate() |
103 | - ->ifTrue(function ($v) { return !is_dir($v); }) |
|
103 | + ->ifTrue(function($v) { return !is_dir($v); }) |
|
104 | 104 | ->thenInvalid('Directory does not exist') |
105 | 105 | ->end() |
106 | 106 | ->end() |
@@ -118,7 +118,7 @@ |
||
118 | 118 | } |
119 | 119 | } |
120 | 120 | |
121 | - private function debug(?RequestInterface $request, ?ResponseInterface $response): void |
|
121 | + private function debug(?RequestInterface $request, ?ResponseInterface $response) : void |
|
122 | 122 | { |
123 | 123 | if (!$request instanceof RequestInterface) { |
124 | 124 | return; |
@@ -3,28 +3,21 @@ |
||
3 | 3 | |
4 | 4 | use Twig_Environment; |
5 | 5 | use Twig_Loader_Array; |
6 | - |
|
7 | 6 | use Interop\Container\ContainerInterface; |
8 | - |
|
9 | 7 | use Http\Message\StreamFactory; |
10 | 8 | use Http\Message\MessageFactory; |
11 | - |
|
12 | 9 | use Http\Discovery\HttpClientDiscovery; |
13 | 10 | use Http\Discovery\UriFactoryDiscovery; |
14 | 11 | use Http\Discovery\StreamFactoryDiscovery; |
15 | 12 | use Http\Discovery\MessageFactoryDiscovery; |
16 | - |
|
17 | 13 | use Http\Client\HttpClient; |
18 | 14 | use Http\Client\Common\PluginClient; |
19 | 15 | use Http\Client\Common\Plugin\BaseUriPlugin; |
20 | 16 | use Http\Client\Common\Plugin\HistoryPlugin; |
21 | 17 | use Http\Client\Common\Plugin\ContentLengthPlugin; |
22 | - |
|
23 | 18 | use Behapi\Tools\Debug; |
24 | 19 | use Behapi\Tools\HttpHistory; |
25 | - |
|
26 | 20 | use Behapi\ServiceContainer\NotFoundException; |
27 | -use Behapi\ServiceContainer\ServiceNotAvailableException; |
|
28 | 21 | |
29 | 22 | class Container implements ContainerInterface |
30 | 23 | { |
@@ -2,13 +2,10 @@ |
||
2 | 2 | namespace Behapi\Context; |
3 | 3 | |
4 | 4 | use InvalidArgumentException; |
5 | - |
|
6 | 5 | use Behat\Behat\Context\Context; |
7 | 6 | use Behat\Gherkin\Node\PyStringNode; |
8 | - |
|
9 | 7 | use Symfony\Component\PropertyAccess\PropertyAccess; |
10 | 8 | use Symfony\Component\PropertyAccess\PropertyAccessor; |
11 | - |
|
12 | 9 | use Behapi\Tools\HttpHistory; |
13 | 10 | use Behapi\Tools\BehapiFactory; |
14 | 11 |