Completed
Push — master ( 36764f...e22a75 )
by Iman
03:19
created
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
             throw new $exClass($e['message']);
52 52
         };
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public function responseCallback($resp): \Closure
64 64
     {
65
-        $responder = function () use ($resp) {
65
+        $responder = function() use ($resp) {
66 66
             $respObj = response();
67 67
             foreach ($resp as $call) {
68 68
                 list($method, $args) = $call;
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 
77 77
     public function redirectCallback($resp): \Closure
78 78
     {
79
-        $responder = function () use ($resp) {
79
+        $responder = function() use ($resp) {
80 80
             $respObj = redirect();
81 81
             foreach ($resp as $call) {
82 82
                 list($method, $args) = $call;
Please login to merge, or discard this patch.
src/ListenerFactory.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         $cb = $this->chain->predicate;
44 44
         $this->chain->reset();
45 45
 
46
-        return function (...$f) use ($responder, $cb, $dispatcher, $calls) {
46
+        return function(...$f) use ($responder, $cb, $dispatcher, $calls) {
47 47
             if ($cb($f)) {
48 48
                 return true;
49 49
             }
@@ -58,12 +58,12 @@  discard block
 block discarded – undo
58 58
     {
59 59
         $events = $this->chain->events;
60 60
 
61
-        if (! $events) {
62
-            return function () {
61
+        if (!$events) {
62
+            return function() {
63 63
             };
64 64
         }
65 65
 
66
-        return function () use ($events) {
66
+        return function() use ($events) {
67 67
             foreach ($events as $event) {
68 68
                 app('events')->dispatch(...$event);
69 69
             }
@@ -74,12 +74,12 @@  discard block
 block discarded – undo
74 74
     {
75 75
         $calls = $this->chain->calls;
76 76
 
77
-        if (! $calls) {
78
-            return function () {
77
+        if (!$calls) {
78
+            return function() {
79 79
             };
80 80
         }
81 81
 
82
-        return function () use ($calls) {
82
+        return function() use ($calls) {
83 83
             foreach ($calls as $call) {
84 84
                 app()->call(...$call);
85 85
             }
Please login to merge, or discard this patch.