Skip to content

Commit

Permalink
PHP Linting (Pint)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetan-hexadog authored and github-actions[bot] committed Jan 4, 2024
1 parent 82c17ea commit 7296907
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public function getVendor(): string
*/
public function hasParent(): bool
{
return !is_null($this->parent);
return ! is_null($this->parent);
}

/**
Expand Down Expand Up @@ -250,7 +250,7 @@ public function getScreenshotImageBase64(): ?string
{
$screenshotImage = $this->getAssetsPath($this->screenshot);

if (!is_file($screenshotImage)) {
if (! is_file($screenshotImage)) {
return null;
}

Expand All @@ -270,7 +270,7 @@ public function enabled(): bool
*/
public function disabled(): bool
{
return !$this->enabled();
return ! $this->enabled();
}

/**
Expand Down Expand Up @@ -387,12 +387,12 @@ protected function assertPublicAssetsPath(): void
$publicThemeVendorPath = dirname($publicThemeAssetsPath);

// Create target public theme vendor directory if required
if (!file_exists($publicThemeVendorPath)) {
if (! file_exists($publicThemeVendorPath)) {
app(Filesystem::class)->makeDirectory($publicThemeVendorPath, 0755, true);
}

// Create target symlink public theme assets directory if required
if (!file_exists($publicThemeAssetsPath)) {
if (! file_exists($publicThemeAssetsPath)) {
if (Config::get('themes-manager.symlink_relative', false)) {
app(Filesystem::class)->relativeLink($themeAssetsPath, rtrim($publicThemeAssetsPath, '/'));
} else {
Expand Down

0 comments on commit 7296907

Please sign in to comment.