@@ -2,8 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Illuminate\Contracts\Queue; |
4 | 4 | |
5 | -interface QueueableEntity |
|
6 | -{ |
|
5 | +interface QueueableEntity { |
|
7 | 6 | /** |
8 | 7 | * Get the queueable identity for the entity. |
9 | 8 | * |
@@ -10,10 +10,10 @@ |
||
10 | 10 | |
11 | 11 | interface QueueableEntity |
12 | 12 | { |
13 | - /** |
|
14 | - * Get the queueable identity for the entity. |
|
15 | - * |
|
16 | - * @return mixed |
|
17 | - */ |
|
18 | - public function getQueueableId(); |
|
13 | + /** |
|
14 | + * Get the queueable identity for the entity. |
|
15 | + * |
|
16 | + * @return mixed |
|
17 | + */ |
|
18 | + public function getQueueableId(); |
|
19 | 19 | } |
@@ -4,27 +4,27 @@ |
||
4 | 4 | |
5 | 5 | interface Monitor |
6 | 6 | { |
7 | - /** |
|
8 | - * Register a callback to be executed on every iteration through the queue loop. |
|
9 | - * |
|
10 | - * @param mixed $callback |
|
11 | - * @return void |
|
12 | - */ |
|
13 | - public function looping($callback); |
|
7 | + /** |
|
8 | + * Register a callback to be executed on every iteration through the queue loop. |
|
9 | + * |
|
10 | + * @param mixed $callback |
|
11 | + * @return void |
|
12 | + */ |
|
13 | + public function looping($callback); |
|
14 | 14 | |
15 | - /** |
|
16 | - * Register a callback to be executed when a job fails after the maximum amount of retries. |
|
17 | - * |
|
18 | - * @param mixed $callback |
|
19 | - * @return void |
|
20 | - */ |
|
21 | - public function failing($callback); |
|
15 | + /** |
|
16 | + * Register a callback to be executed when a job fails after the maximum amount of retries. |
|
17 | + * |
|
18 | + * @param mixed $callback |
|
19 | + * @return void |
|
20 | + */ |
|
21 | + public function failing($callback); |
|
22 | 22 | |
23 | - /** |
|
24 | - * Register a callback to be executed when a daemon queue is stopping. |
|
25 | - * |
|
26 | - * @param mixed $callback |
|
27 | - * @return void |
|
28 | - */ |
|
29 | - public function stopping($callback); |
|
23 | + /** |
|
24 | + * Register a callback to be executed when a daemon queue is stopping. |
|
25 | + * |
|
26 | + * @param mixed $callback |
|
27 | + * @return void |
|
28 | + */ |
|
29 | + public function stopping($callback); |
|
30 | 30 | } |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | * @param mixed $callback |
11 | 11 | * @return void |
12 | 12 | */ |
13 | - public function looping($callback); |
|
13 | + public function looping( $callback ); |
|
14 | 14 | |
15 | 15 | /** |
16 | 16 | * Register a callback to be executed when a job fails after the maximum amount of retries. |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | * @param mixed $callback |
19 | 19 | * @return void |
20 | 20 | */ |
21 | - public function failing($callback); |
|
21 | + public function failing( $callback ); |
|
22 | 22 | |
23 | 23 | /** |
24 | 24 | * Register a callback to be executed when a daemon queue is stopping. |
@@ -26,5 +26,5 @@ discard block |
||
26 | 26 | * @param mixed $callback |
27 | 27 | * @return void |
28 | 28 | */ |
29 | - public function stopping($callback); |
|
29 | + public function stopping( $callback ); |
|
30 | 30 | } |
@@ -2,8 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Illuminate\Contracts\Queue; |
4 | 4 | |
5 | -interface Monitor |
|
6 | -{ |
|
5 | +interface Monitor { |
|
7 | 6 | /** |
8 | 7 | * Register a callback to be executed on every iteration through the queue loop. |
9 | 8 | * |
@@ -4,5 +4,5 @@ |
||
4 | 4 | |
5 | 5 | interface ShouldQueue |
6 | 6 | { |
7 | - // |
|
7 | + // |
|
8 | 8 | } |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Illuminate\Contracts\Queue; |
4 | 4 | |
5 | -interface ShouldQueue |
|
6 | -{ |
|
5 | +interface ShouldQueue { |
|
7 | 6 | // |
8 | 7 | } |
@@ -6,17 +6,17 @@ |
||
6 | 6 | |
7 | 7 | class EntityNotFoundException extends InvalidArgumentException |
8 | 8 | { |
9 | - /** |
|
10 | - * Create a new exception instance. |
|
11 | - * |
|
12 | - * @param string $type |
|
13 | - * @param mixed $id |
|
14 | - * @return void |
|
15 | - */ |
|
16 | - public function __construct($type, $id) |
|
17 | - { |
|
18 | - $id = (string) $id; |
|
9 | + /** |
|
10 | + * Create a new exception instance. |
|
11 | + * |
|
12 | + * @param string $type |
|
13 | + * @param mixed $id |
|
14 | + * @return void |
|
15 | + */ |
|
16 | + public function __construct($type, $id) |
|
17 | + { |
|
18 | + $id = (string) $id; |
|
19 | 19 | |
20 | - parent::__construct("Queueable entity [{$type}] not found for ID [{$id}]."); |
|
21 | - } |
|
20 | + parent::__construct("Queueable entity [{$type}] not found for ID [{$id}]."); |
|
21 | + } |
|
22 | 22 | } |
@@ -13,10 +13,10 @@ |
||
13 | 13 | * @param mixed $id |
14 | 14 | * @return void |
15 | 15 | */ |
16 | - public function __construct($type, $id) |
|
16 | + public function __construct( $type, $id ) |
|
17 | 17 | { |
18 | - $id = (string) $id; |
|
18 | + $id = (string)$id; |
|
19 | 19 | |
20 | - parent::__construct("Queueable entity [{$type}] not found for ID [{$id}]."); |
|
20 | + parent::__construct( "Queueable entity [{$type}] not found for ID [{$id}]." ); |
|
21 | 21 | } |
22 | 22 | } |
@@ -4,8 +4,7 @@ discard block |
||
4 | 4 | |
5 | 5 | use InvalidArgumentException; |
6 | 6 | |
7 | -class EntityNotFoundException extends InvalidArgumentException |
|
8 | -{ |
|
7 | +class EntityNotFoundException extends InvalidArgumentException { |
|
9 | 8 | /** |
10 | 9 | * Create a new exception instance. |
11 | 10 | * |
@@ -13,8 +12,7 @@ discard block |
||
13 | 12 | * @param mixed $id |
14 | 13 | * @return void |
15 | 14 | */ |
16 | - public function __construct($type, $id) |
|
17 | - { |
|
15 | + public function __construct($type, $id) { |
|
18 | 16 | $id = (string) $id; |
19 | 17 | |
20 | 18 | parent::__construct("Queueable entity [{$type}] not found for ID [{$id}]."); |
@@ -2,8 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Illuminate\Contracts\Queue; |
4 | 4 | |
5 | -interface Queue |
|
6 | -{ |
|
5 | +interface Queue { |
|
7 | 6 | /** |
8 | 7 | * Get the size of the queue. |
9 | 8 | * |
@@ -4,96 +4,96 @@ |
||
4 | 4 | |
5 | 5 | interface Queue |
6 | 6 | { |
7 | - /** |
|
8 | - * Get the size of the queue. |
|
9 | - * |
|
10 | - * @param string $queue |
|
11 | - * @return int |
|
12 | - */ |
|
13 | - public function size($queue = null); |
|
7 | + /** |
|
8 | + * Get the size of the queue. |
|
9 | + * |
|
10 | + * @param string $queue |
|
11 | + * @return int |
|
12 | + */ |
|
13 | + public function size($queue = null); |
|
14 | 14 | |
15 | - /** |
|
16 | - * Push a new job onto the queue. |
|
17 | - * |
|
18 | - * @param string $job |
|
19 | - * @param mixed $data |
|
20 | - * @param string $queue |
|
21 | - * @return mixed |
|
22 | - */ |
|
23 | - public function push($job, $data = '', $queue = null); |
|
15 | + /** |
|
16 | + * Push a new job onto the queue. |
|
17 | + * |
|
18 | + * @param string $job |
|
19 | + * @param mixed $data |
|
20 | + * @param string $queue |
|
21 | + * @return mixed |
|
22 | + */ |
|
23 | + public function push($job, $data = '', $queue = null); |
|
24 | 24 | |
25 | - /** |
|
26 | - * Push a new job onto the queue. |
|
27 | - * |
|
28 | - * @param string $queue |
|
29 | - * @param string $job |
|
30 | - * @param mixed $data |
|
31 | - * @return mixed |
|
32 | - */ |
|
33 | - public function pushOn($queue, $job, $data = ''); |
|
25 | + /** |
|
26 | + * Push a new job onto the queue. |
|
27 | + * |
|
28 | + * @param string $queue |
|
29 | + * @param string $job |
|
30 | + * @param mixed $data |
|
31 | + * @return mixed |
|
32 | + */ |
|
33 | + public function pushOn($queue, $job, $data = ''); |
|
34 | 34 | |
35 | - /** |
|
36 | - * Push a raw payload onto the queue. |
|
37 | - * |
|
38 | - * @param string $payload |
|
39 | - * @param string $queue |
|
40 | - * @param array $options |
|
41 | - * @return mixed |
|
42 | - */ |
|
43 | - public function pushRaw($payload, $queue = null, array $options = []); |
|
35 | + /** |
|
36 | + * Push a raw payload onto the queue. |
|
37 | + * |
|
38 | + * @param string $payload |
|
39 | + * @param string $queue |
|
40 | + * @param array $options |
|
41 | + * @return mixed |
|
42 | + */ |
|
43 | + public function pushRaw($payload, $queue = null, array $options = []); |
|
44 | 44 | |
45 | - /** |
|
46 | - * Push a new job onto the queue after a delay. |
|
47 | - * |
|
48 | - * @param \DateTime|int $delay |
|
49 | - * @param string $job |
|
50 | - * @param mixed $data |
|
51 | - * @param string $queue |
|
52 | - * @return mixed |
|
53 | - */ |
|
54 | - public function later($delay, $job, $data = '', $queue = null); |
|
45 | + /** |
|
46 | + * Push a new job onto the queue after a delay. |
|
47 | + * |
|
48 | + * @param \DateTime|int $delay |
|
49 | + * @param string $job |
|
50 | + * @param mixed $data |
|
51 | + * @param string $queue |
|
52 | + * @return mixed |
|
53 | + */ |
|
54 | + public function later($delay, $job, $data = '', $queue = null); |
|
55 | 55 | |
56 | - /** |
|
57 | - * Push a new job onto the queue after a delay. |
|
58 | - * |
|
59 | - * @param string $queue |
|
60 | - * @param \DateTime|int $delay |
|
61 | - * @param string $job |
|
62 | - * @param mixed $data |
|
63 | - * @return mixed |
|
64 | - */ |
|
65 | - public function laterOn($queue, $delay, $job, $data = ''); |
|
56 | + /** |
|
57 | + * Push a new job onto the queue after a delay. |
|
58 | + * |
|
59 | + * @param string $queue |
|
60 | + * @param \DateTime|int $delay |
|
61 | + * @param string $job |
|
62 | + * @param mixed $data |
|
63 | + * @return mixed |
|
64 | + */ |
|
65 | + public function laterOn($queue, $delay, $job, $data = ''); |
|
66 | 66 | |
67 | - /** |
|
68 | - * Push an array of jobs onto the queue. |
|
69 | - * |
|
70 | - * @param array $jobs |
|
71 | - * @param mixed $data |
|
72 | - * @param string $queue |
|
73 | - * @return mixed |
|
74 | - */ |
|
75 | - public function bulk($jobs, $data = '', $queue = null); |
|
67 | + /** |
|
68 | + * Push an array of jobs onto the queue. |
|
69 | + * |
|
70 | + * @param array $jobs |
|
71 | + * @param mixed $data |
|
72 | + * @param string $queue |
|
73 | + * @return mixed |
|
74 | + */ |
|
75 | + public function bulk($jobs, $data = '', $queue = null); |
|
76 | 76 | |
77 | - /** |
|
78 | - * Pop the next job off of the queue. |
|
79 | - * |
|
80 | - * @param string $queue |
|
81 | - * @return \Illuminate\Contracts\Queue\Job|null |
|
82 | - */ |
|
83 | - public function pop($queue = null); |
|
77 | + /** |
|
78 | + * Pop the next job off of the queue. |
|
79 | + * |
|
80 | + * @param string $queue |
|
81 | + * @return \Illuminate\Contracts\Queue\Job|null |
|
82 | + */ |
|
83 | + public function pop($queue = null); |
|
84 | 84 | |
85 | - /** |
|
86 | - * Get the connection name for the queue. |
|
87 | - * |
|
88 | - * @return string |
|
89 | - */ |
|
90 | - public function getConnectionName(); |
|
85 | + /** |
|
86 | + * Get the connection name for the queue. |
|
87 | + * |
|
88 | + * @return string |
|
89 | + */ |
|
90 | + public function getConnectionName(); |
|
91 | 91 | |
92 | - /** |
|
93 | - * Set the connection name for the queue. |
|
94 | - * |
|
95 | - * @param string $name |
|
96 | - * @return $this |
|
97 | - */ |
|
98 | - public function setConnectionName($name); |
|
92 | + /** |
|
93 | + * Set the connection name for the queue. |
|
94 | + * |
|
95 | + * @param string $name |
|
96 | + * @return $this |
|
97 | + */ |
|
98 | + public function setConnectionName($name); |
|
99 | 99 | } |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | * @param string $queue |
11 | 11 | * @return int |
12 | 12 | */ |
13 | - public function size($queue = null); |
|
13 | + public function size( $queue = null ); |
|
14 | 14 | |
15 | 15 | /** |
16 | 16 | * Push a new job onto the queue. |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | * @param string $queue |
21 | 21 | * @return mixed |
22 | 22 | */ |
23 | - public function push($job, $data = '', $queue = null); |
|
23 | + public function push( $job, $data = '', $queue = null ); |
|
24 | 24 | |
25 | 25 | /** |
26 | 26 | * Push a new job onto the queue. |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | * @param mixed $data |
31 | 31 | * @return mixed |
32 | 32 | */ |
33 | - public function pushOn($queue, $job, $data = ''); |
|
33 | + public function pushOn( $queue, $job, $data = '' ); |
|
34 | 34 | |
35 | 35 | /** |
36 | 36 | * Push a raw payload onto the queue. |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | * @param array $options |
41 | 41 | * @return mixed |
42 | 42 | */ |
43 | - public function pushRaw($payload, $queue = null, array $options = []); |
|
43 | + public function pushRaw( $payload, $queue = null, array $options = [ ] ); |
|
44 | 44 | |
45 | 45 | /** |
46 | 46 | * Push a new job onto the queue after a delay. |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | * @param string $queue |
52 | 52 | * @return mixed |
53 | 53 | */ |
54 | - public function later($delay, $job, $data = '', $queue = null); |
|
54 | + public function later( $delay, $job, $data = '', $queue = null ); |
|
55 | 55 | |
56 | 56 | /** |
57 | 57 | * Push a new job onto the queue after a delay. |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * @param mixed $data |
63 | 63 | * @return mixed |
64 | 64 | */ |
65 | - public function laterOn($queue, $delay, $job, $data = ''); |
|
65 | + public function laterOn( $queue, $delay, $job, $data = '' ); |
|
66 | 66 | |
67 | 67 | /** |
68 | 68 | * Push an array of jobs onto the queue. |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | * @param string $queue |
73 | 73 | * @return mixed |
74 | 74 | */ |
75 | - public function bulk($jobs, $data = '', $queue = null); |
|
75 | + public function bulk( $jobs, $data = '', $queue = null ); |
|
76 | 76 | |
77 | 77 | /** |
78 | 78 | * Pop the next job off of the queue. |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | * @param string $queue |
81 | 81 | * @return \Illuminate\Contracts\Queue\Job|null |
82 | 82 | */ |
83 | - public function pop($queue = null); |
|
83 | + public function pop( $queue = null ); |
|
84 | 84 | |
85 | 85 | /** |
86 | 86 | * Get the connection name for the queue. |
@@ -95,5 +95,5 @@ discard block |
||
95 | 95 | * @param string $name |
96 | 96 | * @return $this |
97 | 97 | */ |
98 | - public function setConnectionName($name); |
|
98 | + public function setConnectionName( $name ); |
|
99 | 99 | } |
@@ -2,8 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Illuminate\Contracts\Queue; |
4 | 4 | |
5 | -interface QueueableCollection |
|
6 | -{ |
|
5 | +interface QueueableCollection { |
|
7 | 6 | /** |
8 | 7 | * Get the type of the entities being queued. |
9 | 8 | * |
@@ -10,17 +10,17 @@ |
||
10 | 10 | |
11 | 11 | interface QueueableCollection |
12 | 12 | { |
13 | - /** |
|
14 | - * Get the type of the entities being queued. |
|
15 | - * |
|
16 | - * @return string|null |
|
17 | - */ |
|
18 | - public function getQueueableClass(); |
|
13 | + /** |
|
14 | + * Get the type of the entities being queued. |
|
15 | + * |
|
16 | + * @return string|null |
|
17 | + */ |
|
18 | + public function getQueueableClass(); |
|
19 | 19 | |
20 | - /** |
|
21 | - * Get the identifiers for all of the entities. |
|
22 | - * |
|
23 | - * @return array |
|
24 | - */ |
|
25 | - public function getQueueableIds(); |
|
20 | + /** |
|
21 | + * Get the identifiers for all of the entities. |
|
22 | + * |
|
23 | + * @return array |
|
24 | + */ |
|
25 | + public function getQueueableIds(); |
|
26 | 26 | } |
@@ -4,12 +4,12 @@ |
||
4 | 4 | |
5 | 5 | interface EntityResolver |
6 | 6 | { |
7 | - /** |
|
8 | - * Resolve the entity for the given ID. |
|
9 | - * |
|
10 | - * @param string $type |
|
11 | - * @param mixed $id |
|
12 | - * @return mixed |
|
13 | - */ |
|
14 | - public function resolve($type, $id); |
|
7 | + /** |
|
8 | + * Resolve the entity for the given ID. |
|
9 | + * |
|
10 | + * @param string $type |
|
11 | + * @param mixed $id |
|
12 | + * @return mixed |
|
13 | + */ |
|
14 | + public function resolve($type, $id); |
|
15 | 15 | } |
@@ -11,5 +11,5 @@ |
||
11 | 11 | * @param mixed $id |
12 | 12 | * @return mixed |
13 | 13 | */ |
14 | - public function resolve($type, $id); |
|
14 | + public function resolve( $type, $id ); |
|
15 | 15 | } |
@@ -2,8 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Illuminate\Contracts\Queue; |
4 | 4 | |
5 | -interface EntityResolver |
|
6 | -{ |
|
5 | +interface EntityResolver { |
|
7 | 6 | /** |
8 | 7 | * Resolve the entity for the given ID. |
9 | 8 | * |
@@ -2,8 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Illuminate\Contracts\Queue; |
4 | 4 | |
5 | -interface Factory |
|
6 | -{ |
|
5 | +interface Factory { |
|
7 | 6 | /** |
8 | 7 | * Resolve a queue connection instance. |
9 | 8 | * |
@@ -4,11 +4,11 @@ |
||
4 | 4 | |
5 | 5 | interface Factory |
6 | 6 | { |
7 | - /** |
|
8 | - * Resolve a queue connection instance. |
|
9 | - * |
|
10 | - * @param string $name |
|
11 | - * @return \Illuminate\Contracts\Queue\Queue |
|
12 | - */ |
|
13 | - public function connection($name = null); |
|
7 | + /** |
|
8 | + * Resolve a queue connection instance. |
|
9 | + * |
|
10 | + * @param string $name |
|
11 | + * @return \Illuminate\Contracts\Queue\Queue |
|
12 | + */ |
|
13 | + public function connection($name = null); |
|
14 | 14 | } |
@@ -10,5 +10,5 @@ |
||
10 | 10 | * @param string $name |
11 | 11 | * @return \Illuminate\Contracts\Queue\Queue |
12 | 12 | */ |
13 | - public function connection($name = null); |
|
13 | + public function connection( $name = null ); |
|
14 | 14 | } |
@@ -2,8 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Illuminate\Contracts\Routing; |
4 | 4 | |
5 | -interface UrlRoutable |
|
6 | -{ |
|
5 | +interface UrlRoutable { |
|
7 | 6 | /** |
8 | 7 | * Get the value of the model's route key. |
9 | 8 | * |
@@ -10,17 +10,17 @@ |
||
10 | 10 | |
11 | 11 | interface UrlRoutable |
12 | 12 | { |
13 | - /** |
|
14 | - * Get the value of the model's route key. |
|
15 | - * |
|
16 | - * @return mixed |
|
17 | - */ |
|
18 | - public function getRouteKey(); |
|
13 | + /** |
|
14 | + * Get the value of the model's route key. |
|
15 | + * |
|
16 | + * @return mixed |
|
17 | + */ |
|
18 | + public function getRouteKey(); |
|
19 | 19 | |
20 | - /** |
|
21 | - * Get the route key for the model. |
|
22 | - * |
|
23 | - * @return string |
|
24 | - */ |
|
25 | - public function getRouteKeyName(); |
|
20 | + /** |
|
21 | + * Get the route key for the model. |
|
22 | + * |
|
23 | + * @return string |
|
24 | + */ |
|
25 | + public function getRouteKeyName(); |
|
26 | 26 | } |