diff --git a/src/Helpers/Git.php b/src/Helpers/Git.php index 13b38a3..04bbd06 100644 --- a/src/Helpers/Git.php +++ b/src/Helpers/Git.php @@ -20,7 +20,7 @@ class Git public static function getCommitHash(): ? string { try { - $branch = str_replace('\n', '', last(explode('/', (string)file_get_contents(base_path() . '/.git/HEAD')))); + $branch = str_replace("\n", '', last(explode('/', (string)file_get_contents(base_path() . '/.git/HEAD')))); $hash = file_get_contents(base_path() . '/.git/refs/heads/' . $branch); } catch (Exception $exception) { throw new GitHashException($exception->getMessage(), previous: $exception);