@@ -6,7 +6,7 @@ |
||
6 | 6 | { |
7 | 7 | $method = 'handle'; |
8 | 8 | |
9 | - if (! method_exists($listener, $method)) { |
|
9 | + if (!method_exists($listener, $method)) { |
|
10 | 10 | return null; |
11 | 11 | } |
12 | 12 |
@@ -35,16 +35,16 @@ |
||
35 | 35 | */ |
36 | 36 | private function createChain($middleware) |
37 | 37 | { |
38 | - $last = function () { |
|
38 | + $last = function() { |
|
39 | 39 | // nothing |
40 | 40 | }; |
41 | 41 | |
42 | 42 | while ($link = array_pop($middleware)) { |
43 | - if (! $link instanceof Middleware) { |
|
43 | + if (!$link instanceof Middleware) { |
|
44 | 44 | throw new InvalidMiddlewareException('Shitballs!'); |
45 | 45 | } |
46 | 46 | |
47 | - $last = function ($event) use ($link, $last) { |
|
47 | + $last = function($event) use ($link, $last) { |
|
48 | 48 | return $link->execute($event, $last); |
49 | 49 | }; |
50 | 50 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | foreach ($this->listeners as $listener) { |
29 | 29 | $method = $this->inflector->inflect($event, $listener); |
30 | 30 | |
31 | - if (! $method) { |
|
31 | + if (!$method) { |
|
32 | 32 | continue; |
33 | 33 | } |
34 | 34 |