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 Aug 1, 2024
1 parent f88d68d commit 6799de7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/Exceptions/InvalidJsonException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

namespace Hexadog\ThemesManager\Exceptions;

class InvalidJsonException extends \Exception
{
}
class InvalidJsonException extends \Exception {}
2 changes: 1 addition & 1 deletion src/Helpers/Json.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ final class Json
public function __construct(string $path, ?Filesystem $filesystem = null)
{
$this->path = $path;
$this->filesystem = $filesystem ? $filesystem : new Filesystem();
$this->filesystem = $filesystem ? $filesystem : new Filesystem;
$this->attributes = collect($this->getAttributes());
}

Expand Down
2 changes: 1 addition & 1 deletion src/Providers/PackageServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function register(): void
$this->registerConfigs();

$this->app->singleton('themes-manager', function () {
return new ThemesManager();
return new ThemesManager;
});

AliasLoader::getInstance()->alias('ThemesManager', ThemesManagerFacade::class);
Expand Down

0 comments on commit 6799de7

Please sign in to comment.