From d199bb5f0898ad8d1144547d97bf40bf5fe816b0 Mon Sep 17 00:00:00 2001 From: Bram Ceulemans Date: Mon, 24 Feb 2025 17:28:13 +0000 Subject: [PATCH] Pint --- src/Changelog.php | 4 ++-- src/ChangelogServiceProvider.php | 2 +- src/Exceptions/ChangelogNotFoundException.php | 4 +--- 3 files changed, 4 insertions(+), 6 deletions(-) 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 {}