Passed
Push — 0.7.0 ( e442b6...679d5f )
by Alexander
11:21 queued 12s
created
src/components/Core/Http/Lenevor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
  	 */
200 200
 	protected function dispatchToRouter()
201 201
 	{
202
-		return function ($request) {
202
+		return function($request) {
203 203
 			$this->app->instance('request', $request);
204 204
 
205 205
 			return $this->router->dispatch($request);
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
 		);
236 236
 
237 237
 		foreach ($middlewares as $middleware) {
238
-			if (! is_string($middleware)) {
238
+			if ( ! is_string($middleware)) {
239 239
 				continue;
240 240
 			}
241 241
 			
Please login to merge, or discard this patch.
src/components/Routing/MiddlewareResolver.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
         [$name, $parameters] = array_pad(explode(':', $name, 2), 2, null);
55 55
         
56
-        return ($map[$name] ?? $name).(! is_null($parameters) ? ':'.$parameters : '');
56
+        return ($map[$name] ?? $name).( ! is_null($parameters) ? ':'.$parameters : '');
57 57
     }
58 58
     
59 59
     /**
Please login to merge, or discard this patch.
src/components/Routing/Concerns/RouteResolver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 	 */
96 96
 	protected function runRoute(Request $request, Route $route)
97 97
 	{
98
-		$request->setRouteResolver(function () use ($route) {
98
+		$request->setRouteResolver(function() use ($route) {
99 99
 			return $route;
100 100
 		});
101 101
 
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 		return (new Pipeline($this->container))
124 124
 				->send($request)
125 125
 				->through($middleware)
126
-				->then(function ($request) use ($route) {
126
+				->then(function($request) use ($route) {
127 127
 					return $this->callResponse(
128 128
 						$request, $route->runResolver()
129 129
 					); 
Please login to merge, or discard this patch.
src/components/Routing/Router.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 	 */
242 242
 	public function redirect($uri, $destination, $status = 302)
243 243
 	{
244
-		return $this->any($uri, function () use ($destination, $status) {
244
+		return $this->any($uri, function() use ($destination, $status) {
245 245
 			return new RedirectResponse($destination, $status);
246 246
 		});
247 247
 	}
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
 	 */
258 258
 	public function view($uri, $view, $data = [])
259 259
 	{
260
-		return $this->match(['GET', 'HEAD'], $uri, function () use ($view, $data) {
260
+		return $this->match(['GET', 'HEAD'], $uri, function() use ($view, $data) {
261 261
 			return $this->container->make('view')->make($view, $data);
262 262
 		});
263 263
 	}
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
 	 */
484 484
 	public function gatherRouteMiddleware(Route $route)
485 485
 	{
486
-		$middleware = array_map(function ($name) {
486
+		$middleware = array_map(function($name) {
487 487
             return MiddlewareResolver::resolve($name, $this->middleware, $this->middlewareGroups);
488 488
         }, $route->gatherMiddleware());
489 489
 
Please login to merge, or discard this patch.
src/components/Controller/ControllerDispatcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
 
95 95
         $middleware = $controller->getMiddleware();
96 96
 
97
-        return collect($middleware)->filter(function ($data) use ($method) {
97
+        return collect($middleware)->filter(function($data) use ($method) {
98 98
             return static::methodExcludedByOptions($method, $data['options']);
99 99
         })->all();
100 100
     }
Please login to merge, or discard this patch.
src/components/Http/Request.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -840,7 +840,7 @@  discard block
 block discarded – undo
840 840
 	 */
841 841
 	public function getRouteResolver()
842 842
 	{
843
-		return $this->routeResolver ?: function () {
843
+		return $this->routeResolver ?: function() {
844 844
 			//
845 845
 		};
846 846
 	}
@@ -901,7 +901,7 @@  discard block
 block discarded – undo
901 901
 
902 902
 		foreach ($this->cookies as $key => $value)
903 903
 		{
904
-			$cookies[]= "{$key} = {$value}";
904
+			$cookies[] = "{$key} = {$value}";
905 905
 		}
906 906
 
907 907
 		if ( ! empty($cookies))
Please login to merge, or discard this patch.