Completed
Push — master ( 1aea55...3a5ed6 )
by Ivannis Suárez
11:15
created
Tests/Units/Middlewares/Validator/ValidatorMiddlewareTests.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         $this
32 32
             ->given($middleware = new ValidatorMiddleware())
33 33
             ->and($command = new LoginUserCommand('[email protected]', 'plainpassword'))
34
-            ->and($callable = function (LoginUserCommand $command) {
34
+            ->and($callable = function(LoginUserCommand $command) {
35 35
                 $command->setEmail('[email protected]');
36 36
             })
37 37
             ->when($middleware->handle($command, $callable))
@@ -43,10 +43,10 @@  discard block
 block discarded – undo
43 43
         $this
44 44
             ->given($middleware = new ValidatorMiddleware())
45 45
             ->and($command = new LoginUserCommand('invalid.email.com', 'plainpassword'))
46
-            ->and($callable = function () {
46
+            ->and($callable = function() {
47 47
             })
48 48
             ->then()
49
-                ->exception(function () use ($middleware, $command, $callable) {
49
+                ->exception(function() use ($middleware, $command, $callable) {
50 50
                     $middleware->handle($command, $callable);
51 51
                 })->isInstanceOf(ValidationException::class)
52 52
         ;
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         $this
55 55
             ->given($middleware = new ValidatorMiddleware())
56 56
             ->and($command = new LogoutUserCommand('invalid.email.com'))
57
-            ->and($callable = function (LogoutUserCommand $command) {
57
+            ->and($callable = function(LogoutUserCommand $command) {
58 58
                 $command->setEmail('[email protected]');
59 59
             })
60 60
             ->when($middleware->handle($command, $callable))
Please login to merge, or discard this patch.