Skip to content

Commit 7ac4716

Browse files
gaetan-hexadogactions-user
authored andcommitted
Automatically applied php-cs-fixer changes
1 parent 9e1f529 commit 7ac4716

File tree

4 files changed

+17
-16
lines changed

4 files changed

+17
-16
lines changed

src/Console/Commands/ListThemes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class ListThemes extends Command
2323
protected $headers = ['Name', 'Vendor', 'Version', 'Description', 'Extends', 'Default', 'Active'];
2424

2525
/**
26-
* List of existing themes
26+
* List of existing themes.
2727
*/
2828
protected array $themes = [];
2929

src/Theme.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ class Theme
4949
/**
5050
* The Parent theme.
5151
*/
52-
protected string|Theme|null $parent;
52+
protected string | Theme | null $parent;
5353

5454
/**
5555
* The theme statud (enabled or not).
5656
*/
5757
protected bool $enabled = false;
5858

5959
/**
60-
* Theme extra data
60+
* Theme extra data.
6161
*/
6262
protected array $extra = [];
6363

@@ -102,7 +102,7 @@ public function getAssetsPath(string $path = null): string
102102
/**
103103
* Get theme views paths.
104104
* Build Paths array.
105-
* All paths are relative to Config::get('themes-manager.directory')
105+
* All paths are relative to Config::get('themes-manager.directory').
106106
*/
107107
public function getViewPaths(string $path = ''): array
108108
{
@@ -121,7 +121,7 @@ public function getViewPaths(string $path = ''): array
121121
}
122122

123123
/**
124-
* Set extra data
124+
* Set extra data.
125125
*/
126126
public function setExtra(array $extra): self
127127
{
@@ -131,7 +131,7 @@ public function setExtra(array $extra): self
131131
}
132132

133133
/**
134-
* Set theme version
134+
* Set theme version.
135135
*/
136136
public function setVersion(string $version): self
137137
{
@@ -141,7 +141,7 @@ public function setVersion(string $version): self
141141
}
142142

143143
/**
144-
* Set theme description
144+
* Set theme description.
145145
*/
146146
public function setDescription(string $description): self
147147
{
@@ -151,7 +151,7 @@ public function setDescription(string $description): self
151151
}
152152

153153
/**
154-
* Set theme name
154+
* Set theme name.
155155
*/
156156
public function setName(string $name): self
157157
{
@@ -180,7 +180,7 @@ public function setPath(string $path): self
180180
}
181181

182182
/**
183-
* Set theme vendor
183+
* Set theme vendor.
184184
*/
185185
public function setVendor(string $vendor = null): self
186186
{
@@ -204,7 +204,7 @@ public function hasParent(): bool
204204
/**
205205
* Set parent Theme.
206206
*/
207-
public function setParent(string|Theme|null $theme): self
207+
public function setParent(string | Theme | null $theme): self
208208
{
209209
$this->parent = empty($theme) ? null : $theme;
210210

@@ -214,7 +214,7 @@ public function setParent(string|Theme|null $theme): self
214214
/**
215215
* Get parent Theme.
216216
*/
217-
public function getParent(): Theme|null
217+
public function getParent(): Theme | null
218218
{
219219
if (is_string($this->parent) && !empty($this->parent)) {
220220
$this->parent = ThemesManager::findByName($this->parent);
@@ -309,7 +309,7 @@ public function url(string $url, bool $absolute = true): string
309309
$fullUrl = $this->getAssetsPath($url);
310310

311311
if (file_exists(public_path($fullUrl))) {
312-
return ($absolute ? asset($fullUrl) : $fullUrl);
312+
return $absolute ? asset($fullUrl) : $fullUrl;
313313
}
314314

315315
// If not found then lookup in parent's theme assets path
@@ -319,7 +319,7 @@ public function url(string $url, bool $absolute = true): string
319319

320320
// No parent theme? Lookup in the public folder.
321321
if (file_exists(public_path($url))) {
322-
return ($absolute ? asset('') . $url : $url);
322+
return $absolute ? asset('') . $url : $url;
323323
}
324324

325325
Log::warning("Asset [{$url}] not found for Theme [{$this->name}]");

src/ThemeFinder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ function ($themePackage) use ($themes) {
3838
->setVersion($info->get('version', '0.1'))
3939
->setDescription($info->get('description', ''))
4040
->setParent($info->get('extra.theme.parent'))
41-
->setExtra($info->get('extra.theme', []));
41+
->setExtra($info->get('extra.theme', []))
42+
;
4243

4344
$themes->put($info->get('name'), $theme);
4445
}

src/Traits/HasViews.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ protected function loadViews()
3131
}
3232

3333
/**
34-
* Register theme's vendor views
34+
* Register theme's vendor views.
3535
*/
3636
protected function loadVendorViews(): void
3737
{
@@ -47,7 +47,7 @@ protected function loadVendorViews(): void
4747
}
4848

4949
/**
50-
* Register Mail Markdown components
50+
* Register Mail Markdown components.
5151
*/
5252
protected function loadMailComponentPaths(): void
5353
{

0 commit comments

Comments
 (0)