Completed
Pull Request — master (#25)
by Iman
13:26 queued 09:29
created
src/ResponderFactory.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -26,14 +26,14 @@  discard block
 block discarded – undo
26 26
 
27 27
     public function abort($abort)
28 28
     {
29
-        return function () use ($abort) {
29
+        return function() use ($abort) {
30 30
             abort(...$abort[0]);
31 31
         };
32 32
     }
33 33
 
34 34
     public function nothing()
35 35
     {
36
-        return function () {
36
+        return function() {
37 37
         };
38 38
     }
39 39
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     public function exception($e): \Closure
46 46
     {
47
-        return function () use ($e) {
47
+        return function() use ($e) {
48 48
             $exClass = $e[0]['class'];
49 49
 
50 50
             throw new $exClass($e[0]['message']);
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      */
59 59
     public function response($resp): \Closure
60 60
     {
61
-        return function () use ($resp) {
61
+        return function() use ($resp) {
62 62
             $respObj = response();
63 63
             foreach ($resp as $call) {
64 64
                 list($method, $args) = $call;
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
     public function redirect($resp): \Closure
72 72
     {
73
-        return function () use ($resp) {
73
+        return function() use ($resp) {
74 74
             $respObj = redirect();
75 75
             foreach ($resp as $call) {
76 76
                 list($method, $args) = $call;
@@ -82,14 +82,14 @@  discard block
 block discarded – undo
82 82
 
83 83
     public function respondFrom($method)
84 84
     {
85
-        return function () use ($method) {
85
+        return function() use ($method) {
86 86
             respondWith(app()->call(...$method[0]));
87 87
         };
88 88
     }
89 89
 
90 90
     public function validatorCallback($rules): \Closure
91 91
     {
92
-        $validator = function () use ($rules) {
92
+        $validator = function() use ($rules) {
93 93
             if (is_callable($rules)) {
94 94
                 $rules = $rules();
95 95
             }
Please login to merge, or discard this patch.