Passed
Branch 0.8.x (fca16e)
by Alexander
13:00
created
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.
src/components/Contracts/Debug/Handler.php 1 patch
Indentation   +125 added lines, -125 removed lines patch added patch discarded remove patch
@@ -29,143 +29,143 @@
 block discarded – undo
29 29
  */
30 30
 interface Handler
31 31
 {
32
-	const ERROR_HANDLER     = "HandleError";
33
-	const EXCEPTION_HANDLER = "handleException";
34
-	const SHUTDOWN_HANDLER  = "handleShutdown"; 
32
+    const ERROR_HANDLER     = "HandleError";
33
+    const EXCEPTION_HANDLER = "handleException";
34
+    const SHUTDOWN_HANDLER  = "handleShutdown"; 
35 35
 	
36
-	/**
37
-	 * Catches any uncaught errors and exceptions, including most Fatal errors. Will log the 
38
-	 * error, display it if display_errors is on, and fire an event that allows custom actions 
39
-	 * to be taken at this point.
40
-	 *
41
-	 * @param  \Throwable  $exception
42
-	 *
43
-	 * @return string
44
-	 */
45
-	public function handleException(Throwable $exception): string;
36
+    /**
37
+     * Catches any uncaught errors and exceptions, including most Fatal errors. Will log the 
38
+     * error, display it if display_errors is on, and fire an event that allows custom actions 
39
+     * to be taken at this point.
40
+     *
41
+     * @param  \Throwable  $exception
42
+     *
43
+     * @return string
44
+     */
45
+    public function handleException(Throwable $exception): string;
46 46
 	
47
-	/**
48
-	 * Pushes a handler to the end of the stack.
49
-	 * 
50
-	 * @param  string|callable  $handler
51
-	 * 
52
-	 * @return \Syscodes\Components\Contracts\Debug\Handler
53
-	 */
54
-	public function pushHandler($handler);
47
+    /**
48
+     * Pushes a handler to the end of the stack.
49
+     * 
50
+     * @param  string|callable  $handler
51
+     * 
52
+     * @return \Syscodes\Components\Contracts\Debug\Handler
53
+     */
54
+    public function pushHandler($handler);
55 55
 
56
-	/**
57
-	 * Appends a handler to the end of the stack.
58
-	 * 
59
-	 * @param  \Callable|\Syscodes\Components\Contracts\Debug\Handler  $handler
60
-	 * 
61
-	 * @return self
62
-	 */
63
-	public function appendHandler($handler): self;
56
+    /**
57
+     * Appends a handler to the end of the stack.
58
+     * 
59
+     * @param  \Callable|\Syscodes\Components\Contracts\Debug\Handler  $handler
60
+     * 
61
+     * @return self
62
+     */
63
+    public function appendHandler($handler): self;
64 64
 
65
-	/**
66
-	 * Prepends a handler to the start of the stack.
67
-	 * 
68
-	 * @param  \Callable|\Syscodes\Components\Contracts\Debug\Handler  $handler
69
-	 * 
70
-	 * @return self
71
-	 */
72
-	public function prependHandler($handler): self;
65
+    /**
66
+     * Prepends a handler to the start of the stack.
67
+     * 
68
+     * @param  \Callable|\Syscodes\Components\Contracts\Debug\Handler  $handler
69
+     * 
70
+     * @return self
71
+     */
72
+    public function prependHandler($handler): self;
73 73
 	
74
-	/**
75
-	 * Unregisters all handlers registered by this Debug instance.
76
-	 * 
77
-	 * @return void
78
-	 */
79
-	public function off(): void;
74
+    /**
75
+     * Unregisters all handlers registered by this Debug instance.
76
+     * 
77
+     * @return void
78
+     */
79
+    public function off(): void;
80 80
 	
81
-	/**
82
-	 * Registers this instance as an error handler.
83
-	 * 
84
-	 * @return void
85
-	 */
86
-	public function on(): void;
81
+    /**
82
+     * Registers this instance as an error handler.
83
+     * 
84
+     * @return void
85
+     */
86
+    public function on(): void;
87 87
 
88
-	/**
89
-	 * Allow Handlers to force the script to quit.
90
-	 * 
91
-	 * @param  bool|int|null  $exit
92
-	 * 
93
-	 * @return bool
94
-	 */
95
-	public function allowQuit($exit = null);
88
+    /**
89
+     * Allow Handlers to force the script to quit.
90
+     * 
91
+     * @param  bool|int|null  $exit
92
+     * 
93
+     * @return bool
94
+     */
95
+    public function allowQuit($exit = null);
96 96
 	
97
-	/**
98
-	 * Lenevor Exception push output directly to the client it the data  
99
-	 * if they are true, but if it is false, the output will be returned 
100
-	 * by exception.
101
-	 * 
102
-	 * @param  bool|int|null  $send
103
-	 *
104
-	 * @return bool
105
-	 */
106
-	public function writeToOutput($send = null);
97
+    /**
98
+     * Lenevor Exception push output directly to the client it the data  
99
+     * if they are true, but if it is false, the output will be returned 
100
+     * by exception.
101
+     * 
102
+     * @param  bool|int|null  $send
103
+     *
104
+     * @return bool
105
+     */
106
+    public function writeToOutput($send = null);
107 107
 
108
-	/**
109
-	 * Returns an array with all handlers, in the order they were added to the stack.
110
-	 * 
111
-	 * @return array
112
-	 */
113
-	public function getHandlers(): array;
108
+    /**
109
+     * Returns an array with all handlers, in the order they were added to the stack.
110
+     * 
111
+     * @return array
112
+     */
113
+    public function getHandlers(): array;
114 114
 
115
-	/**
116
-	 * Clears all handlers in the handlerStack, including the default PleasingPage handler.
117
-	 * 
118
-	 * @return self
119
-	 */
120
-	public function clearHandlers(): self;
115
+    /**
116
+     * Clears all handlers in the handlerStack, including the default PleasingPage handler.
117
+     * 
118
+     * @return self
119
+     */
120
+    public function clearHandlers(): self;
121 121
 
122
-	/**
123
-	 * Removes the last handler in the stack and returns it.
124
-	 * 
125
-	 * @return array|null
126
-	 */
127
-	public function popHandler();
122
+    /**
123
+     * Removes the last handler in the stack and returns it.
124
+     * 
125
+     * @return array|null
126
+     */
127
+    public function popHandler();
128 128
 	
129
-	/**
130
-	 * Error handler
131
-	 *
132
-	 * This will catch the php native error and treat it as a exception which will 
133
-	 * provide a full back trace on all errors.
134
-	 *
135
-	 * @param  int  $level
136
-	 * @param  string  $message
137
-	 * @param  string|null  $file
138
-	 * @param  int|null  $line
139
-	 * 
140
-	 * @return bool
141
-	 * 
142
-	 * @throws \ErrorException
143
-	 */
144
-	public function handleError(
145
-		int $level, 
146
-		string $message, 
147
-		string $file = null, 
148
-		int $line = null
149
-	);
129
+    /**
130
+     * Error handler
131
+     *
132
+     * This will catch the php native error and treat it as a exception which will 
133
+     * provide a full back trace on all errors.
134
+     *
135
+     * @param  int  $level
136
+     * @param  string  $message
137
+     * @param  string|null  $file
138
+     * @param  int|null  $line
139
+     * 
140
+     * @return bool
141
+     * 
142
+     * @throws \ErrorException
143
+     */
144
+    public function handleError(
145
+        int $level, 
146
+        string $message, 
147
+        string $file = null, 
148
+        int $line = null
149
+    );
150 150
 	
151
-	/**
152
-	 * Lenevor Exception will by default send HTTP code 500, but you may wish
153
-	 * to use 502, 503, or another 5xx family code.
154
-	 * 
155
-	 * @param  bool|int  $code
156
-	 * 
157
-	 * @return int|false
158
-	 * 
159
-	 * @throws \InvalidArgumentException
160
-	 */
161
-	public function sendHttpCode($code = null);
151
+    /**
152
+     * Lenevor Exception will by default send HTTP code 500, but you may wish
153
+     * to use 502, 503, or another 5xx family code.
154
+     * 
155
+     * @param  bool|int  $code
156
+     * 
157
+     * @return int|false
158
+     * 
159
+     * @throws \InvalidArgumentException
160
+     */
161
+    public function sendHttpCode($code = null);
162 162
 	
163
-	/**
164
-	 * This will catch errors that are generated at the shutdown level of execution.
165
-	 *
166
-	 * @return void
167
-	 *
168
-	 * @throws \ErrorException
169
-	 */
170
-	public function handleShutdown();
163
+    /**
164
+     * This will catch errors that are generated at the shutdown level of execution.
165
+     *
166
+     * @return void
167
+     *
168
+     * @throws \ErrorException
169
+     */
170
+    public function handleShutdown();
171 171
 }
172 172
\ No newline at end of file
Please login to merge, or discard this patch.
src/components/Contracts/Http/Lenevor.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -28,29 +28,29 @@
 block discarded – undo
28 28
 interface Lenevor
29 29
 {
30 30
     /**
31
-	 * Initializes the framework, this can only be called once.
32
-	 * Launch the application.
33
-	 * 
34
-	 * @param  \Syscodes\Components\http\Request  $request
35
-	 *
36
-	 * @return void
37
-	 */
38
- 	public function handle($request);
31
+     * Initializes the framework, this can only be called once.
32
+     * Launch the application.
33
+     * 
34
+     * @param  \Syscodes\Components\http\Request  $request
35
+     *
36
+     * @return void
37
+     */
38
+        public function handle($request);
39 39
 
40
-	/**
41
-	 * Call the finalize method on any terminable middleware.
42
-	 * 
43
-	 * @param  \Syscodes\Components\Http\Request  $request
44
-	 * @param  \Syscodes\Components\Http\Response  $response
45
-	 * 
46
-	 * @return void
47
-	 */
48
-	public function finalize($request, $response): void;
40
+    /**
41
+     * Call the finalize method on any terminable middleware.
42
+     * 
43
+     * @param  \Syscodes\Components\Http\Request  $request
44
+     * @param  \Syscodes\Components\Http\Response  $response
45
+     * 
46
+     * @return void
47
+     */
48
+    public function finalize($request, $response): void;
49 49
 
50
-	/**
51
-	 * Gets the Lenevor application instance.
52
-	 * 
53
-	 * @return void
54
-	 */
55
-	public function getApplication();
50
+    /**
51
+     * Gets the Lenevor application instance.
52
+     * 
53
+     * @return void
54
+     */
55
+    public function getApplication();
56 56
 }
57 57
\ No newline at end of file
Please login to merge, or discard this patch.
src/components/Contracts/Cache/Repository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      * 
117 117
      * @return int|bool
118 118
      */
119
-    public function increment(string $key, mixed $value = 1): int|bool;
119
+    public function increment(string $key, mixed $value = 1): int | bool;
120 120
 
121 121
     /**
122 122
      * Decrement the value of an item in the cache.
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
      * 
127 127
      * @return int|bool
128 128
      */
129
-    public function decrement(string $key, mixed $value = 1): int|bool;
129
+    public function decrement(string $key, mixed $value = 1): int | bool;
130 130
 
131 131
     /**
132 132
      * Remove a specific item from the cache store.
Please login to merge, or discard this patch.
src/components/Contracts/Cache/Store.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      * 
75 75
      * @return int|bool
76 76
      */
77
-    public function increment(string $key, mixed $value = 1): int|bool;
77
+    public function increment(string $key, mixed $value = 1): int | bool;
78 78
 
79 79
     /**
80 80
      * Decrement the value of an item in the cache.
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      * 
85 85
      * @return int|bool
86 86
      */
87
-    public function decrement(string $key, mixed $value = 1): int|bool;
87
+    public function decrement(string $key, mixed $value = 1): int | bool;
88 88
 
89 89
     /**
90 90
      * Deletes a specific item from the cache store.
Please login to merge, or discard this patch.
src/components/Contracts/View/Factory.php 1 patch
Indentation   +72 added lines, -72 removed lines patch added patch discarded remove patch
@@ -30,103 +30,103 @@
 block discarded – undo
30 30
 interface Factory
31 31
 {
32 32
     /**
33
-	 * Check existance view file.
34
-	 * 
35
-	 * @param  string  $view
36
-	 *
37
-	 * @return bool
38
-	 */
33
+     * Check existance view file.
34
+     * 
35
+     * @param  string  $view
36
+     *
37
+     * @return bool
38
+     */
39 39
     public function viewExists($view): bool;
40 40
 
41 41
     /**
42 42
      * Global and local data are merged and extracted to create local variables within the view file.
43
-	 * Renders the view object to a string.
44
-	 *
45
-	 * @example $output = $view->make();
46
-	 *
47
-	 * @param  string  $view  View filename
48
-	 * @param  array  $data  Array of values
49
-	 *
50
-	 * @return \Syscodes\Components\Contracts\View\View
43
+     * Renders the view object to a string.
44
+     *
45
+     * @example $output = $view->make();
46
+     *
47
+     * @param  string  $view  View filename
48
+     * @param  array  $data  Array of values
49
+     *
50
+     * @return \Syscodes\Components\Contracts\View\View
51 51
      */
52 52
     public function make($view, $data = []);
53 53
 
54 54
     /**
55
-	 * Call the creator for a given view.
56
-	 * 
57
-	 * @param  \Syscodes\View\View  $view
58
-	 * 
59
-	 * @return void
60
-	 */
61
-	public function callCreator(View $view): void;
55
+     * Call the creator for a given view.
56
+     * 
57
+     * @param  \Syscodes\View\View  $view
58
+     * 
59
+     * @return void
60
+     */
61
+    public function callCreator(View $view): void;
62 62
 
63 63
     /**
64
-	 * Get the extension to engine bindings.
65
-	 * 
66
-	 * @return array
67
-	 */
68
-	public function getExtensions(): array;
64
+     * Get the extension to engine bindings.
65
+     * 
66
+     * @return array
67
+     */
68
+    public function getExtensions(): array;
69 69
 
70 70
 
71 71
     /**
72
-	 * Add a piece of shared data to the environment.
73
-	 * 
74
-	 * @param  array|string  $key
75
-	 * @param  mixed|null  $value  
76
-	 * 
77
-	 * @return mixed
78
-	 */
79
-	public function share($key, $value = null);
72
+     * Add a piece of shared data to the environment.
73
+     * 
74
+     * @param  array|string  $key
75
+     * @param  mixed|null  $value  
76
+     * 
77
+     * @return mixed
78
+     */
79
+    public function share($key, $value = null);
80 80
 
81 81
     /**
82
-	 * Replace the namespace hints for the given namespace.
83
-	 * 
84
-	 * @param  string  $namespace
85
-	 * @param  string|array  $hints
86
-	 * 
87
-	 * @return self
88
-	 */
89
-	public function replaceNamespace($namespace, $hints): self;
82
+     * Replace the namespace hints for the given namespace.
83
+     * 
84
+     * @param  string  $namespace
85
+     * @param  string|array  $hints
86
+     * 
87
+     * @return self
88
+     */
89
+    public function replaceNamespace($namespace, $hints): self;
90 90
 
91 91
     /**
92
-	 * Increment the rendering counter.
93
-	 * 
94
-	 * @return int
95
-	 */
96
-	public function increment(): int;
92
+     * Increment the rendering counter.
93
+     * 
94
+     * @return int
95
+     */
96
+    public function increment(): int;
97 97
 
98 98
     /**
99
-	 * Decrement the rendering counter.
100
-	 * 
101
-	 * @return int
102
-	 */
103
-	public function decrement(): int;
99
+     * Decrement the rendering counter.
100
+     * 
101
+     * @return int
102
+     */
103
+    public function decrement(): int;
104 104
 
105 105
     /**
106
-	 * Check if there are no active render operations.
107
-	 * 
108
-	 * @return bool
109
-	 */
110
-	public function doneRendering(): bool;
106
+     * Check if there are no active render operations.
107
+     * 
108
+     * @return bool
109
+     */
110
+    public function doneRendering(): bool;
111 111
 
112 112
     /**
113
-	 * Flush all of the parser state like sections.
114
-	 * 
115
-	 * @return void
116
-	 */
117
-	public function flushState(): void;
113
+     * Flush all of the parser state like sections.
114
+     * 
115
+     * @return void
116
+     */
117
+    public function flushState(): void;
118 118
 
119 119
     /**
120
-	 * Flush all of the section contents if done rendering.
121
-	 * 
122
-	 * @return void
123
-	 */
124
-	public function flushStateIfDoneRendering(): void;
120
+     * Flush all of the section contents if done rendering.
121
+     * 
122
+     * @return void
123
+     */
124
+    public function flushStateIfDoneRendering(): void;
125 125
 
126 126
     /**
127
-	 * Get all of the shared data for the environment.
128
-	 * 
129
-	 * @return array
130
-	 */
131
-	public function getShared(): array;
127
+     * Get all of the shared data for the environment.
128
+     * 
129
+     * @return array
130
+     */
131
+    public function getShared(): array;
132 132
 }
133 133
\ No newline at end of file
Please login to merge, or discard this patch.
src/components/Contracts/View/View.php 1 patch
Indentation   +83 added lines, -83 removed lines patch added patch discarded remove patch
@@ -29,96 +29,96 @@
 block discarded – undo
29 29
  */
30 30
 interface View extends Renderable
31 31
 {
32
-	/**
33
-	 * The view data will be extracted.
34
-	 * 
35
-	 * @return array
36
-	 */
37
-	public function getArrayData(): array;
32
+    /**
33
+     * The view data will be extracted.
34
+     * 
35
+     * @return array
36
+     */
37
+    public function getArrayData(): array;
38 38
 
39
-	/**
40
-	 * Get the sections of the rendered view.
41
-	 * 
42
-	 * @return array
43
-	 * 
44
-	 * @throws \Throwable
45
-	 */
46
-	public function renderSections();
39
+    /**
40
+     * Get the sections of the rendered view.
41
+     * 
42
+     * @return array
43
+     * 
44
+     * @throws \Throwable
45
+     */
46
+    public function renderSections();
47 47
 
48
-	/**
49
-	 * Add a piece of data to the view.
50
-	 * 
51
-	 * @example  $view->assign($content, $data);
52
-	 * 
53
-	 * @param  string|array  $key
54
-	 * @param  mixed  $value
55
-	 * 
56
-	 * @return self
57
-	 */
58
-	public function assign($key, $value = null): self;
48
+    /**
49
+     * Add a piece of data to the view.
50
+     * 
51
+     * @example  $view->assign($content, $data);
52
+     * 
53
+     * @param  string|array  $key
54
+     * @param  mixed  $value
55
+     * 
56
+     * @return self
57
+     */
58
+    public function assign($key, $value = null): self;
59 59
 	
60
-	/**
61
-	 * Assigns a value by reference. The benefit of binding is that values can be altered
62
-	 * without re-setting them. It is also possible to bind variables before they have values.
63
-	 * Assigned values will be available as a variable within the view file:
64
-	 * 
65
-	 * @example  $view->bind('ref', $bar);
66
-	 * 
67
-	 * @param  string  $key  Variable name
68
-	 * @param  mixed  $value  Referenced variable
69
-	 * 
70
-	 * @return self
71
-	 */
72
-	public function bind($key, & $value): self;
60
+    /**
61
+     * Assigns a value by reference. The benefit of binding is that values can be altered
62
+     * without re-setting them. It is also possible to bind variables before they have values.
63
+     * Assigned values will be available as a variable within the view file:
64
+     * 
65
+     * @example  $view->bind('ref', $bar);
66
+     * 
67
+     * @param  string  $key  Variable name
68
+     * @param  mixed  $value  Referenced variable
69
+     * 
70
+     * @return self
71
+     */
72
+    public function bind($key, & $value): self;
73 73
 
74
-	/**
75
-	 * Get the array of view data.
76
-	 * 
77
-	 * @return array
78
-	 */
79
-	public function getData(): array;
74
+    /**
75
+     * Get the array of view data.
76
+     * 
77
+     * @return array
78
+     */
79
+    public function getData(): array;
80 80
 
81
-	/**
82
-	 * Get the name of the view.
83
-	 * 
84
-	 * @return string
85
-	 */
86
-	public function getView(): string;
81
+    /**
82
+     * Get the name of the view.
83
+     * 
84
+     * @return string
85
+     */
86
+    public function getView(): string;
87 87
 
88
-	/**
89
-	 * Get the path to the view file.
90
-	 * 
91
-	 * @return string
92
-	 */
93
-	public function getPath(): string;
88
+    /**
89
+     * Get the path to the view file.
90
+     * 
91
+     * @return string
92
+     */
93
+    public function getPath(): string;
94 94
 
95
-	/**
96
-	 * Set the path to the view file.
97
-	 * 
98
-	 * @param  string  $path
99
-	 * 
100
-	 * @return void
101
-	 */
102
-	public function setPath($path): void;
95
+    /**
96
+     * Set the path to the view file.
97
+     * 
98
+     * @param  string  $path
99
+     * 
100
+     * @return void
101
+     */
102
+    public function setPath($path): void;
103 103
 
104
-	/**
105
-	 * Assigns a variable by name. Assigned values will be available as a
106
-	 * variable within the view file:
107
-	 *
108
-	 * This value can be accessed as $var within the view
109
-	 * @example $view->set(array('food' => 'bread', 'beverage' => 'water'));
110
-	 *
111
-	 * @param  string|array  $key    Variable name
112
-	 * @param  mixed         $value  Value
113
-	 *
114
-	 * @return self
115
-	 */
116
-	public function set($key, $value = null): self;
104
+    /**
105
+     * Assigns a variable by name. Assigned values will be available as a
106
+     * variable within the view file:
107
+     *
108
+     * This value can be accessed as $var within the view
109
+     * @example $view->set(array('food' => 'bread', 'beverage' => 'water'));
110
+     *
111
+     * @param  string|array  $key    Variable name
112
+     * @param  mixed         $value  Value
113
+     *
114
+     * @return self
115
+     */
116
+    public function set($key, $value = null): self;
117 117
 
118
-	/**
119
-	 * Get content as a string of HTML.
120
-	 * 
121
-	 * @return string
122
-	 */
123
-	public function toHtml();
118
+    /**
119
+     * Get content as a string of HTML.
120
+     * 
121
+     * @return string
122
+     */
123
+    public function toHtml();
124 124
 }
125 125
\ No newline at end of file
Please login to merge, or discard this patch.