Completed
Pull Request — master (#7)
by Iman
03:25
created
src/ListenerFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         $cb = $this->chain->predicate;
43 43
         $this->chain->reset();
44 44
 
45
-        return function (...$f) use ($responder, $cb, $dispatcher, $calls) {
45
+        return function(...$f) use ($responder, $cb, $dispatcher, $calls) {
46 46
             if ($cb($f)) {
47 47
                 return true;
48 48
             }
@@ -58,11 +58,11 @@  discard block
 block discarded – undo
58 58
         $events = $this->chain->events;
59 59
 
60 60
         if (!$events) {
61
-            return function () {
61
+            return function() {
62 62
             };
63 63
         }
64 64
 
65
-        return function () use ($events) {
65
+        return function() use ($events) {
66 66
             foreach ($events as $event) {
67 67
                 app('events')->dispatch(...$event);
68 68
             }
@@ -74,11 +74,11 @@  discard block
 block discarded – undo
74 74
         $calls = $this->chain->calls;
75 75
 
76 76
         if (!$calls) {
77
-            return function () {
77
+            return function() {
78 78
             };
79 79
         }
80 80
 
81
-        return function () use ($calls) {
81
+        return function() use ($calls) {
82 82
             foreach ($calls as $call) {
83 83
                 app()->call(...$call);
84 84
             }
Please login to merge, or discard this patch.
src/ResponderFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
     public function abortCallback($abort)
33 33
     {
34
-        $responder = function () use ($abort) {
34
+        $responder = function() use ($abort) {
35 35
             abort(...$abort);
36 36
         };
37 37
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function exceptionCallback($e): \Closure
48 48
     {
49
-        $responder = function () use ($e) {
49
+        $responder = function() use ($e) {
50 50
             $exClass = $e['class'];
51 51
 
52 52
             throw new $exClass($e['message']);
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function responseCallback($resp): \Closure
65 65
     {
66
-        $responder = function () use ($resp) {
66
+        $responder = function() use ($resp) {
67 67
             $respObj = response();
68 68
             foreach ($resp as $call) {
69 69
                 list($method, $args) = $call;
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
     public function redirectCallback($resp): \Closure
79 79
     {
80
-        $responder = function () use ($resp) {
80
+        $responder = function() use ($resp) {
81 81
             $respObj = redirect();
82 82
             foreach ($resp as $call) {
83 83
                 list($method, $args) = $call;
Please login to merge, or discard this patch.