Completed
Push — master ( 9466a4...206d9f )
by Pablo
04:08
created
tests/Behaviour/CommandBusTest.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use Bruli\EventBusBundleTests\Infrastructure\Application;
6 6
 use Bruli\EventBusBundleTests\Behaviour\SingleCommand;
7 7
 use Bruli\EventBusBundleTests\Behaviour\SingleCommandHandler;
8
-use Mockery\Mock;
9 8
 use PHPUnit\Framework\TestCase;
10 9
 use Symfony\Component\Console\Input\InputInterface;
11 10
 use Symfony\Component\Console\Output\OutputInterface;
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
     protected function setUp()
29 29
     {
30
-        $this->app =  new Application();
30
+        $this->app = new Application();
31 31
         $this->input = \Mockery::mock(InputInterface::class);
32 32
         $this->outputInterface = \Mockery::mock(OutputInterface::class);
33 33
     }
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
         $this->app->doRun($this->input, $this->outputInterface);
43 43
 
44
-        $filename = __DIR__ . '/' . SingleCommandHandler::FILE_TEST;
44
+        $filename = __DIR__.'/'.SingleCommandHandler::FILE_TEST;
45 45
         $this->assertTrue(file_exists($filename));
46 46
 
47 47
         unlink($filename);
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
 
57 57
         $this->app->doRun($this->input, $this->outputInterface);
58 58
 
59
-        $handlerFilename = __DIR__ . '/' . WithPreMiddleWareHandler::FILE_TEST;
60
-        $preHandlerFilename = __DIR__.'/'. PreMiddleWareHandler::FILE_TEST;
59
+        $handlerFilename = __DIR__.'/'.WithPreMiddleWareHandler::FILE_TEST;
60
+        $preHandlerFilename = __DIR__.'/'.PreMiddleWareHandler::FILE_TEST;
61 61
         $this->assertTrue(file_exists($handlerFilename));
62 62
         $this->assertTrue(file_exists($preHandlerFilename));
63 63
 
Please login to merge, or discard this patch.
tests/Infrastructure/Application.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 namespace Bruli\EventBusBundleTests\Infrastructure;
5 5
 
6 6
 use Bruli\EventBusBundle\CommandBus\CommandInterface;
7
-use Bruli\EventBusBundleTests\Behaviour\SingleCommand;
8 7
 use Symfony\Component\Console\Input\InputInterface;
9 8
 use Symfony\Component\Console\Output\OutputInterface;
10 9
 
Please login to merge, or discard this patch.
src/CommandBus/CommandBus.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      */
44 44
     private function handlePreMiddleWares(CommandInterface $command)
45 45
     {
46
-        $commandName = '\\' . get_class($command);
46
+        $commandName = '\\'.get_class($command);
47 47
         if (true === $this->optionsResolver->preMiddleWareHasCommand($commandName)) {
48 48
             $this->container->get($this->optionsResolver->getPreMiddleWareOption($commandName))->handle(
49 49
                 $command
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     private function handleCommand(CommandInterface $command)
58 58
     {
59
-        $this->container->get($this->optionsResolver->getOption('\\' . get_class($command)))->handle($command);
59
+        $this->container->get($this->optionsResolver->getOption('\\'.get_class($command)))->handle($command);
60 60
     }
61 61
 
62 62
     /**
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     private function handlePostMiddleWares(CommandInterface $command)
66 66
     {
67 67
         if (true === $this->optionsResolver->postMiddleWareHasCommand(get_class($command))) {
68
-            $this->container->get($this->optionsResolver->getPostMiddleWareOption('\\' . get_class($command)))->handle(
68
+            $this->container->get($this->optionsResolver->getPostMiddleWareOption('\\'.get_class($command)))->handle(
69 69
                 $command
70 70
             );
71 71
         }
Please login to merge, or discard this patch.
tests/Infrastructure/AppKernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      */
31 31
     public function registerContainerConfiguration(LoaderInterface $loader)
32 32
     {
33
-        $dir = __DIR__ . '/services.yml';
33
+        $dir = __DIR__.'/services.yml';
34 34
         $loader->load($dir);
35 35
     }
36 36
 }
Please login to merge, or discard this patch.
tests/Behaviour/SingleCommandHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 
6 6
 namespace Bruli\EventBusBundleTests\Behaviour;
@@ -18,6 +18,6 @@  discard block
 block discarded – undo
18 18
      */
19 19
     public function handle(CommandInterface $command)
20 20
     {
21
-        file_put_contents(__DIR__. '/../Behaviour/' . self::FILE_TEST , 'testing');
21
+        file_put_contents(__DIR__.'/../Behaviour/'.self::FILE_TEST, 'testing');
22 22
     }
23 23
 }
24 24
\ No newline at end of file
Please login to merge, or discard this patch.
tests/Behaviour/WithPreMiddleWareCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 
6 6
 namespace Bruli\EventBusBundleTests\Behaviour;
Please login to merge, or discard this patch.
tests/Behaviour/PreMiddleWareHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 
6 6
 namespace Bruli\EventBusBundleTests\Behaviour;
@@ -18,6 +18,6 @@  discard block
 block discarded – undo
18 18
      */
19 19
     public function handle(CommandInterface $command)
20 20
     {
21
-        file_put_contents(__DIR__. '/../Behaviour/' . self::FILE_TEST , 'testing');
21
+        file_put_contents(__DIR__.'/../Behaviour/'.self::FILE_TEST, 'testing');
22 22
     }
23 23
 }
24 24
\ No newline at end of file
Please login to merge, or discard this patch.
tests/Behaviour/WithPreMiddleWareHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 
6 6
 namespace Bruli\EventBusBundleTests\Behaviour;
@@ -18,6 +18,6 @@  discard block
 block discarded – undo
18 18
      */
19 19
     public function handle(CommandInterface $command)
20 20
     {
21
-        file_put_contents(__DIR__. '/../Behaviour/' . self::FILE_TEST , 'testing');
21
+        file_put_contents(__DIR__.'/../Behaviour/'.self::FILE_TEST, 'testing');
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
tests/Behaviour/SingleCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Bruli\EventBusBundleTests\Behaviour;
6 6
 
Please login to merge, or discard this patch.