@@ -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() |
@@ -4,17 +4,12 @@ |
||
| 4 | 4 | use Behat\Testwork\ServiceContainer\Extension; |
| 5 | 5 | use Behat\Testwork\ServiceContainer\ExtensionManager; |
| 6 | 6 | use Behat\Testwork\Cli\ServiceContainer\CliExtension; |
| 7 | - |
|
| 8 | 7 | use Behat\Behat\HelperContainer\ServiceContainer\HelperContainerExtension; |
| 9 | - |
|
| 10 | 8 | use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; |
| 11 | - |
|
| 12 | 9 | use Symfony\Component\DependencyInjection\Reference; |
| 13 | 10 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
| 14 | - |
|
| 15 | 11 | use Behapi\Tools\Debug; |
| 16 | 12 | use Behapi\Tools\HttpHistory as History; |
| 17 | - |
|
| 18 | 13 | use Behapi\Cli\DebugController; |
| 19 | 14 | use Behapi\EventListener\DebugHttp; |
| 20 | 15 | use Behapi\EventListener\HttpHistory; |
@@ -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 | { |