Passed
Branch 0.8.x (fca16e)
by Alexander
13:00
created
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.
src/components/Core/Http/Exceptions/ConflictHttpException.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 ConflictHttpException extends HttpException
31 31
 {
32
-	/**
33
-	 * Get the HTTP status code.
34
-	 * 
35
-	 * @var int $code
36
-	 */
37
-	protected $code = 409;
32
+    /**
33
+     * Get the HTTP status code.
34
+     * 
35
+     * @var int $code
36
+     */
37
+    protected $code = 409;
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/BadRequestHttpException.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 BadRequestHttpException extends HttpException
31 31
 {
32
-	/**
33
-	 * Get the HTTP status code.
34
-	 * 
35
-	 * @var int $code
36
-	 */
37
-	protected $code = 400;
32
+    /**
33
+     * Get the HTTP status code.
34
+     * 
35
+     * @var int $code
36
+     */
37
+    protected $code = 400;
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/MethodNotAllowedHttpException.php 1 patch
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -30,39 +30,39 @@
 block discarded – undo
30 30
  */
31 31
 class MethodNotAllowedHttpException extends HttpException
32 32
 {	
33
-	/**
34
-	 * Get the HTTP status code.
35
-	 * 
36
-	 * @var int $code
37
-	 */
38
-	protected $code = 405;
33
+    /**
34
+     * Get the HTTP status code.
35
+     * 
36
+     * @var int $code
37
+     */
38
+    protected $code = 405;
39 39
 	
40
-	/**
41
-	 * Initialize constructor. 
42
-	 * 
43
-	 * @param  array  $allow
44
-	 * @param  string|null  $message 
45
-	 * @param  \Throwable|null  $previous
46
-	 * @param  int  $code
47
-	 * @param  array  $headers
48
-	 * 
49
-	 * @return void
50
-	 */
51
-	public function __construct(
52
-		array $allow = [], 
53
-		string $message = null, 
54
-		Throwable $previous = null, 
55
-		?int $code = 0, 
56
-		array $headers = []
57
-	) {
58
-		$headers['Allow'] = strtoupper(implode(', ', $allow));
40
+    /**
41
+     * Initialize constructor. 
42
+     * 
43
+     * @param  array  $allow
44
+     * @param  string|null  $message 
45
+     * @param  \Throwable|null  $previous
46
+     * @param  int  $code
47
+     * @param  array  $headers
48
+     * 
49
+     * @return void
50
+     */
51
+    public function __construct(
52
+        array $allow = [], 
53
+        string $message = null, 
54
+        Throwable $previous = null, 
55
+        ?int $code = 0, 
56
+        array $headers = []
57
+    ) {
58
+        $headers['Allow'] = strtoupper(implode(', ', $allow));
59 59
 
60
-		parent::__construct(
61
-			$this->code, 
62
-			$message, 
63
-			$previous, 
64
-			$headers, 
65
-			$code
66
-		);
67
-	}
60
+        parent::__construct(
61
+            $this->code, 
62
+            $message, 
63
+            $previous, 
64
+            $headers, 
65
+            $code
66
+        );
67
+    }
68 68
 }
69 69
\ No newline at end of file
Please login to merge, or discard this patch.
src/components/Core/Http/Exceptions/GoneHttpException.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 GoneHttpException extends HttpException
31 31
 {
32
-	/**
33
-	 * Get the HTTP status code.
34
-	 * 
35
-	 * @var int $code
36
-	 */
37
-	protected $code = 410;
32
+    /**
33
+     * Get the HTTP status code.
34
+     * 
35
+     * @var int $code
36
+     */
37
+    protected $code = 410;
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/Middleware/VerifyCsrfToken.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
             $this->runningUnitTests() ||
96 96
             $this->inExceptArray($request) ||
97 97
             $this->tokensMatch($request)) {
98
-            return take($next($request), function ($response) use ($request) {
98
+            return take($next($request), function($response) use ($request) {
99 99
                 if ($this->addXsrfTokenCookie()) {
100 100
                     $this->addCookieToResponse($request, $response);
101 101
                 }
Please login to merge, or discard this patch.
src/components/Core/helpers.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -703,7 +703,7 @@  discard block
 block discarded – undo
703 703
 }
704 704
 
705 705
 if ( ! function_exists('segment')) {
706
-  /**
706
+    /**
707 707
      * Returns the desired segment, or $default if it does not exist.
708 708
      *
709 709
      * @param  int  $segment  
@@ -718,7 +718,7 @@  discard block
 block discarded – undo
718 718
 }
719 719
 
720 720
 if ( ! function_exists('segments')) {
721
-  /**
721
+    /**
722 722
      * Returns all segments in an array.
723 723
      *
724 724
      * @return array
@@ -744,7 +744,7 @@  discard block
 block discarded – undo
744 744
 }
745 745
 
746 746
 if ( ! function_exists('totalSegments')) {
747
-  /**
747
+    /**
748 748
      * Returns the total number of segment.
749 749
      *
750 750
      * @return int
Please login to merge, or discard this patch.