Passed
Push — master ( 58c7e8...6329ae )
by Vasyl
01:51
created
src/UrlAlias.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     public function __construct($app = null)
24 24
     {
25 25
         if (!$app) {
26
-            $app = app();   //Fallback when $app is not given
26
+            $app = app(); //Fallback when $app is not given
27 27
         }
28 28
         $this->app = $app;
29 29
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     {
35 35
         $parameters = array_wrap($parameters);
36 36
 
37
-        if (! empty($parameters[0]) && ($parameters[0] instanceof \Illuminate\Database\Eloquent\Model)) {
37
+        if (!empty($parameters[0]) && ($parameters[0] instanceof \Illuminate\Database\Eloquent\Model)) {
38 38
             $entity = $parameters[0];
39 39
             if ($entity->urlAlias) {
40 40
                 unset($parameters[0]);
Please login to merge, or discard this patch.
src/UrlAliasLocalization.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     public function __construct($app)
26 26
     {
27 27
         if (!$app) {
28
-            $app = app();   //Fallback when $app is not given
28
+            $app = app(); //Fallback when $app is not given
29 29
         }
30 30
         $this->app = $app;
31 31
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         foreach ($this->supportedLocales as $key => $item) {
123 123
             if ($modelClass = $aliasModels->where('locale', $key)->first()) {
124 124
                 $link = $modelClass->localeAlias;
125
-            } elseif($default) {
125
+            } elseif ($default) {
126 126
                 $link = $default;
127 127
             } else {
128 128
                 $link = $key;
Please login to merge, or discard this patch.