Passed
Push — master ( d195bb...22d237 )
by Alexander
03:07
created
src/components/View/Transpilers/Concerns/TranspilesEchos.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     {
72 72
         $pattern = sprintf('/(@)?%s\s*(.+?)\s*%s(\r?\n)?/s', $this->rawTags[0], $this->rawTags[1]);
73 73
         
74
-        $callback = function ($matches) {
74
+        $callback = function($matches) {
75 75
             $whitespace = empty($matches[3]) ? '' : $matches[3].$matches[3];
76 76
             
77 77
             return $matches[1] ? substr($matches[0], 1) : "<?php echo {$matches[2]}; ?>{$whitespace}";
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     {
92 92
         $pattern = sprintf('/(@)?%s\s*(.+?)\s*%s(\r?\n)?/s', $this->contentTags[0], $this->contentTags[1]);
93 93
         
94
-        $callback = function ($matches) {
94
+        $callback = function($matches) {
95 95
             $whitespace = empty($matches[3]) ? '' : $matches[3].$matches[3];
96 96
             
97 97
             $wrapped    = sprintf($this->echoFormat, $matches[2]);
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     {
114 114
         $pattern = sprintf('/(@)?%s\s*(.+?)\s*%s(\r?\n)?/s', $this->escapedTags[0], $this->escapedTags[1]);
115 115
         
116
-        $callback = function ($matches) {
116
+        $callback = function($matches) {
117 117
             $whitespace = empty($matches[3]) ? '' : $matches[3].$matches[3];
118 118
             
119 119
             return $matches[1] ? $matches[0] : "<?php echo e({$matches[2]}); ?>{$whitespace}";
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/Core/Support/Providers/EventServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
      */
54 54
     public function register()
55 55
     {
56
-        $this->booting(function () {
56
+        $this->booting(function() {
57 57
             $events = $this->listens();
58 58
 
59 59
             foreach ((array) $events as $event => $listeners) {
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/Events/Dispatcher.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
             return $this->createClassListener($listener, $wildcard);
133 133
         }
134 134
 
135
-        return function ($event, $payload) use ($listener, $wildcard) {
135
+        return function($event, $payload) use ($listener, $wildcard) {
136 136
             if ($wildcard) {
137 137
                 return $listener($event, $payload);
138 138
             }
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
      */
152 152
     public function createClassListener($listener, $wildcard = false): Closure
153 153
     {
154
-        return function ($event, $payload) use ($listener, $wildcard) {
154
+        return function($event, $payload) use ($listener, $wildcard) {
155 155
             if ($wildcard) {
156 156
                 return call_user_func($this->createClassClosure($listener), $event, $payload);
157 157
             }
Please login to merge, or discard this patch.
src/components/Redis/RedisServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     public function register()
38 38
     {
39
-        $this->app->singleton('redis', function ($app) {
39
+        $this->app->singleton('redis', function($app) {
40 40
             $config = $app['config']->get('database.redis', []);
41 41
 
42 42
             return new RedisManager($config);
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.
src/components/Contracts/Routing/Routable.php 1 patch
Indentation   +102 added lines, -102 removed lines patch added patch discarded remove patch
@@ -28,115 +28,115 @@
 block discarded – undo
28 28
  */
29 29
 interface Routable
30 30
 {
31
-	/**
32
-	 * Add a route for all posible methods.
33
-	 *
34
-	 * @param  string  $route
35
-	 * @param  \Closure|array|string  $action
36
-	 *
37
-	 * @return void
38
-	 */
39
-	public function any($route, $action);
31
+    /**
32
+     * Add a route for all posible methods.
33
+     *
34
+     * @param  string  $route
35
+     * @param  \Closure|array|string  $action
36
+     *
37
+     * @return void
38
+     */
39
+    public function any($route, $action);
40 40
 
41
-	/**
42
-	 * Add a route with delete method.
43
-	 *
44
-	 * @param  string  $route
45
-	 * @param  \Closure|array|string  $action
46
-	 *
47
-	 * @return void
48
-	 */
49
-	public function delete($route, $action);
41
+    /**
42
+     * Add a route with delete method.
43
+     *
44
+     * @param  string  $route
45
+     * @param  \Closure|array|string  $action
46
+     *
47
+     * @return void
48
+     */
49
+    public function delete($route, $action);
50 50
 
51
-	/**
52
-	 * Add a route with get method.
53
-	 * 
54
-	 * @param  string  $route
55
-	 * @param  \Closure|array|string  $action
56
-	 *
57
-	 * @return void
58
-	 */
59
-	public function get($route, $action);
51
+    /**
52
+     * Add a route with get method.
53
+     * 
54
+     * @param  string  $route
55
+     * @param  \Closure|array|string  $action
56
+     *
57
+     * @return void
58
+     */
59
+    public function get($route, $action);
60 60
 
61
-	/**
62
-	 * Add a route with head method.
63
-	 *
64
-	 * @param  string  $route
65
-	 * @param  \Closure|array|string  $action
66
-	 *
67
-	 * @return void
68
-	 */
69
-	public function head($route, $action);
61
+    /**
62
+     * Add a route with head method.
63
+     *
64
+     * @param  string  $route
65
+     * @param  \Closure|array|string  $action
66
+     *
67
+     * @return void
68
+     */
69
+    public function head($route, $action);
70 70
 
71
-	/**
72
-	 * Register a new route with the given methods.
73
-	 * 
74
-	 * @param  array|string  $methods
75
-	 * @param  string  $route
76
-	 * @param  string|callable|null  $action
77
-	 * 
78
-	 * @return void
79
-	 */
80
-	public function match($methods, $route, $action = null);
71
+    /**
72
+     * Register a new route with the given methods.
73
+     * 
74
+     * @param  array|string  $methods
75
+     * @param  string  $route
76
+     * @param  string|callable|null  $action
77
+     * 
78
+     * @return void
79
+     */
80
+    public function match($methods, $route, $action = null);
81 81
 
82
-	/**
83
-	 * Add a route with options method
84
-	 *
85
-	 * @param  string  $route
86
-	 * @param  \Closure|array|string  $action
87
-	 *
88
-	 * @return void
89
-	 */
90
-	public function options($route, $action);
82
+    /**
83
+     * Add a route with options method
84
+     *
85
+     * @param  string  $route
86
+     * @param  \Closure|array|string  $action
87
+     *
88
+     * @return void
89
+     */
90
+    public function options($route, $action);
91 91
 
92
-	/**
93
-	 * Add a route with patch method.
94
-	 *
95
-	 * @param  string  $route
96
-	 * @param  \Closure|array|string  $action
97
-	 *
98
-	 * @return void
99
-	 */
100
-	public function patch($route, $action);
92
+    /**
93
+     * Add a route with patch method.
94
+     *
95
+     * @param  string  $route
96
+     * @param  \Closure|array|string  $action
97
+     *
98
+     * @return void
99
+     */
100
+    public function patch($route, $action);
101 101
 
102
-	/**
103
-	 * Add a route with post method.
104
-	 *
105
-	 * @param  string  $route
106
-	 * @param  \Closure|array|string  $action
107
-	 *
108
-	 * @return void
109
-	 */
110
-	public function post($route, $action);
102
+    /**
103
+     * Add a route with post method.
104
+     *
105
+     * @param  string  $route
106
+     * @param  \Closure|array|string  $action
107
+     *
108
+     * @return void
109
+     */
110
+    public function post($route, $action);
111 111
 
112
-	/**
113
-	 * Add a route with put method.
114
-	 *
115
-	 * @param  string  $route
116
-	 * @param  \Closure|array|string  $action
117
-	 *
118
-	 * @return void
119
-	 */
120
-	public function put($route, $action);
112
+    /**
113
+     * Add a route with put method.
114
+     *
115
+     * @param  string  $route
116
+     * @param  \Closure|array|string  $action
117
+     *
118
+     * @return void
119
+     */
120
+    public function put($route, $action);
121 121
 
122
-	/**
123
-	 * Group a series of routes under a single URL segment. This is handy
124
-	 * for grouping items into an admin area, like:
125
-	 *
126
-	 *   Example:
127
-	 *      // Creates route: /admin show the word 'User'
128
-	 *      Route::group(['prefix' => 'admin'], function() {	 
129
-	 *
130
-	 *          Route::get('/user', function() {
131
-	 *	            echo 'Hello world..!';
132
-	 *          });
133
-	 *
134
-	 *      }); /admin/user
135
-	 * 
136
-	 * @param  array  $attributes
137
-	 * @param  \Closure|array|string  $callback
138
-	 *
139
-	 * @return void
140
-	 */
141
-	public function group(array $attributes, $routes): void;
122
+    /**
123
+     * Group a series of routes under a single URL segment. This is handy
124
+     * for grouping items into an admin area, like:
125
+     *
126
+     *   Example:
127
+     *      // Creates route: /admin show the word 'User'
128
+     *      Route::group(['prefix' => 'admin'], function() {	 
129
+     *
130
+     *          Route::get('/user', function() {
131
+     *	            echo 'Hello world..!';
132
+     *          });
133
+     *
134
+     *      }); /admin/user
135
+     * 
136
+     * @param  array  $attributes
137
+     * @param  \Closure|array|string  $callback
138
+     *
139
+     * @return void
140
+     */
141
+    public function group(array $attributes, $routes): void;
142 142
 }
143 143
\ No newline at end of file
Please login to merge, or discard this patch.