Completed
Branch master (1dc414)
by Ivannis Suárez
04:23
created
Tests/Fixtures/Command/LoginUserCommand.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,8 @@
 block discarded – undo
39 39
     /**
40 40
      * LoginUserCommand constructor.
41 41
      *
42
-     * @param $email
43
-     * @param $password
42
+     * @param string $email
43
+     * @param string $password
44 44
      */
45 45
     public function __construct($email, $password)
46 46
     {
Please login to merge, or discard this patch.
Tests/Fixtures/Command/LogoutUserCommand.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     /**
29 29
      * LogoutUserCommand constructor.
30 30
      *
31
-     * @param $email
31
+     * @param string $email
32 32
      */
33 33
     public function __construct($email)
34 34
     {
Please login to merge, or discard this patch.
Tests/Units/Query/QueryBusTests.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
             ->given($middleware = new LockingMiddleware())
37 37
             ->and($queryBus = new QueryBus([$middleware]))
38 38
             ->then()
39
-                ->exception(function () use ($queryBus) {
39
+                ->exception(function() use ($queryBus) {
40 40
                     $queryBus->dispatch(new PublishedPostsQuery(new \DateTime()));
41 41
                 })
42 42
                 ->isInstanceOf(NotFoundException::class)
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         $this
82 82
             ->given($queryBus = QueryBus::create())
83 83
             ->then()
84
-                ->exception(function () use ($queryBus) {
84
+                ->exception(function() use ($queryBus) {
85 85
                     $queryBus->dispatch(new FooMessage());
86 86
                 })
87 87
                 ->isInstanceOf(\InvalidArgumentException::class)
Please login to merge, or discard this patch.
Tests/Units/Middlewares/Handler/CommandHandlerMiddlewareTests.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,14 +40,14 @@
 block discarded – undo
40 40
             )
41 41
             ->and($middleware = new CommandHandlerMiddleware($resolver))
42 42
             ->and($command = new LoginUserCommand('[email protected]', 'plainpassword'))
43
-            ->and($callable = function (LoginUserCommand $command) {
43
+            ->and($callable = function(LoginUserCommand $command) {
44 44
                 $command->setEmail('[email protected]');
45 45
             })
46 46
             ->when($middleware->handle($command, $callable))
47 47
             ->then()
48 48
                 ->string($command->email())
49 49
                     ->isEqualTo('[email protected]')
50
-                ->exception(function () use ($middleware, $callable) {
50
+                ->exception(function() use ($middleware, $callable) {
51 51
                     $middleware->handle(new \StdClass(), $callable);
52 52
                 })->isInstanceOf(\InvalidArgumentException::class)
53 53
         ;
Please login to merge, or discard this patch.
Middlewares/Handler/Resolver/NameOfQuery/FromQueryNamedResolverTests.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         $this
43 43
             ->given($resolver = new FromQueryNamedResolver())
44 44
             ->then()
45
-                ->exception(function () use ($resolver) {
45
+                ->exception(function() use ($resolver) {
46 46
                     $resolver->resolve(new PublishedPostsQuery(new \DateTime()));
47 47
                 })
48 48
                 ->isInstanceOf(\InvalidArgumentException::class)
Please login to merge, or discard this patch.
Tests/Units/Middlewares/Handler/Resolver/NameOfQuery/ChainResolverTests.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         $this
35 35
             ->given($resolver1 = new \StdClass())
36 36
             ->then()
37
-                ->exception(function () use ($resolver1) {
37
+                ->exception(function() use ($resolver1) {
38 38
                     new ChainResolver([$resolver1]);
39 39
                 })
40 40
                 ->isInstanceOf(InvalidResolverException::class)
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         $this
69 69
             ->given($resolver = new ChainResolver([]))
70 70
             ->then()
71
-                ->exception(function () use ($resolver) {
71
+                ->exception(function() use ($resolver) {
72 72
                     $resolver->resolve(new NearbyVenuesQuery($this->faker->latitude(), $this->faker->longitude()));
73 73
                 })
74 74
                 ->isInstanceOf(NotFoundException::class)
Please login to merge, or discard this patch.
Handler/Resolver/NameOfCommand/FromCommandNamedResolverTests.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         $this
38 38
             ->given($resolver = new FromCommandNamedResolver())
39 39
             ->then()
40
-                ->exception(function () use ($resolver) {
40
+                ->exception(function() use ($resolver) {
41 41
                     $resolver->resolve(new LoginUserCommand('[email protected]', 'plainpassword'));
42 42
                 })
43 43
                 ->isInstanceOf(\InvalidArgumentException::class)
Please login to merge, or discard this patch.
Units/Middlewares/Handler/Resolver/NameOfCommand/ChainResolverTests.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         $this
34 34
             ->given($resolver1 = new \StdClass())
35 35
             ->then()
36
-                ->exception(function () use ($resolver1) {
36
+                ->exception(function() use ($resolver1) {
37 37
                     new ChainResolver([$resolver1]);
38 38
                 })
39 39
                 ->isInstanceOf(InvalidResolverException::class)
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         $this
64 64
             ->given($resolver = new ChainResolver([]))
65 65
             ->then()
66
-                ->exception(function () use ($resolver) {
66
+                ->exception(function() use ($resolver) {
67 67
                     $resolver->resolve(new LogoutUserCommand('[email protected]'));
68 68
                 })
69 69
                 ->isInstanceOf(NotFoundException::class)
Please login to merge, or discard this patch.
Tests/Units/Middlewares/Handler/QueryHandlerMiddlewareTests.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
             ->and($query = new NearByVenuesQuery($this->faker->latitude(), $this->faker->longitude()))
43 43
             ->and($queryHandler = new VenuesQueryHandler())
44 44
             ->and($resolver->addHandler($query->queryName(), $queryHandler))
45
-            ->and($callable = function (array $result) {
45
+            ->and($callable = function(array $result) {
46 46
                 return json_encode($result);
47 47
             })
48 48
             ->when($result = $middleware->handle($query, $callable))
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
                 ->string($result)
51 51
                     ->isNotEmpty()
52 52
                     ->isEqualTo(json_encode($queryHandler->aroundVenues($query)))
53
-                ->exception(function () use ($middleware, $callable) {
53
+                ->exception(function() use ($middleware, $callable) {
54 54
                     $middleware->handle(new \StdClass(), $callable);
55 55
                 })->isInstanceOf(\InvalidArgumentException::class)
56 56
         ;
Please login to merge, or discard this patch.