Test Failed
Push — fix/localized-img-bug ( a2bc08...ac34e5 )
by Philippe
52:42
created
src/Pages/Page.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -115,9 +115,9 @@  discard block
 block discarded – undo
115 115
     public function flatReferenceLabel(): string
116 116
     {
117 117
         if ($this->exists) {
118
-            $status = ! $this->isPublished() ? ' [' . $this->statusAsPlainLabel().']' : null;
118
+            $status = !$this->isPublished() ? ' ['.$this->statusAsPlainLabel().']' : null;
119 119
 
120
-            return $this->title ? $this->title . $status : '';
120
+            return $this->title ? $this->title.$status : '';
121 121
         }
122 122
 
123 123
         return '';
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         // What was the creator of the assetlibrary package thinking. It sure wasn't me... I promise...
138 138
         $assets = $this->getAllFiles($type, app()->getLocale())->map->getFileUrl();
139 139
 
140
-        if($assets->first() == null)
140
+        if ($assets->first() == null)
141 141
         {
142 142
             $assets = $this->getAllFiles($type)->map->getFileUrl();
143 143
         }
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
             return '';
185 185
         }
186 186
 
187
-        $parameters = trim($this->baseUrlSegment($locale) . '/' . $slug, '/');
187
+        $parameters = trim($this->baseUrlSegment($locale).'/'.$slug, '/');
188 188
 
189 189
         $routeName = Homepage::is($this)
190 190
                         ? config('thinktomorrow.chief.routes.pages-home', 'pages.home')
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
         ];
248 248
 
249 249
         foreach ($viewPaths as $viewPath) {
250
-            if (! view()->exists($viewPath)) {
250
+            if (!view()->exists($viewPath)) {
251 251
                 continue;
252 252
             }
253 253
 
Please login to merge, or discard this patch.