Passed
Pull Request — master (#142)
by Iman
37:51 queued 27:50
created
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.
src/Plugins/Conditions/Gate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     {
12 12
         $gate = $this->defineNewGate($gate);
13 13
 
14
-        return function (...$payload) use ($gate, $parameters) {
14
+        return function(...$payload) use ($gate, $parameters) {
15 15
             return GateFacade::allows($gate, array_merge($parameters, ...$payload));
16 16
         };
17 17
     }
Please login to merge, or discard this patch.