diff --git a/src/Changelog.php b/src/Changelog.php index 8d9bf83..615f268 100644 --- a/src/Changelog.php +++ b/src/Changelog.php @@ -26,12 +26,12 @@ public function raw(): string $file = $this->path(); if (! file_exists($file)) { - throw new ChangelogNotFoundException(); + throw new ChangelogNotFoundException; } $contents = file_get_contents($file); if ($contents === false) { - throw new ChangelogNotFoundException(); + throw new ChangelogNotFoundException; } return $contents; diff --git a/src/ChangelogServiceProvider.php b/src/ChangelogServiceProvider.php index dc49df8..acce0a8 100644 --- a/src/ChangelogServiceProvider.php +++ b/src/ChangelogServiceProvider.php @@ -28,7 +28,7 @@ public function register(): void // Register the main class to use with the facade $this->app->singleton('changelog', function () { - return new Changelog(); + return new Changelog; }); } } diff --git a/src/Exceptions/ChangelogNotFoundException.php b/src/Exceptions/ChangelogNotFoundException.php index 4d8b383..3231b8f 100644 --- a/src/Exceptions/ChangelogNotFoundException.php +++ b/src/Exceptions/ChangelogNotFoundException.php @@ -4,6 +4,4 @@ use RuntimeException; -class ChangelogNotFoundException extends RuntimeException -{ -} +class ChangelogNotFoundException extends RuntimeException {}