Passed
Push — master ( d39c61...1595e0 )
by Iman
02:47
created
src/Reactions/ResponderFactory.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -19,20 +19,20 @@  discard block
 block discarded – undo
19 19
 
20 20
     protected function abort($args)
21 21
     {
22
-        return function () use ($args) {
22
+        return function() use ($args) {
23 23
             abort(...$args);
24 24
         };
25 25
     }
26 26
 
27 27
     protected function nothing()
28 28
     {
29
-        return function () {
29
+        return function() {
30 30
         };
31 31
     }
32 32
 
33 33
     protected function exception(array $e)
34 34
     {
35
-        return function () use ($e) {
35
+        return function() use ($e) {
36 36
             $exClass = $e[0];
37 37
             $message = $e[1];
38 38
 
@@ -42,21 +42,21 @@  discard block
 block discarded – undo
42 42
 
43 43
     protected function response(...$resp)
44 44
     {
45
-        return function () use ($resp) {
45
+        return function() use ($resp) {
46 46
             $this->sendResponse($resp, response());
47 47
         };
48 48
     }
49 49
 
50 50
     protected function redirect(...$resp)
51 51
     {
52
-        return function () use ($resp) {
52
+        return function() use ($resp) {
53 53
             $this->sendResponse($resp, redirect());
54 54
         };
55 55
     }
56 56
 
57 57
     protected function respondFrom($method)
58 58
     {
59
-        return function () use ($method) {
59
+        return function() use ($method) {
60 60
             throw new HttpResponseException(app()->call(...$method));
61 61
         };
62 62
     }
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
     public function validatorCallback($modifier, $rules)
75 75
     {
76
-        $validator = function () use ($modifier, $rules) {
76
+        $validator = function() use ($modifier, $rules) {
77 77
             $this->makeValidator($modifier, $rules)->validate();
78 78
         };
79 79
 
@@ -82,8 +82,8 @@  discard block
 block discarded – undo
82 82
 
83 83
     public function validationPassesCallback($modifier, $rules)
84 84
     {
85
-        $validator = function () use ($modifier, $rules) {
86
-            return ! $this->makeValidator($modifier, $rules)->fails();
85
+        $validator = function() use ($modifier, $rules) {
86
+            return !$this->makeValidator($modifier, $rules)->fails();
87 87
         };
88 88
 
89 89
         return resolve(HeyManSwitcher::class)->wrapForIgnorance($validator, 'validation');
Please login to merge, or discard this patch.
src/Switching/HeyManSwitcher.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,8 @@
 block discarded – undo
6 6
 {
7 7
     public function wrapForIgnorance(callable $callback, $key)
8 8
     {
9
-        return function (...$args) use ($callback, $key) {
10
-            if (! config('heyman_ignore_'.$key, false)) {
9
+        return function(...$args) use ($callback, $key) {
10
+            if (!config('heyman_ignore_' . $key, false)) {
11 11
                 $callback(...$args);
12 12
             }
13 13
         };
Please login to merge, or discard this patch.