@@ -78,7 +78,7 @@ discard block  | 
                                                    ||
| 78 | 78 | return $this->services[$id];  | 
                                                        
| 79 | 79 | }  | 
                                                        
| 80 | 80 | |
| 81 | -        switch($id) { | 
                                                        |
| 81 | +        switch ($id) { | 
                                                        |
| 82 | 82 | case 'http.history':  | 
                                                        
| 83 | 83 | return $this->history;  | 
                                                        
| 84 | 84 | |
@@ -124,7 +124,7 @@ discard block  | 
                                                    ||
| 124 | 124 | return $this->services['http.stream_factory'] = StreamFactoryDiscovery::find();  | 
                                                        
| 125 | 125 | }  | 
                                                        
| 126 | 126 | |
| 127 | - private function getTwigService(): ?Twig_Environment  | 
                                                        |
| 127 | + private function getTwigService(): ? Twig_Environment  | 
                                                        |
| 128 | 128 |      { | 
                                                        
| 129 | 129 |          if (!class_exists(Twig_Environment::class)) { | 
                                                        
| 130 | 130 | return $this->services['twig'] = null;  | 
                                                        
@@ -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;  | 
                                                        
@@ -52,7 +52,7 @@  | 
                                                    ||
| 52 | 52 | reset($this->tuples);  | 
                                                        
| 53 | 53 | }  | 
                                                        
| 54 | 54 | |
| 55 | - public function getLastResponse(): ?ResponseInterface  | 
                                                        |
| 55 | + public function getLastResponse(): ? ResponseInterface  | 
                                                        |
| 56 | 56 |      { | 
                                                        
| 57 | 57 |          if (1 > count($this->tuples)) { | 
                                                        
| 58 | 58 | return null;  | 
                                                        
@@ -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\Extension\Tools\Debug;  | 
                                                        
| 16 | 12 | use Behapi\Extension\Tools\HttpHistory as History;  | 
                                                        
| 17 | -  | 
                                                        |
| 18 | 13 | use Behapi\Extension\Cli\DebugController;  | 
                                                        
| 19 | 14 | use Behapi\Extension\EventListener\DebugHttp;  | 
                                                        
| 20 | 15 | use Behapi\Extension\EventListener\HttpHistory;  | 
                                                        
@@ -3,16 +3,12 @@  | 
                                                    ||
| 3 | 3 | |
| 4 | 4 | use stdClass;  | 
                                                        
| 5 | 5 | use Datetime;  | 
                                                        
| 6 | -  | 
                                                        |
| 7 | 6 | use Throwable;  | 
                                                        
| 8 | 7 | use InvalidArgumentException;  | 
                                                        
| 9 | -  | 
                                                        |
| 10 | 8 | use Behat\Behat\Context\Context;  | 
                                                        
| 11 | 9 | use Behat\Gherkin\Node\PyStringNode;  | 
                                                        
| 12 | -  | 
                                                        |
| 13 | 10 | use Symfony\Component\PropertyAccess\PropertyAccess;  | 
                                                        
| 14 | 11 | use Symfony\Component\PropertyAccess\PropertyAccessor;  | 
                                                        
| 15 | -  | 
                                                        |
| 16 | 12 | use Behapi\Extension\Tools\Assert;  | 
                                                        
| 17 | 13 | |
| 18 | 14 | abstract class AbstractJson implements Context  |