@@ -2,8 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Illuminate\Contracts\Bus; |
4 | 4 | |
5 | -interface Dispatcher |
|
6 | -{ |
|
5 | +interface Dispatcher { |
|
7 | 6 | /** |
8 | 7 | * Dispatch a command to its appropriate handler. |
9 | 8 | * |
@@ -10,28 +10,28 @@ |
||
10 | 10 | |
11 | 11 | interface Dispatcher |
12 | 12 | { |
13 | - /** |
|
14 | - * Dispatch a command to its appropriate handler. |
|
15 | - * |
|
16 | - * @param mixed $command |
|
17 | - * @return mixed |
|
18 | - */ |
|
19 | - public function dispatch($command); |
|
13 | + /** |
|
14 | + * Dispatch a command to its appropriate handler. |
|
15 | + * |
|
16 | + * @param mixed $command |
|
17 | + * @return mixed |
|
18 | + */ |
|
19 | + public function dispatch($command); |
|
20 | 20 | |
21 | - /** |
|
22 | - * Dispatch a command to its appropriate handler in the current process. |
|
23 | - * |
|
24 | - * @param mixed $command |
|
25 | - * @param mixed $handler |
|
26 | - * @return mixed |
|
27 | - */ |
|
28 | - public function dispatchNow($command, $handler = null); |
|
21 | + /** |
|
22 | + * Dispatch a command to its appropriate handler in the current process. |
|
23 | + * |
|
24 | + * @param mixed $command |
|
25 | + * @param mixed $handler |
|
26 | + * @return mixed |
|
27 | + */ |
|
28 | + public function dispatchNow($command, $handler = null); |
|
29 | 29 | |
30 | - /** |
|
31 | - * Set the pipes commands should be piped through before dispatching. |
|
32 | - * |
|
33 | - * @param array $pipes |
|
34 | - * @return $this |
|
35 | - */ |
|
36 | - public function pipeThrough(array $pipes); |
|
30 | + /** |
|
31 | + * Set the pipes commands should be piped through before dispatching. |
|
32 | + * |
|
33 | + * @param array $pipes |
|
34 | + * @return $this |
|
35 | + */ |
|
36 | + public function pipeThrough(array $pipes); |
|
37 | 37 | } |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | * @param mixed $command |
17 | 17 | * @return mixed |
18 | 18 | */ |
19 | - public function dispatch($command); |
|
19 | + public function dispatch( $command ); |
|
20 | 20 | |
21 | 21 | /** |
22 | 22 | * Dispatch a command to its appropriate handler in the current process. |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * @param mixed $handler |
26 | 26 | * @return mixed |
27 | 27 | */ |
28 | - public function dispatchNow($command, $handler = null); |
|
28 | + public function dispatchNow( $command, $handler = null ); |
|
29 | 29 | |
30 | 30 | /** |
31 | 31 | * Set the pipes commands should be piped through before dispatching. |
@@ -33,5 +33,5 @@ discard block |
||
33 | 33 | * @param array $pipes |
34 | 34 | * @return $this |
35 | 35 | */ |
36 | - public function pipeThrough(array $pipes); |
|
36 | + public function pipeThrough( array $pipes ); |
|
37 | 37 | } |
@@ -2,8 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Illuminate\Contracts\Mail; |
4 | 4 | |
5 | -interface MailQueue |
|
6 | -{ |
|
5 | +interface MailQueue { |
|
7 | 6 | /** |
8 | 7 | * Queue a new e-mail message for sending. |
9 | 8 | * |
@@ -10,26 +10,26 @@ |
||
10 | 10 | |
11 | 11 | interface MailQueue |
12 | 12 | { |
13 | - /** |
|
14 | - * Queue a new e-mail message for sending. |
|
15 | - * |
|
16 | - * @param string|array $view |
|
17 | - * @param array $data |
|
18 | - * @param \Closure|string $callback |
|
19 | - * @param string $queue |
|
20 | - * @return mixed |
|
21 | - */ |
|
22 | - public function queue($view, array $data, $callback, $queue = null); |
|
13 | + /** |
|
14 | + * Queue a new e-mail message for sending. |
|
15 | + * |
|
16 | + * @param string|array $view |
|
17 | + * @param array $data |
|
18 | + * @param \Closure|string $callback |
|
19 | + * @param string $queue |
|
20 | + * @return mixed |
|
21 | + */ |
|
22 | + public function queue($view, array $data, $callback, $queue = null); |
|
23 | 23 | |
24 | - /** |
|
25 | - * Queue a new e-mail message for sending after (n) seconds. |
|
26 | - * |
|
27 | - * @param int $delay |
|
28 | - * @param string|array $view |
|
29 | - * @param array $data |
|
30 | - * @param \Closure|string $callback |
|
31 | - * @param string $queue |
|
32 | - * @return mixed |
|
33 | - */ |
|
34 | - public function later($delay, $view, array $data, $callback, $queue = null); |
|
24 | + /** |
|
25 | + * Queue a new e-mail message for sending after (n) seconds. |
|
26 | + * |
|
27 | + * @param int $delay |
|
28 | + * @param string|array $view |
|
29 | + * @param array $data |
|
30 | + * @param \Closure|string $callback |
|
31 | + * @param string $queue |
|
32 | + * @return mixed |
|
33 | + */ |
|
34 | + public function later($delay, $view, array $data, $callback, $queue = null); |
|
35 | 35 | } |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | * @param string $queue |
20 | 20 | * @return mixed |
21 | 21 | */ |
22 | - public function queue($view, array $data, $callback, $queue = null); |
|
22 | + public function queue( $view, array $data, $callback, $queue = null ); |
|
23 | 23 | |
24 | 24 | /** |
25 | 25 | * Queue a new e-mail message for sending after (n) seconds. |
@@ -31,5 +31,5 @@ discard block |
||
31 | 31 | * @param string $queue |
32 | 32 | * @return mixed |
33 | 33 | */ |
34 | - public function later($delay, $view, array $data, $callback, $queue = null); |
|
34 | + public function later( $delay, $view, array $data, $callback, $queue = null ); |
|
35 | 35 | } |
@@ -4,8 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Illuminate\Contracts\Queue\Factory as Queue; |
6 | 6 | |
7 | -interface Mailable |
|
8 | -{ |
|
7 | +interface Mailable { |
|
9 | 8 | /** |
10 | 9 | * Send the message using the given mailer. |
11 | 10 | * |
@@ -12,28 +12,28 @@ |
||
12 | 12 | |
13 | 13 | interface Mailable |
14 | 14 | { |
15 | - /** |
|
16 | - * Send the message using the given mailer. |
|
17 | - * |
|
18 | - * @param Mailer $mailer |
|
19 | - * @return void |
|
20 | - */ |
|
21 | - public function send(Mailer $mailer); |
|
15 | + /** |
|
16 | + * Send the message using the given mailer. |
|
17 | + * |
|
18 | + * @param Mailer $mailer |
|
19 | + * @return void |
|
20 | + */ |
|
21 | + public function send(Mailer $mailer); |
|
22 | 22 | |
23 | - /** |
|
24 | - * Queue the given message. |
|
25 | - * |
|
26 | - * @param Queue $queue |
|
27 | - * @return mixed |
|
28 | - */ |
|
29 | - public function queue(Queue $queue); |
|
23 | + /** |
|
24 | + * Queue the given message. |
|
25 | + * |
|
26 | + * @param Queue $queue |
|
27 | + * @return mixed |
|
28 | + */ |
|
29 | + public function queue(Queue $queue); |
|
30 | 30 | |
31 | - /** |
|
32 | - * Deliver the queued message after the given delay. |
|
33 | - * |
|
34 | - * @param \DateTime|int $delay |
|
35 | - * @param Queue $queue |
|
36 | - * @return mixed |
|
37 | - */ |
|
38 | - public function later($delay, Queue $queue); |
|
31 | + /** |
|
32 | + * Deliver the queued message after the given delay. |
|
33 | + * |
|
34 | + * @param \DateTime|int $delay |
|
35 | + * @param Queue $queue |
|
36 | + * @return mixed |
|
37 | + */ |
|
38 | + public function later($delay, Queue $queue); |
|
39 | 39 | } |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | * @param Mailer $mailer |
19 | 19 | * @return void |
20 | 20 | */ |
21 | - public function send(Mailer $mailer); |
|
21 | + public function send( Mailer $mailer ); |
|
22 | 22 | |
23 | 23 | /** |
24 | 24 | * Queue the given message. |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * @param Queue $queue |
27 | 27 | * @return mixed |
28 | 28 | */ |
29 | - public function queue(Queue $queue); |
|
29 | + public function queue( Queue $queue ); |
|
30 | 30 | |
31 | 31 | /** |
32 | 32 | * Deliver the queued message after the given delay. |
@@ -35,5 +35,5 @@ discard block |
||
35 | 35 | * @param Queue $queue |
36 | 36 | * @return mixed |
37 | 37 | */ |
38 | - public function later($delay, Queue $queue); |
|
38 | + public function later( $delay, Queue $queue ); |
|
39 | 39 | } |
@@ -2,8 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Illuminate\Contracts\Cache; |
4 | 4 | |
5 | -interface Store |
|
6 | -{ |
|
5 | +interface Store { |
|
7 | 6 | /** |
8 | 7 | * Retrieve an item from the cache by key. |
9 | 8 | * |
@@ -10,89 +10,89 @@ |
||
10 | 10 | |
11 | 11 | interface Store |
12 | 12 | { |
13 | - /** |
|
14 | - * Retrieve an item from the cache by key. |
|
15 | - * |
|
16 | - * @param string|array $key |
|
17 | - * @return mixed |
|
18 | - */ |
|
19 | - public function get($key); |
|
13 | + /** |
|
14 | + * Retrieve an item from the cache by key. |
|
15 | + * |
|
16 | + * @param string|array $key |
|
17 | + * @return mixed |
|
18 | + */ |
|
19 | + public function get($key); |
|
20 | 20 | |
21 | - /** |
|
22 | - * Retrieve multiple items from the cache by key. |
|
23 | - * |
|
24 | - * Items not found in the cache will have a null value. |
|
25 | - * |
|
26 | - * @param array $keys |
|
27 | - * @return array |
|
28 | - */ |
|
29 | - public function many(array $keys); |
|
21 | + /** |
|
22 | + * Retrieve multiple items from the cache by key. |
|
23 | + * |
|
24 | + * Items not found in the cache will have a null value. |
|
25 | + * |
|
26 | + * @param array $keys |
|
27 | + * @return array |
|
28 | + */ |
|
29 | + public function many(array $keys); |
|
30 | 30 | |
31 | - /** |
|
32 | - * Store an item in the cache for a given number of minutes. |
|
33 | - * |
|
34 | - * @param string $key |
|
35 | - * @param mixed $value |
|
36 | - * @param float|int $minutes |
|
37 | - * @return void |
|
38 | - */ |
|
39 | - public function put($key, $value, $minutes); |
|
31 | + /** |
|
32 | + * Store an item in the cache for a given number of minutes. |
|
33 | + * |
|
34 | + * @param string $key |
|
35 | + * @param mixed $value |
|
36 | + * @param float|int $minutes |
|
37 | + * @return void |
|
38 | + */ |
|
39 | + public function put($key, $value, $minutes); |
|
40 | 40 | |
41 | - /** |
|
42 | - * Store multiple items in the cache for a given number of minutes. |
|
43 | - * |
|
44 | - * @param array $values |
|
45 | - * @param float|int $minutes |
|
46 | - * @return void |
|
47 | - */ |
|
48 | - public function putMany(array $values, $minutes); |
|
41 | + /** |
|
42 | + * Store multiple items in the cache for a given number of minutes. |
|
43 | + * |
|
44 | + * @param array $values |
|
45 | + * @param float|int $minutes |
|
46 | + * @return void |
|
47 | + */ |
|
48 | + public function putMany(array $values, $minutes); |
|
49 | 49 | |
50 | - /** |
|
51 | - * Increment the value of an item in the cache. |
|
52 | - * |
|
53 | - * @param string $key |
|
54 | - * @param mixed $value |
|
55 | - * @return int|bool |
|
56 | - */ |
|
57 | - public function increment($key, $value = 1); |
|
50 | + /** |
|
51 | + * Increment the value of an item in the cache. |
|
52 | + * |
|
53 | + * @param string $key |
|
54 | + * @param mixed $value |
|
55 | + * @return int|bool |
|
56 | + */ |
|
57 | + public function increment($key, $value = 1); |
|
58 | 58 | |
59 | - /** |
|
60 | - * Decrement the value of an item in the cache. |
|
61 | - * |
|
62 | - * @param string $key |
|
63 | - * @param mixed $value |
|
64 | - * @return int|bool |
|
65 | - */ |
|
66 | - public function decrement($key, $value = 1); |
|
59 | + /** |
|
60 | + * Decrement the value of an item in the cache. |
|
61 | + * |
|
62 | + * @param string $key |
|
63 | + * @param mixed $value |
|
64 | + * @return int|bool |
|
65 | + */ |
|
66 | + public function decrement($key, $value = 1); |
|
67 | 67 | |
68 | - /** |
|
69 | - * Store an item in the cache indefinitely. |
|
70 | - * |
|
71 | - * @param string $key |
|
72 | - * @param mixed $value |
|
73 | - * @return void |
|
74 | - */ |
|
75 | - public function forever($key, $value); |
|
68 | + /** |
|
69 | + * Store an item in the cache indefinitely. |
|
70 | + * |
|
71 | + * @param string $key |
|
72 | + * @param mixed $value |
|
73 | + * @return void |
|
74 | + */ |
|
75 | + public function forever($key, $value); |
|
76 | 76 | |
77 | - /** |
|
78 | - * Remove an item from the cache. |
|
79 | - * |
|
80 | - * @param string $key |
|
81 | - * @return bool |
|
82 | - */ |
|
83 | - public function forget($key); |
|
77 | + /** |
|
78 | + * Remove an item from the cache. |
|
79 | + * |
|
80 | + * @param string $key |
|
81 | + * @return bool |
|
82 | + */ |
|
83 | + public function forget($key); |
|
84 | 84 | |
85 | - /** |
|
86 | - * Remove all items from the cache. |
|
87 | - * |
|
88 | - * @return bool |
|
89 | - */ |
|
90 | - public function flush(); |
|
85 | + /** |
|
86 | + * Remove all items from the cache. |
|
87 | + * |
|
88 | + * @return bool |
|
89 | + */ |
|
90 | + public function flush(); |
|
91 | 91 | |
92 | - /** |
|
93 | - * Get the cache key prefix. |
|
94 | - * |
|
95 | - * @return string |
|
96 | - */ |
|
97 | - public function getPrefix(); |
|
92 | + /** |
|
93 | + * Get the cache key prefix. |
|
94 | + * |
|
95 | + * @return string |
|
96 | + */ |
|
97 | + public function getPrefix(); |
|
98 | 98 | } |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | * @param string|array $key |
17 | 17 | * @return mixed |
18 | 18 | */ |
19 | - public function get($key); |
|
19 | + public function get( $key ); |
|
20 | 20 | |
21 | 21 | /** |
22 | 22 | * Retrieve multiple items from the cache by key. |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * @param array $keys |
27 | 27 | * @return array |
28 | 28 | */ |
29 | - public function many(array $keys); |
|
29 | + public function many( array $keys ); |
|
30 | 30 | |
31 | 31 | /** |
32 | 32 | * Store an item in the cache for a given number of minutes. |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * @param float|int $minutes |
37 | 37 | * @return void |
38 | 38 | */ |
39 | - public function put($key, $value, $minutes); |
|
39 | + public function put( $key, $value, $minutes ); |
|
40 | 40 | |
41 | 41 | /** |
42 | 42 | * Store multiple items in the cache for a given number of minutes. |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | * @param float|int $minutes |
46 | 46 | * @return void |
47 | 47 | */ |
48 | - public function putMany(array $values, $minutes); |
|
48 | + public function putMany( array $values, $minutes ); |
|
49 | 49 | |
50 | 50 | /** |
51 | 51 | * Increment the value of an item in the cache. |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | * @param mixed $value |
55 | 55 | * @return int|bool |
56 | 56 | */ |
57 | - public function increment($key, $value = 1); |
|
57 | + public function increment( $key, $value = 1 ); |
|
58 | 58 | |
59 | 59 | /** |
60 | 60 | * Decrement the value of an item in the cache. |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * @param mixed $value |
64 | 64 | * @return int|bool |
65 | 65 | */ |
66 | - public function decrement($key, $value = 1); |
|
66 | + public function decrement( $key, $value = 1 ); |
|
67 | 67 | |
68 | 68 | /** |
69 | 69 | * Store an item in the cache indefinitely. |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | * @param mixed $value |
73 | 73 | * @return void |
74 | 74 | */ |
75 | - public function forever($key, $value); |
|
75 | + public function forever( $key, $value ); |
|
76 | 76 | |
77 | 77 | /** |
78 | 78 | * Remove an item from the cache. |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | * @param string $key |
81 | 81 | * @return bool |
82 | 82 | */ |
83 | - public function forget($key); |
|
83 | + public function forget( $key ); |
|
84 | 84 | |
85 | 85 | /** |
86 | 86 | * Remove all items from the cache. |
@@ -2,8 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Illuminate\Contracts\Cache; |
4 | 4 | |
5 | -interface Factory |
|
6 | -{ |
|
5 | +interface Factory { |
|
7 | 6 | /** |
8 | 7 | * Get a cache store instance by name. |
9 | 8 | * |
@@ -10,11 +10,11 @@ |
||
10 | 10 | |
11 | 11 | interface Factory |
12 | 12 | { |
13 | - /** |
|
14 | - * Get a cache store instance by name. |
|
15 | - * |
|
16 | - * @param string|null $name |
|
17 | - * @return mixed |
|
18 | - */ |
|
19 | - public function store($name = null); |
|
13 | + /** |
|
14 | + * Get a cache store instance by name. |
|
15 | + * |
|
16 | + * @param string|null $name |
|
17 | + * @return mixed |
|
18 | + */ |
|
19 | + public function store($name = null); |
|
20 | 20 | } |
@@ -16,5 +16,5 @@ |
||
16 | 16 | * @param string|null $name |
17 | 17 | * @return mixed |
18 | 18 | */ |
19 | - public function store($name = null); |
|
19 | + public function store( $name = null ); |
|
20 | 20 | } |
@@ -6,5 +6,5 @@ |
||
6 | 6 | |
7 | 7 | class EncryptException extends RuntimeException |
8 | 8 | { |
9 | - // |
|
9 | + // |
|
10 | 10 | } |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use RuntimeException; |
6 | 6 | |
7 | -class EncryptException extends RuntimeException |
|
8 | -{ |
|
7 | +class EncryptException extends RuntimeException { |
|
9 | 8 | // |
10 | 9 | } |
@@ -2,8 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Illuminate\Contracts\Encryption; |
4 | 4 | |
5 | -interface Encrypter |
|
6 | -{ |
|
5 | +interface Encrypter { |
|
7 | 6 | /** |
8 | 7 | * Encrypt the given value. |
9 | 8 | * |
@@ -10,21 +10,21 @@ |
||
10 | 10 | |
11 | 11 | interface Encrypter |
12 | 12 | { |
13 | - /** |
|
14 | - * Encrypt the given value. |
|
15 | - * |
|
16 | - * @param string $value |
|
17 | - * @param bool $serialize |
|
18 | - * @return string |
|
19 | - */ |
|
20 | - public function encrypt($value, $serialize = true); |
|
13 | + /** |
|
14 | + * Encrypt the given value. |
|
15 | + * |
|
16 | + * @param string $value |
|
17 | + * @param bool $serialize |
|
18 | + * @return string |
|
19 | + */ |
|
20 | + public function encrypt($value, $serialize = true); |
|
21 | 21 | |
22 | - /** |
|
23 | - * Decrypt the given value. |
|
24 | - * |
|
25 | - * @param string $payload |
|
26 | - * @param bool $unserialize |
|
27 | - * @return string |
|
28 | - */ |
|
29 | - public function decrypt($payload, $unserialize = true); |
|
22 | + /** |
|
23 | + * Decrypt the given value. |
|
24 | + * |
|
25 | + * @param string $payload |
|
26 | + * @param bool $unserialize |
|
27 | + * @return string |
|
28 | + */ |
|
29 | + public function decrypt($payload, $unserialize = true); |
|
30 | 30 | } |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | * @param bool $serialize |
18 | 18 | * @return string |
19 | 19 | */ |
20 | - public function encrypt($value, $serialize = true); |
|
20 | + public function encrypt( $value, $serialize = true ); |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * Decrypt the given value. |
@@ -26,5 +26,5 @@ discard block |
||
26 | 26 | * @param bool $unserialize |
27 | 27 | * @return string |
28 | 28 | */ |
29 | - public function decrypt($payload, $unserialize = true); |
|
29 | + public function decrypt( $payload, $unserialize = true ); |
|
30 | 30 | } |
@@ -6,5 +6,5 @@ |
||
6 | 6 | |
7 | 7 | class DecryptException extends RuntimeException |
8 | 8 | { |
9 | - // |
|
9 | + // |
|
10 | 10 | } |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use RuntimeException; |
6 | 6 | |
7 | -class DecryptException extends RuntimeException |
|
8 | -{ |
|
7 | +class DecryptException extends RuntimeException { |
|
9 | 8 | // |
10 | 9 | } |
@@ -2,8 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Illuminate\Contracts\Events; |
4 | 4 | |
5 | -interface Dispatcher |
|
6 | -{ |
|
5 | +interface Dispatcher { |
|
7 | 6 | /** |
8 | 7 | * Register an event listener with the dispatcher. |
9 | 8 | * |
@@ -10,79 +10,79 @@ |
||
10 | 10 | |
11 | 11 | interface Dispatcher |
12 | 12 | { |
13 | - /** |
|
14 | - * Register an event listener with the dispatcher. |
|
15 | - * |
|
16 | - * @param string|array $events |
|
17 | - * @param mixed $listener |
|
18 | - * @return void |
|
19 | - */ |
|
20 | - public function listen($events, $listener); |
|
13 | + /** |
|
14 | + * Register an event listener with the dispatcher. |
|
15 | + * |
|
16 | + * @param string|array $events |
|
17 | + * @param mixed $listener |
|
18 | + * @return void |
|
19 | + */ |
|
20 | + public function listen($events, $listener); |
|
21 | 21 | |
22 | - /** |
|
23 | - * Determine if a given event has listeners. |
|
24 | - * |
|
25 | - * @param string $eventName |
|
26 | - * @return bool |
|
27 | - */ |
|
28 | - public function hasListeners($eventName); |
|
22 | + /** |
|
23 | + * Determine if a given event has listeners. |
|
24 | + * |
|
25 | + * @param string $eventName |
|
26 | + * @return bool |
|
27 | + */ |
|
28 | + public function hasListeners($eventName); |
|
29 | 29 | |
30 | - /** |
|
31 | - * Register an event subscriber with the dispatcher. |
|
32 | - * |
|
33 | - * @param object|string $subscriber |
|
34 | - * @return void |
|
35 | - */ |
|
36 | - public function subscribe($subscriber); |
|
30 | + /** |
|
31 | + * Register an event subscriber with the dispatcher. |
|
32 | + * |
|
33 | + * @param object|string $subscriber |
|
34 | + * @return void |
|
35 | + */ |
|
36 | + public function subscribe($subscriber); |
|
37 | 37 | |
38 | - /** |
|
39 | - * Dispatch an event until the first non-null response is returned. |
|
40 | - * |
|
41 | - * @param string|object $event |
|
42 | - * @param mixed $payload |
|
43 | - * @return array|null |
|
44 | - */ |
|
45 | - public function until($event, $payload = []); |
|
38 | + /** |
|
39 | + * Dispatch an event until the first non-null response is returned. |
|
40 | + * |
|
41 | + * @param string|object $event |
|
42 | + * @param mixed $payload |
|
43 | + * @return array|null |
|
44 | + */ |
|
45 | + public function until($event, $payload = []); |
|
46 | 46 | |
47 | - /** |
|
48 | - * Dispatch an event and call the listeners. |
|
49 | - * |
|
50 | - * @param string|object $event |
|
51 | - * @param mixed $payload |
|
52 | - * @param bool $halt |
|
53 | - * @return array|null |
|
54 | - */ |
|
55 | - public function dispatch($event, $payload = [], $halt = false); |
|
47 | + /** |
|
48 | + * Dispatch an event and call the listeners. |
|
49 | + * |
|
50 | + * @param string|object $event |
|
51 | + * @param mixed $payload |
|
52 | + * @param bool $halt |
|
53 | + * @return array|null |
|
54 | + */ |
|
55 | + public function dispatch($event, $payload = [], $halt = false); |
|
56 | 56 | |
57 | - /** |
|
58 | - * Register an event and payload to be fired later. |
|
59 | - * |
|
60 | - * @param string $event |
|
61 | - * @param array $payload |
|
62 | - * @return void |
|
63 | - */ |
|
64 | - public function push($event, $payload = []); |
|
57 | + /** |
|
58 | + * Register an event and payload to be fired later. |
|
59 | + * |
|
60 | + * @param string $event |
|
61 | + * @param array $payload |
|
62 | + * @return void |
|
63 | + */ |
|
64 | + public function push($event, $payload = []); |
|
65 | 65 | |
66 | - /** |
|
67 | - * Flush a set of pushed events. |
|
68 | - * |
|
69 | - * @param string $event |
|
70 | - * @return void |
|
71 | - */ |
|
72 | - public function flush($event); |
|
66 | + /** |
|
67 | + * Flush a set of pushed events. |
|
68 | + * |
|
69 | + * @param string $event |
|
70 | + * @return void |
|
71 | + */ |
|
72 | + public function flush($event); |
|
73 | 73 | |
74 | - /** |
|
75 | - * Remove a set of listeners from the dispatcher. |
|
76 | - * |
|
77 | - * @param string $event |
|
78 | - * @return void |
|
79 | - */ |
|
80 | - public function forget($event); |
|
74 | + /** |
|
75 | + * Remove a set of listeners from the dispatcher. |
|
76 | + * |
|
77 | + * @param string $event |
|
78 | + * @return void |
|
79 | + */ |
|
80 | + public function forget($event); |
|
81 | 81 | |
82 | - /** |
|
83 | - * Forget all of the queued listeners. |
|
84 | - * |
|
85 | - * @return void |
|
86 | - */ |
|
87 | - public function forgetPushed(); |
|
82 | + /** |
|
83 | + * Forget all of the queued listeners. |
|
84 | + * |
|
85 | + * @return void |
|
86 | + */ |
|
87 | + public function forgetPushed(); |
|
88 | 88 | } |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | * @param mixed $listener |
18 | 18 | * @return void |
19 | 19 | */ |
20 | - public function listen($events, $listener); |
|
20 | + public function listen( $events, $listener ); |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * Determine if a given event has listeners. |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * @param string $eventName |
26 | 26 | * @return bool |
27 | 27 | */ |
28 | - public function hasListeners($eventName); |
|
28 | + public function hasListeners( $eventName ); |
|
29 | 29 | |
30 | 30 | /** |
31 | 31 | * Register an event subscriber with the dispatcher. |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | * @param object|string $subscriber |
34 | 34 | * @return void |
35 | 35 | */ |
36 | - public function subscribe($subscriber); |
|
36 | + public function subscribe( $subscriber ); |
|
37 | 37 | |
38 | 38 | /** |
39 | 39 | * Dispatch an event until the first non-null response is returned. |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | * @param mixed $payload |
43 | 43 | * @return array|null |
44 | 44 | */ |
45 | - public function until($event, $payload = []); |
|
45 | + public function until( $event, $payload = [ ] ); |
|
46 | 46 | |
47 | 47 | /** |
48 | 48 | * Dispatch an event and call the listeners. |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * @param bool $halt |
53 | 53 | * @return array|null |
54 | 54 | */ |
55 | - public function dispatch($event, $payload = [], $halt = false); |
|
55 | + public function dispatch( $event, $payload = [ ], $halt = false ); |
|
56 | 56 | |
57 | 57 | /** |
58 | 58 | * Register an event and payload to be fired later. |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | * @param array $payload |
62 | 62 | * @return void |
63 | 63 | */ |
64 | - public function push($event, $payload = []); |
|
64 | + public function push( $event, $payload = [ ] ); |
|
65 | 65 | |
66 | 66 | /** |
67 | 67 | * Flush a set of pushed events. |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | * @param string $event |
70 | 70 | * @return void |
71 | 71 | */ |
72 | - public function flush($event); |
|
72 | + public function flush( $event ); |
|
73 | 73 | |
74 | 74 | /** |
75 | 75 | * Remove a set of listeners from the dispatcher. |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | * @param string $event |
78 | 78 | * @return void |
79 | 79 | */ |
80 | - public function forget($event); |
|
80 | + public function forget( $event ); |
|
81 | 81 | |
82 | 82 | /** |
83 | 83 | * Forget all of the queued listeners. |