Passed
Push — 0.8.x ( 68625b...156d51 )
by Alexander
06:01 queued 03:01
created
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.
src/components/Core/Http/Exceptions/PreconditionRequiredHttpException.php 1 patch
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -32,35 +32,35 @@
 block discarded – undo
32 32
  */
33 33
 class PreconditionRequiredHttpException extends HttpException
34 34
 {
35
-	/**
36
-	 * Get the HTTP status code.
37
-	 * 
38
-	 * @var int $code
39
-	 */
40
-	protected $code = 428;
35
+    /**
36
+     * Get the HTTP status code.
37
+     * 
38
+     * @var int $code
39
+     */
40
+    protected $code = 428;
41 41
 
42
-	/**
43
-	 * Initialize constructor. 
44
-	 * 
45
-	 * @param  string|null  $message 
46
-	 * @param  \Throwable|null  $previous
47
-	 * @param  int  $code
48
-	 * @param  array  $headers
49
-	 * 
50
-	 * @return void
51
-	 */
52
-	public function __construct( 
53
-		string $message = null, 
54
-		Throwable $previous = null, 
55
-		int $code = 0, 
56
-		array $headers = []
57
-	) {
58
-		parent::__construct(
59
-			$this->code, 
60
-			$message, 
61
-			$previous, 
62
-			$headers, 
63
-			$code
64
-		);
65
-	}
42
+    /**
43
+     * Initialize constructor. 
44
+     * 
45
+     * @param  string|null  $message 
46
+     * @param  \Throwable|null  $previous
47
+     * @param  int  $code
48
+     * @param  array  $headers
49
+     * 
50
+     * @return void
51
+     */
52
+    public function __construct( 
53
+        string $message = null, 
54
+        Throwable $previous = null, 
55
+        int $code = 0, 
56
+        array $headers = []
57
+    ) {
58
+        parent::__construct(
59
+            $this->code, 
60
+            $message, 
61
+            $previous, 
62
+            $headers, 
63
+            $code
64
+        );
65
+    }
66 66
 }
67 67
\ No newline at end of file
Please login to merge, or discard this patch.
src/components/Core/Http/Exceptions/PreconditionFailedHttpException.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 PreconditionFailedHttpException extends HttpException
32 32
 {
33
-	/**
34
-	 * Get the HTTP status code.
35
-	 * 
36
-	 * @var int $code
37
-	 */
38
-	protected $code = 412;
33
+    /**
34
+     * Get the HTTP status code.
35
+     * 
36
+     * @var int $code
37
+     */
38
+    protected $code = 412;
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.