Passed
Push — master ( f53786...68dd01 )
by Iman
10:13
created
src/Reactions/ReactionFactory.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
         $reaction = $this->makeReaction();
15 15
         $condition = resolve(ChainManager::class)->get('condition');
16 16
 
17
-        return function (...$f) use ($condition, $reaction) {
17
+        return function(...$f) use ($condition, $reaction) {
18 18
             if (!$condition($f)) {
19 19
                 $reaction();
20 20
             }
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
         $responder = resolve(ResponderFactory::class)->make();
34 34
 
35
-        return function () use ($beforeReaction, $responder, $debug, $termination) {
35
+        return function() use ($beforeReaction, $responder, $debug, $termination) {
36 36
             if ($termination) {
37 37
                 app()->terminating($termination);
38 38
             }
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     private function makePreResponseActions($chain): \Closure
51 51
     {
52 52
         $tasks = $this->convertToClosures($chain);
53
-        $beforeReaction = function () use ($tasks) {
53
+        $beforeReaction = function() use ($tasks) {
54 54
             foreach ($tasks as $task) {
55 55
                 $task();
56 56
             }
@@ -68,16 +68,16 @@  discard block
 block discarded – undo
68 68
     {
69 69
         $tasks = $chain->get('beforeReaction') ?? [];
70 70
 
71
-        $map = function ($task) {
71
+        $map = function($task) {
72 72
             $params = $task[0];
73 73
 
74 74
             if ($task[1] == 'event') {
75
-                return function () use ($params) {
75
+                return function() use ($params) {
76 76
                     resolve('events')->dispatch(...$params);
77 77
                 };
78 78
             }
79 79
 
80
-            return function () use ($params) {
80
+            return function() use ($params) {
81 81
                 app()->call(...$params);
82 82
             };
83 83
         };
Please login to merge, or discard this patch.