Passed
Push — master ( 54186f...17f01a )
by Alexander
03:09
created
src/components/Core/Http/Exceptions/HttpException.php 1 patch
Indentation   +63 added lines, -63 removed lines patch added patch discarded remove patch
@@ -32,73 +32,73 @@
 block discarded – undo
32 32
  */
33 33
 class HttpException extends LenevorException
34 34
 {
35
-	/**
36
-	 * Loader the Status Code HTTP.
37
-	 * 
38
-	 * @var int $code
39
-	 */
40
-	protected $code;
35
+    /**
36
+     * Loader the Status Code HTTP.
37
+     * 
38
+     * @var int $code
39
+     */
40
+    protected $code;
41 41
 
42
-	/**
43
-	 * Loader the headers HTTP.
44
-	 * 
45
-	 * @var array $headers 
46
-	 */
47
-	protected $headers;
42
+    /**
43
+     * Loader the headers HTTP.
44
+     * 
45
+     * @var array $headers 
46
+     */
47
+    protected $headers;
48 48
 
49
-	/**
50
-	 * Initialize constructor. 
51
-	 * 
52
-	 * @param  int  $statusCode
53
-	 * @param  string  $message  
54
-	 * @param  \Throwable  $previous 
55
-	 * @param  array  $headers
56
-	 * @param  int  $code
57
-	 * 
58
-	 * @return void
59
-	 */
60
-	public function __construct(
61
-		int $statusCode, 
62
-		string $message = null, 
63
-		Throwable $previous = null, 
64
-		array $headers = [], 
65
-		?int $code = 0
66
-	) {
67
-		$this->headers = $headers;
68
-		$this->code    = $statusCode;
49
+    /**
50
+     * Initialize constructor. 
51
+     * 
52
+     * @param  int  $statusCode
53
+     * @param  string  $message  
54
+     * @param  \Throwable  $previous 
55
+     * @param  array  $headers
56
+     * @param  int  $code
57
+     * 
58
+     * @return void
59
+     */
60
+    public function __construct(
61
+        int $statusCode, 
62
+        string $message = null, 
63
+        Throwable $previous = null, 
64
+        array $headers = [], 
65
+        ?int $code = 0
66
+    ) {
67
+        $this->headers = $headers;
68
+        $this->code    = $statusCode;
69 69
 				
70
-		parent::__construct($message, $code, $previous);
71
-	}
70
+        parent::__construct($message, $code, $previous);
71
+    }
72 72
 
73
-	/**
74
-	 * Get Status Code headers.
75
-	 * 
76
-	 * @return int
77
-	 */
78
-	public function getStatusCode()
79
-	{
80
-		return $this->code;
81
-	}
73
+    /**
74
+     * Get Status Code headers.
75
+     * 
76
+     * @return int
77
+     */
78
+    public function getStatusCode()
79
+    {
80
+        return $this->code;
81
+    }
82 82
 	
83
-	/**
84
-	 * Get response headers.
85
-	 * 
86
-	 * @return array
87
-	 */
88
-	public function getHeaders()
89
-	{
90
-		return $this->headers;
91
-	}
83
+    /**
84
+     * Get response headers.
85
+     * 
86
+     * @return array
87
+     */
88
+    public function getHeaders()
89
+    {
90
+        return $this->headers;
91
+    }
92 92
 	
93
-	/**
94
-	 * Set response headers.
95
-	 * 
96
-	 * @param  array  $headers  Response headers
97
-	 * 
98
-	 * @return mixed
99
-	 */
100
-	public function setHeaders(array $headers)
101
-	{
102
-		$this->headers = $headers;
103
-	}
93
+    /**
94
+     * Set response headers.
95
+     * 
96
+     * @param  array  $headers  Response headers
97
+     * 
98
+     * @return mixed
99
+     */
100
+    public function setHeaders(array $headers)
101
+    {
102
+        $this->headers = $headers;
103
+    }
104 104
 }
105 105
\ No newline at end of file
Please login to merge, or discard this patch.
src/components/Translation/Translator.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -62,11 +62,11 @@
 block discarded – undo
62 62
      */
63 63
     protected $locale;
64 64
 
65
-     /**
66
-     * Boolean value whether the intl libraries exist on the system.
67
-     * 
68
-     * @var bool $intlSupport
69
-     */
65
+        /**
66
+         * Boolean value whether the intl libraries exist on the system.
67
+         * 
68
+         * @var bool $intlSupport
69
+         */
70 70
     protected $intlSupport = false;
71 71
 
72 72
     /**
Please login to merge, or discard this patch.
src/components/View/FileViewFinder.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@
 block discarded – undo
170 170
             }
171 171
         }
172 172
         
173
-       throw new ViewException(__('view.notFound', ['file' => $name]));
173
+        throw new ViewException(__('view.notFound', ['file' => $name]));
174 174
     }
175 175
 
176 176
     /**
Please login to merge, or discard this patch.
src/components/Dotenv/Loader/Loader.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -259,7 +259,7 @@
 block discarded – undo
259 259
             $quote = $value[0];
260 260
 
261 261
             $regexPattern = sprintf(
262
-					'/^
262
+                    '/^
263 263
 					%1$s          # match a quote at the start of the value
264 264
 					(             # capturing sub-pattern used
265 265
 								  (?:          # we do not need to capture this
Please login to merge, or discard this patch.
src/components/Filesystem/FileMimeType.php 1 patch
Indentation   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -30,61 +30,61 @@
 block discarded – undo
30 30
  */
31 31
 class FileMimeType
32 32
 {
33
-	/**
34
-	 * Map of extensions to mime types.
35
-	 *
36
-	 * @var array $mimes
37
-	 */
38
-	public static $mimes = [];
33
+    /**
34
+     * Map of extensions to mime types.
35
+     *
36
+     * @var array $mimes
37
+     */
38
+    public static $mimes = [];
39 39
 
40
-	/**
41
-	 * Constructor with an optional verification that the path is 
42
-	 * really a mimes.
43
-	 *
44
-	 * @return mixed
45
-	 */
46
-	public function __construct()
47
-	{
48
-		static::$mimes = (array) require CON_PATH.'mimes.php';
49
-	}
40
+    /**
41
+     * Constructor with an optional verification that the path is 
42
+     * really a mimes.
43
+     *
44
+     * @return mixed
45
+     */
46
+    public function __construct()
47
+    {
48
+        static::$mimes = (array) require CON_PATH.'mimes.php';
49
+    }
50 50
 
51
-	/**
52
-	 * Attempts to determine the best mime type for the given file extension.
53
-	 *
54
-	 * @param  string  $extension
55
-	 *
56
-	 * @return string|null  The mime type found, or none if unable to determine
57
-	 */
58
-	public static function guessTypeFromExtension($extension)
59
-	{
60
-		$extension = trim(strtolower($extension), '. ');
51
+    /**
52
+     * Attempts to determine the best mime type for the given file extension.
53
+     *
54
+     * @param  string  $extension
55
+     *
56
+     * @return string|null  The mime type found, or none if unable to determine
57
+     */
58
+    public static function guessTypeFromExtension($extension)
59
+    {
60
+        $extension = trim(strtolower($extension), '. ');
61 61
 
62
-		if ( ! array_key_exists($extension, static::$mimes)) {
63
-			return null;
64
-		}
62
+        if ( ! array_key_exists($extension, static::$mimes)) {
63
+            return null;
64
+        }
65 65
 		
66
-		return is_array(static::$mimes[$extension]) ? static::$mimes[$extension][0] : static::$mimes[$extension];
67
-	}
66
+        return is_array(static::$mimes[$extension]) ? static::$mimes[$extension][0] : static::$mimes[$extension];
67
+    }
68 68
 
69
-	/**
70
-	 * Attempts to determine the best file extension for a given mime type.
71
-	 *
72
-	 * @param  string  $type
73
-	 *
74
-	 * @return string|null The extension determined, or null if unable to match
75
-	 */
76
-	public static function guessExtensionFromType($type)
77
-	{
78
-		$type = trim(strtolower($type), '. ');
69
+    /**
70
+     * Attempts to determine the best file extension for a given mime type.
71
+     *
72
+     * @param  string  $type
73
+     *
74
+     * @return string|null The extension determined, or null if unable to match
75
+     */
76
+    public static function guessExtensionFromType($type)
77
+    {
78
+        $type = trim(strtolower($type), '. ');
79 79
 
80
-		foreach (static::$mimes as $ext => $types) {
81
-			if (is_string($types) && $types == $type) {
82
-				return $ext;
83
-			} elseif (is_array($types) && in_array($type, $types)) {
84
-				return $ext;
85
-			}
86
-		}
80
+        foreach (static::$mimes as $ext => $types) {
81
+            if (is_string($types) && $types == $type) {
82
+                return $ext;
83
+            } elseif (is_array($types) && in_array($type, $types)) {
84
+                return $ext;
85
+            }
86
+        }
87 87
 
88
-		return null;
89
-	}
88
+        return null;
89
+    }
90 90
 }
91 91
\ No newline at end of file
Please login to merge, or discard this patch.
src/components/Support/Chronos/Traits/Schedule.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
 
165 165
         foreach ($transitions as $transition) {
166 166
             if ($transition['time'] > $this->format('U')) {
167
-               $dayLightSaving = (bool) $transition['isdst'] ?? $dayLightSaving;
167
+                $dayLightSaving = (bool) $transition['isdst'] ?? $dayLightSaving;
168 168
             }
169 169
         }
170 170
 
Please login to merge, or discard this patch.
src/components/Http/Exceptions/PostTooLargeHttpException.php 1 patch
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -33,35 +33,35 @@
 block discarded – undo
33 33
  */
34 34
 class PostTooLargeHttpException extends HttpException
35 35
 {
36
-	/**
37
-	 * Get the HTTP status code.
38
-	 * 
39
-	 * @var int $code
40
-	 */
41
-	protected $code = 413;
36
+    /**
37
+     * Get the HTTP status code.
38
+     * 
39
+     * @var int $code
40
+     */
41
+    protected $code = 413;
42 42
 
43
-	/**
44
-	 * Initialize constructor. 
45
-	 * 
46
-	 * @param  string|null  $message   
47
-	 * @param  \Throwable|null  $previous  
48
-	 * @param  int  $code 
49
-	 * @param  array  $headers
50
-	 * 
51
-	 * @return void
52
-	 */
53
-	public function __construct(
54
-		string $message = null, 
55
-		Throwable $previous = null, 
56
-		int $code = 0, 
57
-		array $headers = []
58
-	) {
43
+    /**
44
+     * Initialize constructor. 
45
+     * 
46
+     * @param  string|null  $message   
47
+     * @param  \Throwable|null  $previous  
48
+     * @param  int  $code 
49
+     * @param  array  $headers
50
+     * 
51
+     * @return void
52
+     */
53
+    public function __construct(
54
+        string $message = null, 
55
+        Throwable $previous = null, 
56
+        int $code = 0, 
57
+        array $headers = []
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/Config/Configure.php 1 patch
Indentation   +121 added lines, -121 removed lines patch added patch discarded remove patch
@@ -34,143 +34,143 @@
 block discarded – undo
34 34
  */
35 35
 class Configure implements ArrayAccess, ConfigureContract
36 36
 {
37
-	/**
38
-	 * Currently registered routes.
39
-	 * 
40
-	 * @var array $vars
41
-	 */
42
-	protected $vars = [];
37
+    /**
38
+     * Currently registered routes.
39
+     * 
40
+     * @var array $vars
41
+     */
42
+    protected $vars = [];
43 43
 
44
-	/**
45
-	 * Determine if the given configuration value exists.
46
-	 * 
47
-	 * @param  string  $key
48
-	 * 
49
-	 * @return bool
50
-	 */
51
-	public function has(string $key): bool
52
-	{
53
-		return Arr::has($this->vars, $key);
54
-	}
44
+    /**
45
+     * Determine if the given configuration value exists.
46
+     * 
47
+     * @param  string  $key
48
+     * 
49
+     * @return bool
50
+     */
51
+    public function has(string $key): bool
52
+    {
53
+        return Arr::has($this->vars, $key);
54
+    }
55 55
 
56
-	/**
57
-	 * Returns a (dot notated) config setting.
58
-	 *
59
-	 * @param  string  $key  The dot-notated key or array of keys
60
-	 * @param  mixed  $default  The default value
61
-	 *
62
-	 * @return mixed
63
-	 */
64
-	public function get(string $key, mixed $default = null): mixed
65
-	{
66
-		$keys = explode('.', $key);
56
+    /**
57
+     * Returns a (dot notated) config setting.
58
+     *
59
+     * @param  string  $key  The dot-notated key or array of keys
60
+     * @param  mixed  $default  The default value
61
+     *
62
+     * @return mixed
63
+     */
64
+    public function get(string $key, mixed $default = null): mixed
65
+    {
66
+        $keys = explode('.', $key);
67 67
 
68
-		if ( ! array_key_exists($file = headItem($keys), $this->vars)) {
69
-			foreach ([configPath().DIRECTORY_SEPARATOR] as $paths) {
70
-				if (is_readable($path = $paths.$file.'.php')) {
71
-					$this->vars[$file] = require $path;
72
-				}				
73
-			}
74
-		} 
68
+        if ( ! array_key_exists($file = headItem($keys), $this->vars)) {
69
+            foreach ([configPath().DIRECTORY_SEPARATOR] as $paths) {
70
+                if (is_readable($path = $paths.$file.'.php')) {
71
+                    $this->vars[$file] = require $path;
72
+                }				
73
+            }
74
+        } 
75 75
 		
76
-		return Arr::get($this->vars, $key, $default);
77
-	}
76
+        return Arr::get($this->vars, $key, $default);
77
+    }
78 78
 
79
-	/**
80
-	 * Sets a value in the config array.
81
-	 *
82
-	 * @param  string  $key  The dot-notated key or array of keys
83
-	 * @param  mixed  $value  The default value
84
-	 *
85
-	 * @return mixed
86
-	 */
87
-	public function set(string $key, mixed $value = null): mixed
88
-	{
89
-		$keys = is_array($key) ? $key : [$key => $value];
79
+    /**
80
+     * Sets a value in the config array.
81
+     *
82
+     * @param  string  $key  The dot-notated key or array of keys
83
+     * @param  mixed  $value  The default value
84
+     *
85
+     * @return mixed
86
+     */
87
+    public function set(string $key, mixed $value = null): mixed
88
+    {
89
+        $keys = is_array($key) ? $key : [$key => $value];
90 90
 		
91
-		foreach ($keys as $key => $value) {
92
-			Arr::set($this->vars, $key, $value);
93
-		}
94
-	}
91
+        foreach ($keys as $key => $value) {
92
+            Arr::set($this->vars, $key, $value);
93
+        }
94
+    }
95 95
 
96
-	/**
97
-	 * Deletes a (dot notated) config item.
98
-	 * 
99
-	 * @param  string  $key  A (dot notated) config key
100
-	 * 
101
-	 * @return void
102
-	 */
103
-	public function erase(string $key): void
104
-	{
105
-		if (isset($this->vars[$key])) {
106
-			unset($this->vars[$key]);
107
-		}
96
+    /**
97
+     * Deletes a (dot notated) config item.
98
+     * 
99
+     * @param  string  $key  A (dot notated) config key
100
+     * 
101
+     * @return void
102
+     */
103
+    public function erase(string $key): void
104
+    {
105
+        if (isset($this->vars[$key])) {
106
+            unset($this->vars[$key]);
107
+        }
108 108
 		
109
-		Arr::erase($this->vars, $key);
110
-	}
109
+        Arr::erase($this->vars, $key);
110
+    }
111 111
 
112
-	/**
113
-	 * Get all of the configuration items for the application.
114
-	 * 
115
-	 * @return array
116
-	 */
117
-	public function all(): array
118
-	{
119
-		return $this->vars;
120
-	}
112
+    /**
113
+     * Get all of the configuration items for the application.
114
+     * 
115
+     * @return array
116
+     */
117
+    public function all(): array
118
+    {
119
+        return $this->vars;
120
+    }
121 121
 	
122
-	/*
122
+    /*
123 123
 	|-----------------------------------------------------------------
124 124
 	| ArrayAccess Methods
125 125
 	|-----------------------------------------------------------------
126 126
 	*/ 
127 127
 	
128
-	/**
129
-	 * Determine if the given configuration option exists.
130
-	 * 
131
-	 * @param  string  $key
132
-	 * 
133
-	 * @return bool
134
-	 */
135
-	public function offsetExists($key): bool
136
-	{
137
-		return $this->has($key);
138
-	}
128
+    /**
129
+     * Determine if the given configuration option exists.
130
+     * 
131
+     * @param  string  $key
132
+     * 
133
+     * @return bool
134
+     */
135
+    public function offsetExists($key): bool
136
+    {
137
+        return $this->has($key);
138
+    }
139 139
 	
140
-	/**
141
-	 * Get a configuration option.
142
-	 * 
143
-	 * @param  string  $key
144
-	 * 
145
-	 * @return mixed
146
-	 */
147
-	public function offsetGet($key)
148
-	{
149
-		return $this->get($key);
150
-	}
140
+    /**
141
+     * Get a configuration option.
142
+     * 
143
+     * @param  string  $key
144
+     * 
145
+     * @return mixed
146
+     */
147
+    public function offsetGet($key)
148
+    {
149
+        return $this->get($key);
150
+    }
151 151
 	
152
-	/**
153
-	 * Set a configuration option.
154
-	 * 
155
-	 * @param  string  $key
156
-	 * @param  mixed  $value
157
-	 * 
158
-	 * @return void
159
-	 */
160
-	public function offsetSet($key, $value): void
161
-	{
162
-		$this->set($key, $value);
163
-	}
152
+    /**
153
+     * Set a configuration option.
154
+     * 
155
+     * @param  string  $key
156
+     * @param  mixed  $value
157
+     * 
158
+     * @return void
159
+     */
160
+    public function offsetSet($key, $value): void
161
+    {
162
+        $this->set($key, $value);
163
+    }
164 164
 	
165
-	/**
166
-	 * Unset a configuration option.
167
-	 * 
168
-	 * @param  string  $key
169
-	 * 
170
-	 * @return void
171
-	 */
172
-	public function offsetUnset($key): void
173
-	{
174
-		$this->set($key, null);
175
-	}
165
+    /**
166
+     * Unset a configuration option.
167
+     * 
168
+     * @param  string  $key
169
+     * 
170
+     * @return void
171
+     */
172
+    public function offsetUnset($key): void
173
+    {
174
+        $this->set($key, null);
175
+    }
176 176
 }
177 177
\ No newline at end of file
Please login to merge, or discard this patch.
src/components/Contracts/Config/Configure.php 1 patch
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -27,48 +27,48 @@
 block discarded – undo
27 27
  */
28 28
 interface Configure
29 29
 {
30
-	/**
31
-	 * Determine if the given configuration value exists.
32
-	 * 
33
-	 * @param  string  $key
34
-	 * 
35
-	 * @return bool
36
-	 */
37
-	public function has(string $key): bool;
30
+    /**
31
+     * Determine if the given configuration value exists.
32
+     * 
33
+     * @param  string  $key
34
+     * 
35
+     * @return bool
36
+     */
37
+    public function has(string $key): bool;
38 38
 
39
-	/**
40
-	 * Deletes a (dot notated) config item.
41
-	 * 
42
-	 * @param  string  $key  A (dot notated) config key
43
-	 * 
44
-	 * @return void
45
-	 */	
46
-	public function erase(string $key): void;
39
+    /**
40
+     * Deletes a (dot notated) config item.
41
+     * 
42
+     * @param  string  $key  A (dot notated) config key
43
+     * 
44
+     * @return void
45
+     */	
46
+    public function erase(string $key): void;
47 47
 
48
-	/**
49
-	 * Returns a (dot notated) config setting.
50
-	 *
51
-	 * @param  string  $key  The dot-notated key or array of keys
52
-	 * @param  mixed  $default  The default value
53
-	 *
54
-	 * @return mixed
55
-	 */
56
-	public function get(string $key, mixed $default = null): mixed;
48
+    /**
49
+     * Returns a (dot notated) config setting.
50
+     *
51
+     * @param  string  $key  The dot-notated key or array of keys
52
+     * @param  mixed  $default  The default value
53
+     *
54
+     * @return mixed
55
+     */
56
+    public function get(string $key, mixed $default = null): mixed;
57 57
 	
58
-	/**
59
-	 * Sets a value in the config array.
60
-	 *
61
-	 * @param  string  $key  The dot-notated key or array of keys
62
-	 * @param  mixed  $value  The default value
63
-	 *
64
-	 * @return mixed
65
-	 */
66
-	public function set(string $key, mixed $value): mixed;
58
+    /**
59
+     * Sets a value in the config array.
60
+     *
61
+     * @param  string  $key  The dot-notated key or array of keys
62
+     * @param  mixed  $value  The default value
63
+     *
64
+     * @return mixed
65
+     */
66
+    public function set(string $key, mixed $value): mixed;
67 67
 
68
-	/**
69
-	 * Get all of the configuration items for the application.
70
-	 * 
71
-	 * @return array
72
-	 */
73
-	public function all(): array;
68
+    /**
69
+     * Get all of the configuration items for the application.
70
+     * 
71
+     * @return array
72
+     */
73
+    public function all(): array;
74 74
 }
75 75
\ No newline at end of file
Please login to merge, or discard this patch.