@@ -4,5 +4,5 @@ |
||
4 | 4 | |
5 | 5 | interface ShouldQueue |
6 | 6 | { |
7 | - // |
|
7 | + // |
|
8 | 8 | } |
@@ -8,7 +8,6 @@ |
||
8 | 8 | |
9 | 9 | namespace GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Queue; |
10 | 10 | |
11 | -interface ShouldQueue |
|
12 | -{ |
|
11 | +interface ShouldQueue { |
|
13 | 12 | // |
14 | 13 | } |
@@ -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 | } |
@@ -8,8 +8,7 @@ |
||
8 | 8 | |
9 | 9 | namespace GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Queue; |
10 | 10 | |
11 | -interface QueueableCollection |
|
12 | -{ |
|
11 | +interface QueueableCollection { |
|
13 | 12 | /** |
14 | 13 | * Get the type of the entities being queued. |
15 | 14 | * |
@@ -10,105 +10,105 @@ |
||
10 | 10 | |
11 | 11 | interface Job |
12 | 12 | { |
13 | - /** |
|
14 | - * Fire the job. |
|
15 | - * |
|
16 | - * @return void |
|
17 | - */ |
|
18 | - public function fire(); |
|
13 | + /** |
|
14 | + * Fire the job. |
|
15 | + * |
|
16 | + * @return void |
|
17 | + */ |
|
18 | + public function fire(); |
|
19 | 19 | |
20 | - /** |
|
21 | - * Release the job back into the queue. |
|
22 | - * |
|
23 | - * @param int $delay |
|
24 | - * @return mixed |
|
25 | - */ |
|
26 | - public function release($delay = 0); |
|
20 | + /** |
|
21 | + * Release the job back into the queue. |
|
22 | + * |
|
23 | + * @param int $delay |
|
24 | + * @return mixed |
|
25 | + */ |
|
26 | + public function release($delay = 0); |
|
27 | 27 | |
28 | - /** |
|
29 | - * Delete the job from the queue. |
|
30 | - * |
|
31 | - * @return void |
|
32 | - */ |
|
33 | - public function delete(); |
|
28 | + /** |
|
29 | + * Delete the job from the queue. |
|
30 | + * |
|
31 | + * @return void |
|
32 | + */ |
|
33 | + public function delete(); |
|
34 | 34 | |
35 | - /** |
|
36 | - * Determine if the job has been deleted. |
|
37 | - * |
|
38 | - * @return bool |
|
39 | - */ |
|
40 | - public function isDeleted(); |
|
35 | + /** |
|
36 | + * Determine if the job has been deleted. |
|
37 | + * |
|
38 | + * @return bool |
|
39 | + */ |
|
40 | + public function isDeleted(); |
|
41 | 41 | |
42 | - /** |
|
43 | - * Determine if the job has been deleted or released. |
|
44 | - * |
|
45 | - * @return bool |
|
46 | - */ |
|
47 | - public function isDeletedOrReleased(); |
|
42 | + /** |
|
43 | + * Determine if the job has been deleted or released. |
|
44 | + * |
|
45 | + * @return bool |
|
46 | + */ |
|
47 | + public function isDeletedOrReleased(); |
|
48 | 48 | |
49 | - /** |
|
50 | - * Get the number of times the job has been attempted. |
|
51 | - * |
|
52 | - * @return int |
|
53 | - */ |
|
54 | - public function attempts(); |
|
49 | + /** |
|
50 | + * Get the number of times the job has been attempted. |
|
51 | + * |
|
52 | + * @return int |
|
53 | + */ |
|
54 | + public function attempts(); |
|
55 | 55 | |
56 | - /** |
|
57 | - * Process an exception that caused the job to fail. |
|
58 | - * |
|
59 | - * @param \Throwable $e |
|
60 | - * @return void |
|
61 | - */ |
|
62 | - public function failed($e); |
|
56 | + /** |
|
57 | + * Process an exception that caused the job to fail. |
|
58 | + * |
|
59 | + * @param \Throwable $e |
|
60 | + * @return void |
|
61 | + */ |
|
62 | + public function failed($e); |
|
63 | 63 | |
64 | - /** |
|
65 | - * The number of times to attempt a job. |
|
66 | - * |
|
67 | - * @return int|null |
|
68 | - */ |
|
69 | - public function maxTries(); |
|
64 | + /** |
|
65 | + * The number of times to attempt a job. |
|
66 | + * |
|
67 | + * @return int|null |
|
68 | + */ |
|
69 | + public function maxTries(); |
|
70 | 70 | |
71 | - /** |
|
72 | - * The number of seconds the job can run. |
|
73 | - * |
|
74 | - * @return int|null |
|
75 | - */ |
|
76 | - public function timeout(); |
|
71 | + /** |
|
72 | + * The number of seconds the job can run. |
|
73 | + * |
|
74 | + * @return int|null |
|
75 | + */ |
|
76 | + public function timeout(); |
|
77 | 77 | |
78 | - /** |
|
79 | - * Get the name of the queued job class. |
|
80 | - * |
|
81 | - * @return string |
|
82 | - */ |
|
83 | - public function getName(); |
|
78 | + /** |
|
79 | + * Get the name of the queued job class. |
|
80 | + * |
|
81 | + * @return string |
|
82 | + */ |
|
83 | + public function getName(); |
|
84 | 84 | |
85 | - /** |
|
86 | - * Get the resolved name of the queued job class. |
|
87 | - * |
|
88 | - * Resolves the name of "wrapped" jobs such as class-based handlers. |
|
89 | - * |
|
90 | - * @return string |
|
91 | - */ |
|
92 | - public function resolveName(); |
|
85 | + /** |
|
86 | + * Get the resolved name of the queued job class. |
|
87 | + * |
|
88 | + * Resolves the name of "wrapped" jobs such as class-based handlers. |
|
89 | + * |
|
90 | + * @return string |
|
91 | + */ |
|
92 | + public function resolveName(); |
|
93 | 93 | |
94 | - /** |
|
95 | - * Get the name of the connection the job belongs to. |
|
96 | - * |
|
97 | - * @return string |
|
98 | - */ |
|
99 | - public function getConnectionName(); |
|
94 | + /** |
|
95 | + * Get the name of the connection the job belongs to. |
|
96 | + * |
|
97 | + * @return string |
|
98 | + */ |
|
99 | + public function getConnectionName(); |
|
100 | 100 | |
101 | - /** |
|
102 | - * Get the name of the queue the job belongs to. |
|
103 | - * |
|
104 | - * @return string |
|
105 | - */ |
|
106 | - public function getQueue(); |
|
101 | + /** |
|
102 | + * Get the name of the queue the job belongs to. |
|
103 | + * |
|
104 | + * @return string |
|
105 | + */ |
|
106 | + public function getQueue(); |
|
107 | 107 | |
108 | - /** |
|
109 | - * Get the raw body string for the job. |
|
110 | - * |
|
111 | - * @return string |
|
112 | - */ |
|
113 | - public function getRawBody(); |
|
108 | + /** |
|
109 | + * Get the raw body string for the job. |
|
110 | + * |
|
111 | + * @return string |
|
112 | + */ |
|
113 | + public function getRawBody(); |
|
114 | 114 | } |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * @param int $delay |
24 | 24 | * @return mixed |
25 | 25 | */ |
26 | - public function release($delay = 0); |
|
26 | + public function release( $delay = 0 ); |
|
27 | 27 | |
28 | 28 | /** |
29 | 29 | * Delete the job from the queue. |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | * @param \Throwable $e |
60 | 60 | * @return void |
61 | 61 | */ |
62 | - public function failed($e); |
|
62 | + public function failed( $e ); |
|
63 | 63 | |
64 | 64 | /** |
65 | 65 | * The number of times to attempt a job. |
@@ -8,8 +8,7 @@ |
||
8 | 8 | |
9 | 9 | namespace GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Queue; |
10 | 10 | |
11 | -interface Job |
|
12 | -{ |
|
11 | +interface Job { |
|
13 | 12 | /** |
14 | 13 | * Fire the job. |
15 | 14 | * |
@@ -10,11 +10,11 @@ |
||
10 | 10 | |
11 | 11 | interface Factory |
12 | 12 | { |
13 | - /** |
|
14 | - * Resolve a queue connection instance. |
|
15 | - * |
|
16 | - * @param string $name |
|
17 | - * @return \GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Queue\Queue |
|
18 | - */ |
|
19 | - public function connection($name = null); |
|
13 | + /** |
|
14 | + * Resolve a queue connection instance. |
|
15 | + * |
|
16 | + * @param string $name |
|
17 | + * @return \GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Queue\Queue |
|
18 | + */ |
|
19 | + public function connection($name = null); |
|
20 | 20 | } |
@@ -16,5 +16,5 @@ |
||
16 | 16 | * @param string $name |
17 | 17 | * @return \GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Queue\Queue |
18 | 18 | */ |
19 | - public function connection($name = null); |
|
19 | + public function connection( $name = null ); |
|
20 | 20 | } |
@@ -8,8 +8,7 @@ |
||
8 | 8 | |
9 | 9 | namespace GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Queue; |
10 | 10 | |
11 | -interface Factory |
|
12 | -{ |
|
11 | +interface Factory { |
|
13 | 12 | /** |
14 | 13 | * Resolve a queue connection instance. |
15 | 14 | * |
@@ -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 | } |
@@ -8,8 +8,7 @@ |
||
8 | 8 | |
9 | 9 | namespace GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Queue; |
10 | 10 | |
11 | -interface QueueableEntity |
|
12 | -{ |
|
11 | +interface QueueableEntity { |
|
13 | 12 | /** |
14 | 13 | * Get the queueable identity for the entity. |
15 | 14 | * |
@@ -10,34 +10,34 @@ |
||
10 | 10 | |
11 | 11 | interface Kernel |
12 | 12 | { |
13 | - /** |
|
14 | - * Bootstrap the application for HTTP requests. |
|
15 | - * |
|
16 | - * @return void |
|
17 | - */ |
|
18 | - public function bootstrap(); |
|
13 | + /** |
|
14 | + * Bootstrap the application for HTTP requests. |
|
15 | + * |
|
16 | + * @return void |
|
17 | + */ |
|
18 | + public function bootstrap(); |
|
19 | 19 | |
20 | - /** |
|
21 | - * Handle an incoming HTTP request. |
|
22 | - * |
|
23 | - * @param \GravityKit\GravityView\Symfony\Component\HttpFoundation\Request $request |
|
24 | - * @return \GravityKit\GravityView\Symfony\Component\HttpFoundation\Response |
|
25 | - */ |
|
26 | - public function handle($request); |
|
20 | + /** |
|
21 | + * Handle an incoming HTTP request. |
|
22 | + * |
|
23 | + * @param \GravityKit\GravityView\Symfony\Component\HttpFoundation\Request $request |
|
24 | + * @return \GravityKit\GravityView\Symfony\Component\HttpFoundation\Response |
|
25 | + */ |
|
26 | + public function handle($request); |
|
27 | 27 | |
28 | - /** |
|
29 | - * Perform any final actions for the request lifecycle. |
|
30 | - * |
|
31 | - * @param \GravityKit\GravityView\Symfony\Component\HttpFoundation\Request $request |
|
32 | - * @param \GravityKit\GravityView\Symfony\Component\HttpFoundation\Response $response |
|
33 | - * @return void |
|
34 | - */ |
|
35 | - public function terminate($request, $response); |
|
28 | + /** |
|
29 | + * Perform any final actions for the request lifecycle. |
|
30 | + * |
|
31 | + * @param \GravityKit\GravityView\Symfony\Component\HttpFoundation\Request $request |
|
32 | + * @param \GravityKit\GravityView\Symfony\Component\HttpFoundation\Response $response |
|
33 | + * @return void |
|
34 | + */ |
|
35 | + public function terminate($request, $response); |
|
36 | 36 | |
37 | - /** |
|
38 | - * Get the Laravel application instance. |
|
39 | - * |
|
40 | - * @return \GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Foundation\Application |
|
41 | - */ |
|
42 | - public function getApplication(); |
|
37 | + /** |
|
38 | + * Get the Laravel application instance. |
|
39 | + * |
|
40 | + * @return \GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Foundation\Application |
|
41 | + */ |
|
42 | + public function getApplication(); |
|
43 | 43 | } |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * @param \GravityKit\GravityView\Symfony\Component\HttpFoundation\Request $request |
24 | 24 | * @return \GravityKit\GravityView\Symfony\Component\HttpFoundation\Response |
25 | 25 | */ |
26 | - public function handle($request); |
|
26 | + public function handle( $request ); |
|
27 | 27 | |
28 | 28 | /** |
29 | 29 | * Perform any final actions for the request lifecycle. |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | * @param \GravityKit\GravityView\Symfony\Component\HttpFoundation\Response $response |
33 | 33 | * @return void |
34 | 34 | */ |
35 | - public function terminate($request, $response); |
|
35 | + public function terminate( $request, $response ); |
|
36 | 36 | |
37 | 37 | /** |
38 | 38 | * Get the Laravel application instance. |
@@ -8,8 +8,7 @@ |
||
8 | 8 | |
9 | 9 | namespace GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Http; |
10 | 10 | |
11 | -interface Kernel |
|
12 | -{ |
|
11 | +interface Kernel { |
|
13 | 12 | /** |
14 | 13 | * Bootstrap the application for HTTP requests. |
15 | 14 | * |
@@ -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 | } |
@@ -8,8 +8,7 @@ |
||
8 | 8 | |
9 | 9 | namespace GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Routing; |
10 | 10 | |
11 | -interface UrlRoutable |
|
12 | -{ |
|
11 | +interface UrlRoutable { |
|
13 | 12 | /** |
14 | 13 | * Get the value of the model's route key. |
15 | 14 | * |
@@ -4,20 +4,20 @@ |
||
4 | 4 | |
5 | 5 | interface BindingRegistrar |
6 | 6 | { |
7 | - /** |
|
8 | - * Add a new route parameter binder. |
|
9 | - * |
|
10 | - * @param string $key |
|
11 | - * @param string|callable $binder |
|
12 | - * @return void |
|
13 | - */ |
|
14 | - public function bind($key, $binder); |
|
7 | + /** |
|
8 | + * Add a new route parameter binder. |
|
9 | + * |
|
10 | + * @param string $key |
|
11 | + * @param string|callable $binder |
|
12 | + * @return void |
|
13 | + */ |
|
14 | + public function bind($key, $binder); |
|
15 | 15 | |
16 | - /** |
|
17 | - * Get the binding callback for a given binding. |
|
18 | - * |
|
19 | - * @param string $key |
|
20 | - * @return \Closure |
|
21 | - */ |
|
22 | - public function getBindingCallback($key); |
|
16 | + /** |
|
17 | + * Get the binding callback for a given binding. |
|
18 | + * |
|
19 | + * @param string $key |
|
20 | + * @return \Closure |
|
21 | + */ |
|
22 | + public function getBindingCallback($key); |
|
23 | 23 | } |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | * @param string|callable $binder |
12 | 12 | * @return void |
13 | 13 | */ |
14 | - public function bind($key, $binder); |
|
14 | + public function bind( $key, $binder ); |
|
15 | 15 | |
16 | 16 | /** |
17 | 17 | * Get the binding callback for a given binding. |
@@ -19,5 +19,5 @@ discard block |
||
19 | 19 | * @param string $key |
20 | 20 | * @return \Closure |
21 | 21 | */ |
22 | - public function getBindingCallback($key); |
|
22 | + public function getBindingCallback( $key ); |
|
23 | 23 | } |
@@ -8,8 +8,7 @@ |
||
8 | 8 | |
9 | 9 | namespace GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Routing; |
10 | 10 | |
11 | -interface BindingRegistrar |
|
12 | -{ |
|
11 | +interface BindingRegistrar { |
|
13 | 12 | /** |
14 | 13 | * Add a new route parameter binder. |
15 | 14 | * |
@@ -10,123 +10,123 @@ |
||
10 | 10 | |
11 | 11 | interface ResponseFactory |
12 | 12 | { |
13 | - /** |
|
14 | - * Return a new response from the application. |
|
15 | - * |
|
16 | - * @param string $content |
|
17 | - * @param int $status |
|
18 | - * @param array $headers |
|
19 | - * @return \Illuminate\Http\Response |
|
20 | - */ |
|
21 | - public function make($content = '', $status = 200, array $headers = []); |
|
13 | + /** |
|
14 | + * Return a new response from the application. |
|
15 | + * |
|
16 | + * @param string $content |
|
17 | + * @param int $status |
|
18 | + * @param array $headers |
|
19 | + * @return \Illuminate\Http\Response |
|
20 | + */ |
|
21 | + public function make($content = '', $status = 200, array $headers = []); |
|
22 | 22 | |
23 | - /** |
|
24 | - * Return a new view response from the application. |
|
25 | - * |
|
26 | - * @param string $view |
|
27 | - * @param array $data |
|
28 | - * @param int $status |
|
29 | - * @param array $headers |
|
30 | - * @return \Illuminate\Http\Response |
|
31 | - */ |
|
32 | - public function view($view, $data = [], $status = 200, array $headers = []); |
|
23 | + /** |
|
24 | + * Return a new view response from the application. |
|
25 | + * |
|
26 | + * @param string $view |
|
27 | + * @param array $data |
|
28 | + * @param int $status |
|
29 | + * @param array $headers |
|
30 | + * @return \Illuminate\Http\Response |
|
31 | + */ |
|
32 | + public function view($view, $data = [], $status = 200, array $headers = []); |
|
33 | 33 | |
34 | - /** |
|
35 | - * Return a new JSON response from the application. |
|
36 | - * |
|
37 | - * @param string|array $data |
|
38 | - * @param int $status |
|
39 | - * @param array $headers |
|
40 | - * @param int $options |
|
41 | - * @return \Illuminate\Http\JsonResponse |
|
42 | - */ |
|
43 | - public function json($data = [], $status = 200, array $headers = [], $options = 0); |
|
34 | + /** |
|
35 | + * Return a new JSON response from the application. |
|
36 | + * |
|
37 | + * @param string|array $data |
|
38 | + * @param int $status |
|
39 | + * @param array $headers |
|
40 | + * @param int $options |
|
41 | + * @return \Illuminate\Http\JsonResponse |
|
42 | + */ |
|
43 | + public function json($data = [], $status = 200, array $headers = [], $options = 0); |
|
44 | 44 | |
45 | - /** |
|
46 | - * Return a new JSONP response from the application. |
|
47 | - * |
|
48 | - * @param string $callback |
|
49 | - * @param string|array $data |
|
50 | - * @param int $status |
|
51 | - * @param array $headers |
|
52 | - * @param int $options |
|
53 | - * @return \Illuminate\Http\JsonResponse |
|
54 | - */ |
|
55 | - public function jsonp($callback, $data = [], $status = 200, array $headers = [], $options = 0); |
|
45 | + /** |
|
46 | + * Return a new JSONP response from the application. |
|
47 | + * |
|
48 | + * @param string $callback |
|
49 | + * @param string|array $data |
|
50 | + * @param int $status |
|
51 | + * @param array $headers |
|
52 | + * @param int $options |
|
53 | + * @return \Illuminate\Http\JsonResponse |
|
54 | + */ |
|
55 | + public function jsonp($callback, $data = [], $status = 200, array $headers = [], $options = 0); |
|
56 | 56 | |
57 | - /** |
|
58 | - * Return a new streamed response from the application. |
|
59 | - * |
|
60 | - * @param \Closure $callback |
|
61 | - * @param int $status |
|
62 | - * @param array $headers |
|
63 | - * @return \GravityKit\GravityView\Symfony\Component\HttpFoundation\StreamedResponse |
|
64 | - */ |
|
65 | - public function stream($callback, $status = 200, array $headers = []); |
|
57 | + /** |
|
58 | + * Return a new streamed response from the application. |
|
59 | + * |
|
60 | + * @param \Closure $callback |
|
61 | + * @param int $status |
|
62 | + * @param array $headers |
|
63 | + * @return \GravityKit\GravityView\Symfony\Component\HttpFoundation\StreamedResponse |
|
64 | + */ |
|
65 | + public function stream($callback, $status = 200, array $headers = []); |
|
66 | 66 | |
67 | - /** |
|
68 | - * Create a new file download response. |
|
69 | - * |
|
70 | - * @param \SplFileInfo|string $file |
|
71 | - * @param string $name |
|
72 | - * @param array $headers |
|
73 | - * @param string|null $disposition |
|
74 | - * @return \GravityKit\GravityView\Symfony\Component\HttpFoundation\BinaryFileResponse |
|
75 | - */ |
|
76 | - public function download($file, $name = null, array $headers = [], $disposition = 'attachment'); |
|
67 | + /** |
|
68 | + * Create a new file download response. |
|
69 | + * |
|
70 | + * @param \SplFileInfo|string $file |
|
71 | + * @param string $name |
|
72 | + * @param array $headers |
|
73 | + * @param string|null $disposition |
|
74 | + * @return \GravityKit\GravityView\Symfony\Component\HttpFoundation\BinaryFileResponse |
|
75 | + */ |
|
76 | + public function download($file, $name = null, array $headers = [], $disposition = 'attachment'); |
|
77 | 77 | |
78 | - /** |
|
79 | - * Create a new redirect response to the given path. |
|
80 | - * |
|
81 | - * @param string $path |
|
82 | - * @param int $status |
|
83 | - * @param array $headers |
|
84 | - * @param bool|null $secure |
|
85 | - * @return \Illuminate\Http\RedirectResponse |
|
86 | - */ |
|
87 | - public function redirectTo($path, $status = 302, $headers = [], $secure = null); |
|
78 | + /** |
|
79 | + * Create a new redirect response to the given path. |
|
80 | + * |
|
81 | + * @param string $path |
|
82 | + * @param int $status |
|
83 | + * @param array $headers |
|
84 | + * @param bool|null $secure |
|
85 | + * @return \Illuminate\Http\RedirectResponse |
|
86 | + */ |
|
87 | + public function redirectTo($path, $status = 302, $headers = [], $secure = null); |
|
88 | 88 | |
89 | - /** |
|
90 | - * Create a new redirect response to a named route. |
|
91 | - * |
|
92 | - * @param string $route |
|
93 | - * @param array $parameters |
|
94 | - * @param int $status |
|
95 | - * @param array $headers |
|
96 | - * @return \Illuminate\Http\RedirectResponse |
|
97 | - */ |
|
98 | - public function redirectToRoute($route, $parameters = [], $status = 302, $headers = []); |
|
89 | + /** |
|
90 | + * Create a new redirect response to a named route. |
|
91 | + * |
|
92 | + * @param string $route |
|
93 | + * @param array $parameters |
|
94 | + * @param int $status |
|
95 | + * @param array $headers |
|
96 | + * @return \Illuminate\Http\RedirectResponse |
|
97 | + */ |
|
98 | + public function redirectToRoute($route, $parameters = [], $status = 302, $headers = []); |
|
99 | 99 | |
100 | - /** |
|
101 | - * Create a new redirect response to a controller action. |
|
102 | - * |
|
103 | - * @param string $action |
|
104 | - * @param array $parameters |
|
105 | - * @param int $status |
|
106 | - * @param array $headers |
|
107 | - * @return \Illuminate\Http\RedirectResponse |
|
108 | - */ |
|
109 | - public function redirectToAction($action, $parameters = [], $status = 302, $headers = []); |
|
100 | + /** |
|
101 | + * Create a new redirect response to a controller action. |
|
102 | + * |
|
103 | + * @param string $action |
|
104 | + * @param array $parameters |
|
105 | + * @param int $status |
|
106 | + * @param array $headers |
|
107 | + * @return \Illuminate\Http\RedirectResponse |
|
108 | + */ |
|
109 | + public function redirectToAction($action, $parameters = [], $status = 302, $headers = []); |
|
110 | 110 | |
111 | - /** |
|
112 | - * Create a new redirect response, while putting the current URL in the session. |
|
113 | - * |
|
114 | - * @param string $path |
|
115 | - * @param int $status |
|
116 | - * @param array $headers |
|
117 | - * @param bool|null $secure |
|
118 | - * @return \Illuminate\Http\RedirectResponse |
|
119 | - */ |
|
120 | - public function redirectGuest($path, $status = 302, $headers = [], $secure = null); |
|
111 | + /** |
|
112 | + * Create a new redirect response, while putting the current URL in the session. |
|
113 | + * |
|
114 | + * @param string $path |
|
115 | + * @param int $status |
|
116 | + * @param array $headers |
|
117 | + * @param bool|null $secure |
|
118 | + * @return \Illuminate\Http\RedirectResponse |
|
119 | + */ |
|
120 | + public function redirectGuest($path, $status = 302, $headers = [], $secure = null); |
|
121 | 121 | |
122 | - /** |
|
123 | - * Create a new redirect response to the previously intended location. |
|
124 | - * |
|
125 | - * @param string $default |
|
126 | - * @param int $status |
|
127 | - * @param array $headers |
|
128 | - * @param bool|null $secure |
|
129 | - * @return \Illuminate\Http\RedirectResponse |
|
130 | - */ |
|
131 | - public function redirectToIntended($default = '/', $status = 302, $headers = [], $secure = null); |
|
122 | + /** |
|
123 | + * Create a new redirect response to the previously intended location. |
|
124 | + * |
|
125 | + * @param string $default |
|
126 | + * @param int $status |
|
127 | + * @param array $headers |
|
128 | + * @param bool|null $secure |
|
129 | + * @return \Illuminate\Http\RedirectResponse |
|
130 | + */ |
|
131 | + public function redirectToIntended($default = '/', $status = 302, $headers = [], $secure = null); |
|
132 | 132 | } |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | * @param array $headers |
19 | 19 | * @return \Illuminate\Http\Response |
20 | 20 | */ |
21 | - public function make($content = '', $status = 200, array $headers = []); |
|
21 | + public function make( $content = '', $status = 200, array $headers = [ ] ); |
|
22 | 22 | |
23 | 23 | /** |
24 | 24 | * Return a new view response from the application. |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * @param array $headers |
30 | 30 | * @return \Illuminate\Http\Response |
31 | 31 | */ |
32 | - public function view($view, $data = [], $status = 200, array $headers = []); |
|
32 | + public function view( $view, $data = [ ], $status = 200, array $headers = [ ] ); |
|
33 | 33 | |
34 | 34 | /** |
35 | 35 | * Return a new JSON response from the application. |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | * @param int $options |
41 | 41 | * @return \Illuminate\Http\JsonResponse |
42 | 42 | */ |
43 | - public function json($data = [], $status = 200, array $headers = [], $options = 0); |
|
43 | + public function json( $data = [ ], $status = 200, array $headers = [ ], $options = 0 ); |
|
44 | 44 | |
45 | 45 | /** |
46 | 46 | * Return a new JSONP response from the application. |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * @param int $options |
53 | 53 | * @return \Illuminate\Http\JsonResponse |
54 | 54 | */ |
55 | - public function jsonp($callback, $data = [], $status = 200, array $headers = [], $options = 0); |
|
55 | + public function jsonp( $callback, $data = [ ], $status = 200, array $headers = [ ], $options = 0 ); |
|
56 | 56 | |
57 | 57 | /** |
58 | 58 | * Return a new streamed response from the application. |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * @param array $headers |
63 | 63 | * @return \GravityKit\GravityView\Symfony\Component\HttpFoundation\StreamedResponse |
64 | 64 | */ |
65 | - public function stream($callback, $status = 200, array $headers = []); |
|
65 | + public function stream( $callback, $status = 200, array $headers = [ ] ); |
|
66 | 66 | |
67 | 67 | /** |
68 | 68 | * Create a new file download response. |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | * @param string|null $disposition |
74 | 74 | * @return \GravityKit\GravityView\Symfony\Component\HttpFoundation\BinaryFileResponse |
75 | 75 | */ |
76 | - public function download($file, $name = null, array $headers = [], $disposition = 'attachment'); |
|
76 | + public function download( $file, $name = null, array $headers = [ ], $disposition = 'attachment' ); |
|
77 | 77 | |
78 | 78 | /** |
79 | 79 | * Create a new redirect response to the given path. |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | * @param bool|null $secure |
85 | 85 | * @return \Illuminate\Http\RedirectResponse |
86 | 86 | */ |
87 | - public function redirectTo($path, $status = 302, $headers = [], $secure = null); |
|
87 | + public function redirectTo( $path, $status = 302, $headers = [ ], $secure = null ); |
|
88 | 88 | |
89 | 89 | /** |
90 | 90 | * Create a new redirect response to a named route. |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | * @param array $headers |
96 | 96 | * @return \Illuminate\Http\RedirectResponse |
97 | 97 | */ |
98 | - public function redirectToRoute($route, $parameters = [], $status = 302, $headers = []); |
|
98 | + public function redirectToRoute( $route, $parameters = [ ], $status = 302, $headers = [ ] ); |
|
99 | 99 | |
100 | 100 | /** |
101 | 101 | * Create a new redirect response to a controller action. |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | * @param array $headers |
107 | 107 | * @return \Illuminate\Http\RedirectResponse |
108 | 108 | */ |
109 | - public function redirectToAction($action, $parameters = [], $status = 302, $headers = []); |
|
109 | + public function redirectToAction( $action, $parameters = [ ], $status = 302, $headers = [ ] ); |
|
110 | 110 | |
111 | 111 | /** |
112 | 112 | * Create a new redirect response, while putting the current URL in the session. |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | * @param bool|null $secure |
118 | 118 | * @return \Illuminate\Http\RedirectResponse |
119 | 119 | */ |
120 | - public function redirectGuest($path, $status = 302, $headers = [], $secure = null); |
|
120 | + public function redirectGuest( $path, $status = 302, $headers = [ ], $secure = null ); |
|
121 | 121 | |
122 | 122 | /** |
123 | 123 | * Create a new redirect response to the previously intended location. |
@@ -128,5 +128,5 @@ discard block |
||
128 | 128 | * @param bool|null $secure |
129 | 129 | * @return \Illuminate\Http\RedirectResponse |
130 | 130 | */ |
131 | - public function redirectToIntended($default = '/', $status = 302, $headers = [], $secure = null); |
|
131 | + public function redirectToIntended( $default = '/', $status = 302, $headers = [ ], $secure = null ); |
|
132 | 132 | } |
@@ -8,8 +8,7 @@ |
||
8 | 8 | |
9 | 9 | namespace GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Routing; |
10 | 10 | |
11 | -interface ResponseFactory |
|
12 | -{ |
|
11 | +interface ResponseFactory { |
|
13 | 12 | /** |
14 | 13 | * Return a new response from the application. |
15 | 14 | * |