Passed
Push — 0.7.0 ( f20096...1a66e7 )
by Alexander
03:34 queued 10s
created
src/components/Database/Query/Grammars/PostgresGrammar.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,9 @@
 block discarded – undo
63 63
      */
64 64
     public function compileInsertGetId(Builder $builder, $values, $sequence)
65 65
     {
66
-        if (is_null($sequence)) $sequence = 'id' ;
66
+        if (is_null($sequence)) {
67
+            $sequence = 'id' ;
68
+        }
67 69
 
68 70
         return $this->compileInsert($builder, $values).' returning '.$this->wrap($sequence);
69 71
     }
Please login to merge, or discard this patch.
src/components/Routing/Route.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -307,8 +307,7 @@
 block discarded – undo
307 307
 			}
308 308
 
309 309
 			return $this->runResolverCallable();
310
-		}
311
-		catch (HttpResponseException $e)
310
+		} catch (HttpResponseException $e)
312 311
 		{
313 312
 			return $e->getResponse();
314 313
 		}
Please login to merge, or discard this patch.
src/components/Routing/UrlGenerator.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -104,8 +104,7 @@  discard block
 block discarded – undo
104 104
         if ($url)
105 105
         {
106 106
             return $url;
107
-        }
108
-        elseif ($fallback)
107
+        } elseif ($fallback)
109 108
         {
110 109
             return $this->to($fallback);
111 110
         }
@@ -417,8 +416,7 @@  discard block
 block discarded – undo
417 416
         if ($route->httpOnly)
418 417
         {
419 418
             return $this->getScheme(false);
420
-        }
421
-        elseif ($route->httpsOnly)
419
+        } elseif ($route->httpsOnly)
422 420
         {
423 421
             return $this->getScheme(true);
424 422
         }
Please login to merge, or discard this patch.
src/components/Routing/Router.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -201,8 +201,7 @@  discard block
 block discarded – undo
201 201
 		if ($callback instanceof Closure) 
202 202
 		{
203 203
 			$callback($this);
204
-		}
205
-		else
204
+		} else
206 205
 		{
207 206
 			(new RouteFileRegister($this))->register($callback);
208 207
 		}
@@ -562,8 +561,7 @@  discard block
 block discarded – undo
562 561
 		if ($this->container)
563 562
 		{
564 563
 			$register = $this->container->make(ResourceRegister::class);
565
-		}
566
-		else
564
+		} else
567 565
 		{
568 566
 			$register = new ResourceRegister($this);
569 567
 		}
Please login to merge, or discard this patch.
src/components/Routing/Concerns/RouteDependencyResolver.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,8 +79,7 @@
 block discarded – undo
79 79
                 $count++;
80 80
 
81 81
                 $this->spliceOnParameters($parameters, $key, $instance);
82
-            }
83
-            elseif ( ! isset($values[$key - $count]) && $parameter->isDefaultValueAvailable())
82
+            } elseif ( ! isset($values[$key - $count]) && $parameter->isDefaultValueAvailable())
84 83
             {
85 84
                 $this->spliceOnParameters($parameters, $key, $parameter->getDefaultValue());
86 85
             }            
Please login to merge, or discard this patch.
src/components/Routing/Concerns/RouteResolver.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -107,8 +107,7 @@
 block discarded – undo
107 107
 			   is_array($response)))
108 108
 		{
109 109
 			$response = new JsonResponse($response);
110
-		}
111
-		elseif ( ! $response instanceof Response)
110
+		} elseif ( ! $response instanceof Response)
112 111
 		{
113 112
 			$response = new Response($response, 200, ['Content-Type' => 'text/html']);
114 113
 		}
Please login to merge, or discard this patch.
src/components/Routing/RouteAction.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,7 @@
 block discarded – undo
56 56
                     'uses' => $action[0].'@'.$action[1],
57 57
                     'controller' => $action[0].'@'.$action[1],
58 58
             ];
59
-        }
60
-        elseif ( ! isset($action['uses']))
59
+        } elseif ( ! isset($action['uses']))
61 60
         {
62 61
             $action['uses'] = static::findClosureAction($action);
63 62
         }
Please login to merge, or discard this patch.
src/components/Routing/ResourceRegister.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -173,8 +173,7 @@  discard block
 block discarded – undo
173 173
         if (isset($options['only']))
174 174
         {
175 175
             return array_intersect($defaults, (array) $options['only']);
176
-        }
177
-        elseif (isset($options['except']))
176
+        } elseif (isset($options['except']))
178 177
         {
179 178
             return array_diff($defaults, (array) $options['except']);
180 179
         }
@@ -391,8 +390,7 @@  discard block
 block discarded – undo
391 390
             if (is_string($options['names']))
392 391
             {
393 392
                 $resource = $options['names'];
394
-            }
395
-            elseif (isset($options['names'][$method]))
393
+            } elseif (isset($options['names'][$method]))
396 394
             {
397 395
                 return $options['names'][$method];
398 396
             }
@@ -444,8 +442,7 @@  discard block
 block discarded – undo
444 442
         if (empty($verbs))
445 443
         {
446 444
             return static::$verbs;
447
-        }
448
-        else
445
+        } else
449 446
         {
450 447
             static::$verbs = array_merge(static::$verbs, $verbs);
451 448
         }
Please login to merge, or discard this patch.
src/components/View/Engines/PhpEngine.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,8 +83,7 @@
 block discarded – undo
83 83
         try
84 84
         {
85 85
             $this->files->getRequire($path, $data);
86
-        }
87
-        catch(Throwable $e)
86
+        } catch(Throwable $e)
88 87
         {
89 88
             return $this->handleViewException($e, $obLevel);
90 89
         }
Please login to merge, or discard this patch.