Passed
Pull Request — master (#32)
by Baptiste
02:27
created
src/Container.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
114 114
         return $this->services['http.client'] = new PluginClient($http, $plugins);
115 115
     }
116 116
 
117
-    private function getTwigService(): ?Twig_Environment
117
+    private function getTwigService(): ? Twig_Environment
118 118
     {
119 119
         if (!class_exists(Twig_Environment::class)) {
120 120
             return $this->services['twig'] = null;
Please login to merge, or discard this patch.
src/Behapi.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -4,17 +4,12 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Tools/HttpHistory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/EventListener/DebugHttp.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Context/JsonMatcher.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -2,12 +2,8 @@
 block discarded – undo
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
-use Symfony\Component\PropertyAccessor\PropertyAccess;
10
-
11 7
 use Behapi\Tools\HttpHistory;
12 8
 use Behapi\Tools\BehapiFactory;
13 9
 
Please login to merge, or discard this patch.