Skip to content

Commit 083e75f

Browse files
committed
Small adjustments
1 parent 3374074 commit 083e75f

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/Console/Commands/RegisterHooks.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Igorsgm\GitHooks\Console\Commands;
44

5+
use Exception;
56
use Igorsgm\GitHooks\GitHooks;
67
use Illuminate\Console\Command;
78

@@ -27,7 +28,7 @@ class RegisterHooks extends Command
2728
* @param GitHooks $gitHooks
2829
* @return void
2930
*
30-
* @throws \Exception
31+
* @throws Exception
3132
*/
3233
public function handle(GitHooks $gitHooks)
3334
{

src/GitHooks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function getAvailableHooks()
4444
*
4545
* @throws Exception
4646
*/
47-
public function install($hookName)
47+
public function install(string $hookName)
4848
{
4949
if (! is_dir($this->getGitHooksDir())) {
5050
throw new Exception('Git not initialized in this project.');

src/Traits/WithCommitMessage.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ trait WithCommitMessage
1414

1515
/**
1616
* Execute the console command.
17+
*
18+
* @return int|void
1719
*/
1820
public function handle()
1921
{

0 commit comments

Comments
 (0)