@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | |
3 | 3 | use Silk\Event\Hook; |
4 | 4 | |
5 | -if (! function_exists('on')) : |
|
5 | +if (!function_exists('on')) : |
|
6 | 6 | /** |
7 | 7 | * Create and set a new event listener. |
8 | 8 | * |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | } |
21 | 21 | endif; |
22 | 22 | |
23 | -if (! function_exists('off')) : |
|
23 | +if (!function_exists('off')) : |
|
24 | 24 | /** |
25 | 25 | * Remove an event listener. |
26 | 26 | * |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | * Here we add a new listener right before the hook is expected to fire, |
44 | 44 | * so that if it is there, we can unhook it just in time. |
45 | 45 | */ |
46 | - return on($handle, function ($given = null) use ($handle, $callback, $priority) { |
|
46 | + return on($handle, function($given = null) use ($handle, $callback, $priority) { |
|
47 | 47 | remove_filter($handle, $callback, $priority); |
48 | 48 | return $given; |
49 | 49 | })->withPriority($priority - 1); |
@@ -53,7 +53,7 @@ |
||
53 | 53 | */ |
54 | 54 | public function toArray() |
55 | 55 | { |
56 | - return $this->map(function ($label) { |
|
56 | + return $this->map(function($label) { |
|
57 | 57 | return str_replace( |
58 | 58 | [ |
59 | 59 | '{one}', |