Completed
Push — master ( 0edf62...6ee369 )
by Iman
09:40 queued 01:18
created
src/Reactions/ResponderFactory.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -30,14 +30,14 @@  discard block
 block discarded – undo
30 30
 
31 31
     public function abort($abort)
32 32
     {
33
-        return function () use ($abort) {
33
+        return function() use ($abort) {
34 34
             abort(...$abort[0]);
35 35
         };
36 36
     }
37 37
 
38 38
     public function nothing()
39 39
     {
40
-        return function () {
40
+        return function() {
41 41
         };
42 42
     }
43 43
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function exception($e): \Closure
50 50
     {
51
-        return function () use ($e) {
51
+        return function() use ($e) {
52 52
             $exClass = $e[0]['class'];
53 53
 
54 54
             throw new $exClass($e[0]['message']);
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public function response($resp): \Closure
64 64
     {
65
-        return function () use ($resp) {
65
+        return function() use ($resp) {
66 66
             $respObj = response();
67 67
             foreach ($resp as $call) {
68 68
                 list($method, $args) = $call;
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
     public function redirect($resp): \Closure
76 76
     {
77
-        return function () use ($resp) {
77
+        return function() use ($resp) {
78 78
             $respObj = redirect();
79 79
             foreach ($resp as $call) {
80 80
                 list($method, $args) = $call;
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
     public function respondFrom($method)
88 88
     {
89
-        return function () use ($method) {
89
+        return function() use ($method) {
90 90
             respondWith(app()->call(...$method[0]));
91 91
         };
92 92
     }
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      */
103 103
     public function validatorCallback($data, $rules, array $messages = [], array $customAttributes = []): \Closure
104 104
     {
105
-        $validator = function () use ($data, $rules, $messages, $customAttributes) {
105
+        $validator = function() use ($data, $rules, $messages, $customAttributes) {
106 106
             if (is_callable($rules)) {
107 107
                 $rules = $rules();
108 108
             }
Please login to merge, or discard this patch.