@@ -434,7 +434,7 @@ discard block |
||
434 | 434 | public function storagePath($path = ''): string |
435 | 435 | { |
436 | 436 | return ($this->storagePath ?: $this->basePath.DIRECTORY_SEPARATOR.'storage'). |
437 | - ($path != '' ? DIRECTORY_SEPARATOR.$path : ''); |
|
437 | + ($path != '' ? DIRECTORY_SEPARATOR.$path : ''); |
|
438 | 438 | } |
439 | 439 | |
440 | 440 | /** |
@@ -1177,16 +1177,16 @@ discard block |
||
1177 | 1177 | } |
1178 | 1178 | |
1179 | 1179 | /** |
1180 | - * Shutdown the application. |
|
1181 | - * |
|
1182 | - * @return void |
|
1183 | - */ |
|
1184 | - public function shutdown(): void |
|
1185 | - { |
|
1186 | - foreach ($this->shutdownCallbacks as $shutdown) { |
|
1180 | + * Shutdown the application. |
|
1181 | + * |
|
1182 | + * @return void |
|
1183 | + */ |
|
1184 | + public function shutdown(): void |
|
1185 | + { |
|
1186 | + foreach ($this->shutdownCallbacks as $shutdown) { |
|
1187 | 1187 | $this->call($shutdown); |
1188 | 1188 | } |
1189 | - } |
|
1189 | + } |
|
1190 | 1190 | |
1191 | 1191 | /** |
1192 | 1192 | * Register the core class aliases in the container. |
@@ -271,7 +271,7 @@ discard block |
||
271 | 271 | $this->instance('path.resources', $this->resourcePath()); |
272 | 272 | $this->instance('path.bootstrap', $this->bootstrapPath()); |
273 | 273 | |
274 | - $this->setLangPath(value(function () { |
|
274 | + $this->setLangPath(value(function() { |
|
275 | 275 | if (is_dir($directory = $this->resourcePath('lang'))) { |
276 | 276 | return $directory; |
277 | 277 | } |
@@ -786,7 +786,7 @@ discard block |
||
786 | 786 | { |
787 | 787 | $name = is_string($provider) ? $provider : getClass($provider, true); |
788 | 788 | |
789 | - return Arr::where($this->serviceProviders, function ($value) use ($name) { |
|
789 | + return Arr::where($this->serviceProviders, function($value) use ($name) { |
|
790 | 790 | return $value instanceof $name; |
791 | 791 | }); |
792 | 792 | } |
@@ -33,42 +33,42 @@ |
||
33 | 33 | */ |
34 | 34 | class ServiceUnavailableHttpException extends HttpException |
35 | 35 | { |
36 | - /** |
|
37 | - * Get the HTTP status code. |
|
38 | - * |
|
39 | - * @var int $code |
|
40 | - */ |
|
41 | - protected $code = 503; |
|
36 | + /** |
|
37 | + * Get the HTTP status code. |
|
38 | + * |
|
39 | + * @var int $code |
|
40 | + */ |
|
41 | + protected $code = 503; |
|
42 | 42 | |
43 | - /** |
|
44 | - * Initialize constructor. |
|
45 | - * |
|
46 | - * @param int|string|null $retryAfter The number of seconds or HTTP-date after |
|
47 | - * which the request may be retried |
|
48 | - * @param string|null $message |
|
49 | - * @param \Throwable|null $previous |
|
50 | - * @param int $code |
|
51 | - * @param array $headers |
|
52 | - * |
|
53 | - * @return void |
|
54 | - */ |
|
55 | - public function __construct( |
|
56 | - $retryAfter = null, |
|
57 | - string $message = null, |
|
58 | - Throwable $previous = null, |
|
59 | - ?int $code = 0, |
|
60 | - array $headers = [] |
|
61 | - ) { |
|
62 | - if ($retryAfter) { |
|
63 | - $headers['Retry-After'] = $retryAfter; |
|
64 | - } |
|
43 | + /** |
|
44 | + * Initialize constructor. |
|
45 | + * |
|
46 | + * @param int|string|null $retryAfter The number of seconds or HTTP-date after |
|
47 | + * which the request may be retried |
|
48 | + * @param string|null $message |
|
49 | + * @param \Throwable|null $previous |
|
50 | + * @param int $code |
|
51 | + * @param array $headers |
|
52 | + * |
|
53 | + * @return void |
|
54 | + */ |
|
55 | + public function __construct( |
|
56 | + $retryAfter = null, |
|
57 | + string $message = null, |
|
58 | + Throwable $previous = null, |
|
59 | + ?int $code = 0, |
|
60 | + array $headers = [] |
|
61 | + ) { |
|
62 | + if ($retryAfter) { |
|
63 | + $headers['Retry-After'] = $retryAfter; |
|
64 | + } |
|
65 | 65 | |
66 | - parent::__construct( |
|
67 | - $this->code, |
|
68 | - $message, |
|
69 | - $previous, |
|
70 | - $headers, |
|
71 | - $code |
|
72 | - ); |
|
73 | - } |
|
66 | + parent::__construct( |
|
67 | + $this->code, |
|
68 | + $message, |
|
69 | + $previous, |
|
70 | + $headers, |
|
71 | + $code |
|
72 | + ); |
|
73 | + } |
|
74 | 74 | } |
75 | 75 | \ No newline at end of file |
@@ -30,38 +30,38 @@ |
||
30 | 30 | */ |
31 | 31 | class UnauthorizedHttpException extends HttpException |
32 | 32 | { |
33 | - /** |
|
34 | - * Get the HTTP status code. |
|
35 | - * |
|
36 | - * @var int $code |
|
37 | - */ |
|
38 | - protected $code = 401; |
|
33 | + /** |
|
34 | + * Get the HTTP status code. |
|
35 | + * |
|
36 | + * @var int $code |
|
37 | + */ |
|
38 | + protected $code = 401; |
|
39 | 39 | |
40 | - /** |
|
41 | - * Initialize constructor. |
|
42 | - * |
|
43 | - * @param string|null $message |
|
44 | - * @param \Throwable|null $previous |
|
45 | - * @param int $code |
|
46 | - * @param array $headers |
|
47 | - * |
|
48 | - * @return void |
|
49 | - */ |
|
50 | - public function __construct( |
|
51 | - string $challenge, |
|
52 | - string $message = null, |
|
53 | - Throwable $previous = null, |
|
54 | - ?int $code = 0, |
|
55 | - array $headers = [] |
|
56 | - ) { |
|
57 | - $headers['WWW-Authenticate'] = $challenge; |
|
40 | + /** |
|
41 | + * Initialize constructor. |
|
42 | + * |
|
43 | + * @param string|null $message |
|
44 | + * @param \Throwable|null $previous |
|
45 | + * @param int $code |
|
46 | + * @param array $headers |
|
47 | + * |
|
48 | + * @return void |
|
49 | + */ |
|
50 | + public function __construct( |
|
51 | + string $challenge, |
|
52 | + string $message = null, |
|
53 | + Throwable $previous = null, |
|
54 | + ?int $code = 0, |
|
55 | + array $headers = [] |
|
56 | + ) { |
|
57 | + $headers['WWW-Authenticate'] = $challenge; |
|
58 | 58 | |
59 | 59 | parent::__construct( |
60 | - $this->code, |
|
61 | - $message, |
|
62 | - $previous, |
|
63 | - $headers, |
|
64 | - $code |
|
65 | - ); |
|
66 | - } |
|
60 | + $this->code, |
|
61 | + $message, |
|
62 | + $previous, |
|
63 | + $headers, |
|
64 | + $code |
|
65 | + ); |
|
66 | + } |
|
67 | 67 | } |
68 | 68 | \ No newline at end of file |
@@ -30,35 +30,35 @@ |
||
30 | 30 | */ |
31 | 31 | class UnsupportedMediaTypeHttpException extends HttpException |
32 | 32 | { |
33 | - /** |
|
34 | - * Get the HTTP status code. |
|
35 | - * |
|
36 | - * @var int $code |
|
37 | - */ |
|
38 | - protected $code = 415; |
|
33 | + /** |
|
34 | + * Get the HTTP status code. |
|
35 | + * |
|
36 | + * @var int $code |
|
37 | + */ |
|
38 | + protected $code = 415; |
|
39 | 39 | |
40 | - /** |
|
41 | - * Initialize constructor. |
|
42 | - * |
|
43 | - * @param string|null $message |
|
44 | - * @param \Throwable|null $previous |
|
45 | - * @param int $code |
|
46 | - * @param array $headers |
|
47 | - * |
|
48 | - * @return void |
|
49 | - */ |
|
50 | - public function __construct( |
|
51 | - string $message = null, |
|
52 | - Throwable $previous = null, |
|
53 | - int $code = 0, |
|
54 | - array $headers = [] |
|
55 | - ) { |
|
56 | - parent::__construct( |
|
57 | - $this->code, |
|
58 | - $message, |
|
59 | - $previous, |
|
60 | - $headers, |
|
61 | - $code |
|
62 | - ); |
|
63 | - } |
|
40 | + /** |
|
41 | + * Initialize constructor. |
|
42 | + * |
|
43 | + * @param string|null $message |
|
44 | + * @param \Throwable|null $previous |
|
45 | + * @param int $code |
|
46 | + * @param array $headers |
|
47 | + * |
|
48 | + * @return void |
|
49 | + */ |
|
50 | + public function __construct( |
|
51 | + string $message = null, |
|
52 | + Throwable $previous = null, |
|
53 | + int $code = 0, |
|
54 | + array $headers = [] |
|
55 | + ) { |
|
56 | + parent::__construct( |
|
57 | + $this->code, |
|
58 | + $message, |
|
59 | + $previous, |
|
60 | + $headers, |
|
61 | + $code |
|
62 | + ); |
|
63 | + } |
|
64 | 64 | } |
65 | 65 | \ No newline at end of file |
@@ -30,35 +30,35 @@ |
||
30 | 30 | */ |
31 | 31 | class LengthRequiredHttpException extends HttpException |
32 | 32 | { |
33 | - /** |
|
34 | - * Get the HTTP status code. |
|
35 | - * |
|
36 | - * @var int $code |
|
37 | - */ |
|
38 | - protected $code = 411; |
|
33 | + /** |
|
34 | + * Get the HTTP status code. |
|
35 | + * |
|
36 | + * @var int $code |
|
37 | + */ |
|
38 | + protected $code = 411; |
|
39 | 39 | |
40 | - /** |
|
41 | - * Initialize constructor. |
|
42 | - * |
|
43 | - * @param string|null $message |
|
44 | - * @param \Throwable|null $previous |
|
45 | - * @param int $code |
|
46 | - * @param array $headers |
|
47 | - * |
|
48 | - * @return void |
|
49 | - */ |
|
50 | - public function __construct( |
|
51 | - string $message = null, |
|
52 | - Throwable $previous = null, |
|
53 | - int $code = 0, |
|
54 | - array $headers = [] |
|
55 | - ) { |
|
56 | - parent::__construct( |
|
57 | - $this->code, |
|
58 | - $message, |
|
59 | - $previous, |
|
60 | - $headers, |
|
61 | - $code |
|
62 | - ); |
|
63 | - } |
|
40 | + /** |
|
41 | + * Initialize constructor. |
|
42 | + * |
|
43 | + * @param string|null $message |
|
44 | + * @param \Throwable|null $previous |
|
45 | + * @param int $code |
|
46 | + * @param array $headers |
|
47 | + * |
|
48 | + * @return void |
|
49 | + */ |
|
50 | + public function __construct( |
|
51 | + string $message = null, |
|
52 | + Throwable $previous = null, |
|
53 | + int $code = 0, |
|
54 | + array $headers = [] |
|
55 | + ) { |
|
56 | + parent::__construct( |
|
57 | + $this->code, |
|
58 | + $message, |
|
59 | + $previous, |
|
60 | + $headers, |
|
61 | + $code |
|
62 | + ); |
|
63 | + } |
|
64 | 64 | } |
65 | 65 | \ No newline at end of file |
@@ -30,35 +30,35 @@ |
||
30 | 30 | */ |
31 | 31 | class AccessDeniedHttpException extends HttpException |
32 | 32 | { |
33 | - /** |
|
34 | - * Get the HTTP status code. |
|
35 | - * |
|
36 | - * @var int $code |
|
37 | - */ |
|
38 | - protected $code = 403; |
|
33 | + /** |
|
34 | + * Get the HTTP status code. |
|
35 | + * |
|
36 | + * @var int $code |
|
37 | + */ |
|
38 | + protected $code = 403; |
|
39 | 39 | |
40 | - /** |
|
41 | - * Initialize constructor. |
|
42 | - * |
|
43 | - * @param string|null $message |
|
44 | - * @param \Throwable|null $previous |
|
45 | - * @param int $code |
|
46 | - * @param array $headers |
|
47 | - * |
|
48 | - * @return void |
|
49 | - */ |
|
50 | - public function __construct( |
|
51 | - string $message = null, |
|
52 | - Throwable $previous = null, |
|
53 | - int $code = 0, |
|
54 | - array $headers = [] |
|
55 | - ) { |
|
40 | + /** |
|
41 | + * Initialize constructor. |
|
42 | + * |
|
43 | + * @param string|null $message |
|
44 | + * @param \Throwable|null $previous |
|
45 | + * @param int $code |
|
46 | + * @param array $headers |
|
47 | + * |
|
48 | + * @return void |
|
49 | + */ |
|
50 | + public function __construct( |
|
51 | + string $message = null, |
|
52 | + Throwable $previous = null, |
|
53 | + int $code = 0, |
|
54 | + array $headers = [] |
|
55 | + ) { |
|
56 | 56 | parent::__construct( |
57 | - $this->code, |
|
58 | - $message, |
|
59 | - $previous, |
|
60 | - $headers, |
|
61 | - $code |
|
62 | - ); |
|
63 | - } |
|
57 | + $this->code, |
|
58 | + $message, |
|
59 | + $previous, |
|
60 | + $headers, |
|
61 | + $code |
|
62 | + ); |
|
63 | + } |
|
64 | 64 | } |
65 | 65 | \ No newline at end of file |
@@ -29,35 +29,35 @@ |
||
29 | 29 | */ |
30 | 30 | class NotFoundHttpException extends HttpException |
31 | 31 | { |
32 | - /** |
|
33 | - * Get the HTTP status code. |
|
34 | - * |
|
35 | - * @var int $code |
|
36 | - */ |
|
37 | - protected $code = 404; |
|
32 | + /** |
|
33 | + * Get the HTTP status code. |
|
34 | + * |
|
35 | + * @var int $code |
|
36 | + */ |
|
37 | + protected $code = 404; |
|
38 | 38 | |
39 | - /** |
|
40 | - * Initialize constructor. |
|
41 | - * |
|
42 | - * @param string|null $message |
|
43 | - * @param \Throwable|null $previous |
|
44 | - * @param int $code |
|
45 | - * @param array $headers |
|
46 | - * |
|
47 | - * @return void |
|
48 | - */ |
|
49 | - public function __construct( |
|
50 | - ?string $message = null, |
|
51 | - ?Throwable $previous = null, |
|
52 | - int $code = 0, |
|
53 | - array $headers = [] |
|
54 | - ) { |
|
39 | + /** |
|
40 | + * Initialize constructor. |
|
41 | + * |
|
42 | + * @param string|null $message |
|
43 | + * @param \Throwable|null $previous |
|
44 | + * @param int $code |
|
45 | + * @param array $headers |
|
46 | + * |
|
47 | + * @return void |
|
48 | + */ |
|
49 | + public function __construct( |
|
50 | + ?string $message = null, |
|
51 | + ?Throwable $previous = null, |
|
52 | + int $code = 0, |
|
53 | + array $headers = [] |
|
54 | + ) { |
|
55 | 55 | parent::__construct( |
56 | - $this->code, |
|
57 | - $message, |
|
58 | - $previous, |
|
59 | - $headers, |
|
60 | - $code |
|
61 | - ); |
|
62 | - } |
|
56 | + $this->code, |
|
57 | + $message, |
|
58 | + $previous, |
|
59 | + $headers, |
|
60 | + $code |
|
61 | + ); |
|
62 | + } |
|
63 | 63 | } |
64 | 64 | \ No newline at end of file |
@@ -29,35 +29,35 @@ |
||
29 | 29 | */ |
30 | 30 | class ServerErrorHttpException extends HttpException |
31 | 31 | { |
32 | - /** |
|
33 | - * Get the HTTP status code. |
|
34 | - * |
|
35 | - * @var int $code |
|
36 | - */ |
|
37 | - protected $code = 500; |
|
32 | + /** |
|
33 | + * Get the HTTP status code. |
|
34 | + * |
|
35 | + * @var int $code |
|
36 | + */ |
|
37 | + protected $code = 500; |
|
38 | 38 | |
39 | - /** |
|
40 | - * Initialize constructor. |
|
41 | - * |
|
42 | - * @param string|null $message |
|
43 | - * @param \Throwable|null $previous |
|
44 | - * @param int $code |
|
45 | - * @param array $headers |
|
46 | - * |
|
47 | - * @return void |
|
48 | - */ |
|
49 | - public function __construct( |
|
50 | - string $message = null, |
|
51 | - Throwable $previous = null, |
|
52 | - int $code = 0, |
|
53 | - array $headers = [] |
|
54 | - ) { |
|
39 | + /** |
|
40 | + * Initialize constructor. |
|
41 | + * |
|
42 | + * @param string|null $message |
|
43 | + * @param \Throwable|null $previous |
|
44 | + * @param int $code |
|
45 | + * @param array $headers |
|
46 | + * |
|
47 | + * @return void |
|
48 | + */ |
|
49 | + public function __construct( |
|
50 | + string $message = null, |
|
51 | + Throwable $previous = null, |
|
52 | + int $code = 0, |
|
53 | + array $headers = [] |
|
54 | + ) { |
|
55 | 55 | parent::__construct( |
56 | - $this->code, |
|
57 | - $message, |
|
58 | - $previous, |
|
59 | - $headers, |
|
60 | - $code |
|
61 | - ); |
|
62 | - } |
|
56 | + $this->code, |
|
57 | + $message, |
|
58 | + $previous, |
|
59 | + $headers, |
|
60 | + $code |
|
61 | + ); |
|
62 | + } |
|
63 | 63 | } |
64 | 64 | \ No newline at end of file |
@@ -29,41 +29,41 @@ |
||
29 | 29 | */ |
30 | 30 | class TooManyRequestsHttpException extends HttpException |
31 | 31 | { |
32 | - /** |
|
33 | - * Get the HTTP status code. |
|
34 | - * |
|
35 | - * @var int $code |
|
36 | - */ |
|
37 | - protected $code = 429; |
|
32 | + /** |
|
33 | + * Get the HTTP status code. |
|
34 | + * |
|
35 | + * @var int $code |
|
36 | + */ |
|
37 | + protected $code = 429; |
|
38 | 38 | |
39 | - /** |
|
40 | - * Initialize constructor. |
|
41 | - * |
|
42 | - * @param int|string|null $retryAfter The number of seconds or HTTP-date after |
|
43 | - * which the request may be retried |
|
44 | - * @param string|null $message |
|
45 | - * @param \Throwable|null $previous |
|
46 | - * @param array $headers |
|
47 | - * |
|
48 | - * @return void |
|
49 | - */ |
|
50 | - public function __construct( |
|
51 | - $retryAfter = null, |
|
52 | - string $message = null, |
|
53 | - Throwable $previous = null, |
|
54 | - ?int $code = 0, |
|
55 | - array $headers = [] |
|
56 | - ) { |
|
57 | - if ($retryAfter) { |
|
58 | - $headers['Retry-After'] = $retryAfter; |
|
59 | - } |
|
39 | + /** |
|
40 | + * Initialize constructor. |
|
41 | + * |
|
42 | + * @param int|string|null $retryAfter The number of seconds or HTTP-date after |
|
43 | + * which the request may be retried |
|
44 | + * @param string|null $message |
|
45 | + * @param \Throwable|null $previous |
|
46 | + * @param array $headers |
|
47 | + * |
|
48 | + * @return void |
|
49 | + */ |
|
50 | + public function __construct( |
|
51 | + $retryAfter = null, |
|
52 | + string $message = null, |
|
53 | + Throwable $previous = null, |
|
54 | + ?int $code = 0, |
|
55 | + array $headers = [] |
|
56 | + ) { |
|
57 | + if ($retryAfter) { |
|
58 | + $headers['Retry-After'] = $retryAfter; |
|
59 | + } |
|
60 | 60 | |
61 | - parent::__construct( |
|
62 | - $this->code, |
|
63 | - $message, |
|
64 | - $previous, |
|
65 | - $headers, |
|
66 | - $code |
|
67 | - ); |
|
68 | - } |
|
61 | + parent::__construct( |
|
62 | + $this->code, |
|
63 | + $message, |
|
64 | + $previous, |
|
65 | + $headers, |
|
66 | + $code |
|
67 | + ); |
|
68 | + } |
|
69 | 69 | } |
70 | 70 | \ No newline at end of file |