Passed
Push — master ( f1d925...405c7b )
by Iman
06:01
created
src/Reactions/Validator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     public function __destruct()
30 30
     {
31 31
         $data = $this->validationData;
32
-        $modifier = $this->modifier ?: function ($d) {
32
+        $modifier = $this->modifier ?: function($d) {
33 33
             return $d;
34 34
         };
35 35
         $chain = resolve('heyman.chain');
Please login to merge, or discard this patch.
src/Reactions/ReactionFactory.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
         $reaction = $this->makeReaction();
13 13
         $condition = resolve('heyman.chain')->get('condition');
14 14
 
15
-        return function (...$f) use ($condition, $reaction) {
15
+        return function(...$f) use ($condition, $reaction) {
16 16
             if (!$condition($f)) {
17 17
                 $reaction();
18 18
             }
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
         $responder = resolve(ResponderFactory::class)->make();
32 32
 
33
-        return function () use ($beforeReaction, $responder, $debug, $termination) {
33
+        return function() use ($beforeReaction, $responder, $debug, $termination) {
34 34
             if ($termination) {
35 35
                 app()->terminating($termination);
36 36
             }
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     {
50 50
         $tasks = $chain->get('beforeReaction') ?? [];
51 51
         $tasks = $this->convertToClosures($tasks);
52
-        $beforeReaction = function () use ($tasks) {
52
+        $beforeReaction = function() use ($tasks) {
53 53
             foreach ($tasks as $task) {
54 54
                 $task();
55 55
             }
@@ -64,16 +64,16 @@  discard block
 block discarded – undo
64 64
      */
65 65
     private function convertToClosures($tasks): array
66 66
     {
67
-        $map = function ($task) {
67
+        $map = function($task) {
68 68
             $params = $task[0];
69 69
 
70 70
             if ($task[1] == 'event') {
71
-                return function () use ($params) {
71
+                return function() use ($params) {
72 72
                     resolve('events')->dispatch(...$params);
73 73
                 };
74 74
             }
75 75
 
76
-            return function () use ($params) {
76
+            return function() use ($params) {
77 77
                 app()->call(...$params);
78 78
             };
79 79
         };
Please login to merge, or discard this patch.