Completed
Push — master ( 261a93...c16913 )
by Pablo
02:20
created
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->preMiddleWareHasCommands($commandName)) {
48 48
             foreach ($this->optionsResolver->getPreMiddleWareOptions($commandName) as $preMiddleWareOption) {
49 49
                 $this->container->get($preMiddleWareOption)->handle($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
     /**
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      */
65 65
     private function handlePostMiddleWares(CommandInterface $command)
66 66
     {
67
-        $commandName = '\\' . get_class($command);
67
+        $commandName = '\\'.get_class($command);
68 68
         if (true === $this->optionsResolver->postMiddleWareHasCommands($commandName)) {
69 69
             foreach ($this->optionsResolver->getPostMiddleWareOptions($commandName) as $postMiddleWareOption) {
70 70
                 $this->container->get($postMiddleWareOption)->handle($command);
Please login to merge, or discard this patch.
tests/Behaviour/WithPostMiddleWareHandler.php 1 patch
Spacing   +3 added lines, -3 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;
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      */
20 20
     public function handle(CommandInterface $command)
21 21
     {
22
-        file_put_contents(__DIR__. '/' . self::FILE_TEST , 'testing');
23
-        file_put_contents(__DIR__. '/' . self::FILE_SECOND_TEST , 'testing');
22
+        file_put_contents(__DIR__.'/'.self::FILE_TEST, 'testing');
23
+        file_put_contents(__DIR__.'/'.self::FILE_SECOND_TEST, 'testing');
24 24
     }
25 25
 }
26 26
\ No newline at end of file
Please login to merge, or discard this patch.
tests/Behaviour/CommandBusTest.php 1 patch
Spacing   +8 added lines, -8 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 CommandApplication();
30
+        $this->app = new CommandApplication();
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,9 +56,9 @@  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;
61
-        $preSecondHandlerFileName = __DIR__. '/' . PreSecondMiddleWareHandler::FILE_TEST;
59
+        $handlerFilename = __DIR__.'/'.WithPreMiddleWareHandler::FILE_TEST;
60
+        $preHandlerFilename = __DIR__.'/'.PreMiddleWareHandler::FILE_TEST;
61
+        $preSecondHandlerFileName = __DIR__.'/'.PreSecondMiddleWareHandler::FILE_TEST;
62 62
         $this->assertFalse(file_exists($preHandlerFilename));
63 63
         $this->assertFalse(file_exists($preSecondHandlerFileName));
64 64
         $this->assertTrue(file_exists($handlerFilename));
@@ -76,10 +76,10 @@  discard block
 block discarded – undo
76 76
 
77 77
         $this->app->doRun($this->input, $this->outputInterface);
78 78
 
79
-        $handlerFilename = __DIR__ . '/' . WithPostMiddleWareHandler::FILE_TEST;
79
+        $handlerFilename = __DIR__.'/'.WithPostMiddleWareHandler::FILE_TEST;
80 80
         $handlerSecondFilename = __DIR__.'/'.WithPostMiddleWareHandler::FILE_SECOND_TEST;
81
-        $postHandlerFilename = __DIR__.'/'. PostMiddleWareHandler::FILE_TEST;
82
-        $postSecondHandlerFilename = __DIR__.'/'. PostSecondMiddleWareHandler::FILE_TEST;
81
+        $postHandlerFilename = __DIR__.'/'.PostMiddleWareHandler::FILE_TEST;
82
+        $postSecondHandlerFilename = __DIR__.'/'.PostSecondMiddleWareHandler::FILE_TEST;
83 83
         $this->assertFalse(file_exists($handlerFilename));
84 84
         $this->assertFalse(file_exists($handlerSecondFilename));
85 85
         $this->assertTrue(file_exists($postHandlerFilename));
Please login to merge, or discard this patch.
tests/Behaviour/PostSecondMiddleWareHandler.php 1 patch
Spacing   +3 added lines, -3 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,7 +18,7 @@  discard block
 block discarded – undo
18 18
      */
19 19
     public function handle(CommandInterface $command)
20 20
     {
21
-        file_put_contents(__DIR__. '/' . self::FILE_TEST , 'testing');
22
-        unlink(__DIR__. '/' . WithPostMiddleWareHandler::FILE_SECOND_TEST);
21
+        file_put_contents(__DIR__.'/'.self::FILE_TEST, 'testing');
22
+        unlink(__DIR__.'/'.WithPostMiddleWareHandler::FILE_SECOND_TEST);
23 23
     }
24 24
 }
Please login to merge, or discard this patch.
tests/Behaviour/WithPreMiddleWareHandler.php 1 patch
Spacing   +4 added lines, -4 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,8 +18,8 @@  discard block
 block discarded – undo
18 18
      */
19 19
     public function handle(CommandInterface $command)
20 20
     {
21
-        file_put_contents(__DIR__. '/' . self::FILE_TEST , 'testing');
22
-        unlink(__DIR__. '/'. PreMiddleWareHandler::FILE_TEST);
23
-        unlink(__DIR__. '/'. PreSecondMiddleWareHandler::FILE_TEST);
21
+        file_put_contents(__DIR__.'/'.self::FILE_TEST, 'testing');
22
+        unlink(__DIR__.'/'.PreMiddleWareHandler::FILE_TEST);
23
+        unlink(__DIR__.'/'.PreSecondMiddleWareHandler::FILE_TEST);
24 24
     }
25 25
 }
Please login to merge, or discard this patch.
tests/Behaviour/PreSecondMiddleWareHandler.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.