Passed
Push — master ( 26927d...02feaa )
by Iman
03:51
created
src/Core/ReactionFactory.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@  discard block
 block discarded – undo
11 11
         $reaction = $this->makeReaction();
12 12
         $condition = resolve('heyman.chain')->get('condition');
13 13
 
14
-        return function (...$f) use ($condition, $reaction) {
15
-            if (! $condition($f)) {
14
+        return function(...$f) use ($condition, $reaction) {
15
+            if (!$condition($f)) {
16 16
                 $conditionMeta = resolve('heyman.chain')->get('condition_meta') ?: null;
17 17
                 $reaction($conditionMeta);
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 ($param = null) use ($beforeReaction, $responder, $debug, $termination) {
33
+        return function($param = null) use ($beforeReaction, $responder, $debug, $termination) {
34 34
             if ($termination) {
35 35
                 app()->terminating($termination);
36 36
             }
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     {
45 45
         $tasks = $chain->get('beforeReaction') ?? [];
46 46
         $tasks = $this->convertToClosures($tasks);
47
-        $beforeReaction = function () use ($tasks) {
47
+        $beforeReaction = function() use ($tasks) {
48 48
             foreach ($tasks as $task) {
49 49
                 $task();
50 50
             }
@@ -55,16 +55,16 @@  discard block
 block discarded – undo
55 55
 
56 56
     private function convertToClosures($tasks)
57 57
     {
58
-        $map = function ($task) {
58
+        $map = function($task) {
59 59
             $params = $task[0];
60 60
 
61 61
             if ($task[1] == 'event') {
62
-                return function () use ($params) {
62
+                return function() use ($params) {
63 63
                     resolve('events')->dispatch(...$params);
64 64
                 };
65 65
             }
66 66
 
67
-            return function () use ($params) {
67
+            return function() use ($params) {
68 68
                 app()->call(...$params);
69 69
             };
70 70
         };
Please login to merge, or discard this patch.
src/Reactions/Validator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
     public function validatorCallback($modifier, $rules)
36 36
     {
37
-        $validator = function () use ($modifier, $rules) {
37
+        $validator = function() use ($modifier, $rules) {
38 38
             $this->makeValidator($modifier, $rules)->validate();
39 39
         };
40 40
 
@@ -43,12 +43,12 @@  discard block
 block discarded – undo
43 43
 
44 44
     public function validationPassesCallback($modifier, $rules)
45 45
     {
46
-        $validator = function () use ($modifier, $rules) {
46
+        $validator = function() use ($modifier, $rules) {
47 47
             $v = $this->makeValidator($modifier, $rules);
48 48
 
49 49
             resolve('heyman.chain')->set('condition_meta', $v);
50 50
 
51
-            return ! $v->fails();
51
+            return !$v->fails();
52 52
         };
53 53
 
54 54
         return $this->wrapForIgnore($validator);
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
     private function getModifier()
94 94
     {
95
-        return $this->modifier ?: function () {
95
+        return $this->modifier ?: function() {
96 96
             return request()->all();
97 97
         };
98 98
     }
Please login to merge, or discard this patch.
src/Plugins/Reactions/WeRespondFrom.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
     public static function respondFrom($method)
19 19
     {
20
-        return function () use ($method) {
20
+        return function() use ($method) {
21 21
             if (is_array($method[0])) {
22 22
                 $response = call_user_func_array($method[0], $method[1] ?? []);
23 23
             } else {
Please login to merge, or discard this patch.