Skip to content

Commit ffd9344

Browse files
Merge pull request #55 from hexadog/develop
Develop
2 parents 6b5c8e1 + 4c300c3 commit ffd9344

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Console/Commands/ListThemes.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ public function handle()
4646
}
4747

4848
if (0 == count($this->themes)) {
49-
return $this->error("Your application doesn't have any theme.");
49+
$this->error("Your application doesn't have any theme.");
50+
} else {
51+
$this->table($this->headers, $this->themes);
5052
}
51-
52-
$this->table($this->headers, $this->themes);
5353
}
5454
}

src/Theme.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Theme
4949
/**
5050
* The Parent theme.
5151
*/
52-
protected string | Theme | null $parent;
52+
protected string | Theme | null $parent = null;
5353

5454
/**
5555
* The theme statud (enabled or not).
@@ -231,7 +231,7 @@ public function setParent(string | Theme | null $theme): self
231231
*/
232232
public function getParent(): Theme | null
233233
{
234-
if (is_string($this->parent) && !empty($this->parent)) {
234+
if (is_string($this->parent)) {
235235
$this->parent = ThemesManager::findByName($this->parent);
236236
}
237237

@@ -359,7 +359,7 @@ public function url(string $url, bool $absolute = true): string
359359
/**
360360
* List theme's available layouts.
361361
*
362-
* @return Collection
362+
* @return \Illuminate\Support\Collection
363363
*/
364364
public function listLayouts()
365365
{

0 commit comments

Comments
 (0)