Skip to content

Commit 93f9da8

Browse files
gaetan-hexadogactions-user
authored andcommitted
Automatically applied php-cs-fixer changes
1 parent 032f104 commit 93f9da8

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/Theme.php

Lines changed: 13 additions & 13 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);
@@ -315,15 +315,15 @@ public function url(string $url, bool $absolute = true): string
315315
// Lookup asset in current's theme assets path
316316
$fullUrl = $this->getAssetsPath($manifest[$url]['file']);
317317

318-
return ($absolute ? asset($fullUrl) : $fullUrl);
318+
return $absolute ? asset($fullUrl) : $fullUrl;
319319
}
320320
}
321321

322322
// Lookup asset in current's theme assets path
323323
$fullUrl = $this->getAssetsPath($url);
324324

325325
if (file_exists(public_path($fullUrl))) {
326-
return ($absolute ? asset($fullUrl) : $fullUrl);
326+
return $absolute ? asset($fullUrl) : $fullUrl;
327327
}
328328

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

334334
// No parent theme? Lookup in the public folder.
335335
if (file_exists(public_path($url))) {
336-
return ($absolute ? asset('') . $url : $url);
336+
return $absolute ? asset('') . $url : $url;
337337
}
338338

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

0 commit comments

Comments
 (0)