Passed
Push — 0.8.x ( 348486...676cd5 )
by Alexander
09:48 queued 06:44
created
src/components/Core/Http/Exceptions/ServiceUnavailableHttpException.php 1 patch
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -33,42 +33,42 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/components/Core/Http/Exceptions/UnauthorizedHttpException.php 1 patch
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -30,38 +30,38 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/components/Core/Http/Exceptions/UnsupportedMediaTypeHttpException.php 1 patch
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -30,35 +30,35 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/components/Core/Http/Exceptions/LengthRequiredHttpException.php 1 patch
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -30,35 +30,35 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/components/Core/Http/Exceptions/AccessDeniedHttpException.php 1 patch
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -30,35 +30,35 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/components/Core/Http/Exceptions/NotFoundHttpException.php 1 patch
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -29,35 +29,35 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/components/Core/Http/Exceptions/ServerErrorHttpException.php 1 patch
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -29,35 +29,35 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/components/Core/Http/Exceptions/TooManyRequestsHttpException.php 1 patch
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -29,41 +29,41 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/components/Core/Http/Exceptions/UnprocessableEntityHttpException.php 1 patch
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -30,35 +30,35 @@
 block discarded – undo
30 30
  */
31 31
 class UnprocessableEntityHttpException extends HttpException
32 32
 {
33
-	/**
34
-	 * Get the HTTP status code.
35
-	 * 
36
-	 * @var int $code
37
-	 */
38
-	protected $code = 422;
33
+    /**
34
+     * Get the HTTP status code.
35
+     * 
36
+     * @var int $code
37
+     */
38
+    protected $code = 422;
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
Please login to merge, or discard this patch.