Skip to content

Commit

Permalink
Pint
Browse files Browse the repository at this point in the history
  • Loading branch information
bram-pkg committed Feb 24, 2025
1 parent 8788173 commit d199bb5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Changelog.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/ChangelogServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
}
}
4 changes: 1 addition & 3 deletions src/Exceptions/ChangelogNotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

use RuntimeException;

class ChangelogNotFoundException extends RuntimeException
{
}
class ChangelogNotFoundException extends RuntimeException {}

0 comments on commit d199bb5

Please sign in to comment.