Passed
Pull Request — 0.5 (#454)
by Philippe
66:30 queued 59:15
created
src/Management/Assistants/PublishAssistant.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             ->performedOn($this->manager->existingModel())
62 62
             ->log('published');
63 63
 
64
-        return redirect()->back()->with('messages.success', $this->manager->details()->title . ' is online gezet.');
64
+        return redirect()->back()->with('messages.success', $this->manager->details()->title.' is online gezet.');
65 65
     }
66 66
 
67 67
     public function unpublish()
@@ -75,12 +75,12 @@  discard block
 block discarded – undo
75 75
             ->performedOn($this->manager->existingModel())
76 76
             ->log('unpublished');
77 77
 
78
-        return redirect()->back()->with('messages.success', $this->manager->details()->title . ' is offline gehaald.');
78
+        return redirect()->back()->with('messages.success', $this->manager->details()->title.' is offline gehaald.');
79 79
     }
80 80
 
81 81
     public function findAll(): Collection
82 82
     {
83
-        return $this->manager->existingModel()->published()->get()->map(function ($model) {
83
+        return $this->manager->existingModel()->published()->get()->map(function($model) {
84 84
             return $this->managers->findByModel($model);
85 85
         });
86 86
     }
@@ -137,10 +137,10 @@  discard block
 block discarded – undo
137 137
             $class = 'text-warning';
138 138
         }
139 139
 
140
-        $statusAsLabel = '<span class="' . $class . '">' . $label . '</span>';
140
+        $statusAsLabel = '<span class="'.$class.'">'.$label.'</span>';
141 141
 
142 142
         if (!$plain && $this->hasUrl()) {
143
-            $statusAsLabel = '<a href="' . $this->url() . '" target="_blank">' . $statusAsLabel . '</a>';
143
+            $statusAsLabel = '<a href="'.$this->url().'" target="_blank">'.$statusAsLabel.'</a>';
144 144
         }
145 145
 
146 146
         return $statusAsLabel;
Please login to merge, or discard this patch.
src/Pages/Page.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             return static::$managedModelKey;
102 102
         }
103 103
 
104
-        throw new \Exception('Missing required static property \'managedModelKey\' on ' . static::class . '.');
104
+        throw new \Exception('Missing required static property \'managedModelKey\' on '.static::class.'.');
105 105
     }
106 106
 
107 107
     /**
@@ -141,9 +141,9 @@  discard block
 block discarded – undo
141 141
     public function flatReferenceLabel(): string
142 142
     {
143 143
         if ($this->exists) {
144
-            $status = !$this->isPublished() ? ' [' . $this->statusAsPlainLabel() . ']' : null;
144
+            $status = !$this->isPublished() ? ' ['.$this->statusAsPlainLabel().']' : null;
145 145
 
146
-            return $this->title ? $this->title . $status : '';
146
+            return $this->title ? $this->title.$status : '';
147 147
         }
148 148
 
149 149
         return '';
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         $classKey = get_class($this);
155 155
         if (property_exists($this, 'labelSingular')) {
156 156
             $labelSingular = $this->labelSingular;
157
-        } else {
157
+        }else {
158 158
             $labelSingular = Str::singular($classKey);
159 159
         }
160 160
 
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
             $locale = app()->getLocale();
195 195
         }
196 196
         try {
197
-            $memoizedKey = $this->getMorphClass() . '-' . $this->id . '-' . $locale;
197
+            $memoizedKey = $this->getMorphClass().'-'.$this->id.'-'.$locale;
198 198
 
199 199
             if (isset(static::$cachedUrls[$memoizedKey])) {
200 200
                 return static::$cachedUrls[$memoizedKey];
@@ -250,11 +250,11 @@  discard block
 block discarded – undo
250 250
     public function statusAsLabel()
251 251
     {
252 252
         if ($this->isPublished()) {
253
-            return '<a href="' . $this->url() . '" target="_blank"><em>online</em></a>';
253
+            return '<a href="'.$this->url().'" target="_blank"><em>online</em></a>';
254 254
         }
255 255
 
256 256
         if ($this->isDraft()) {
257
-            return '<a href="' . $this->url() . '" target="_blank" class="text-error"><em>offline</em></a>';
257
+            return '<a href="'.$this->url().'" target="_blank" class="text-error"><em>offline</em></a>';
258 258
         }
259 259
 
260 260
         if ($this->isArchived()) {
Please login to merge, or discard this patch.