File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace Igorsgm \GitHooks \Console \Commands ;
4
4
5
+ use Exception ;
5
6
use Igorsgm \GitHooks \GitHooks ;
6
7
use Illuminate \Console \Command ;
7
8
@@ -27,7 +28,7 @@ class RegisterHooks extends Command
27
28
* @param GitHooks $gitHooks
28
29
* @return void
29
30
*
30
- * @throws \ Exception
31
+ * @throws Exception
31
32
*/
32
33
public function handle (GitHooks $ gitHooks )
33
34
{
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public function getAvailableHooks()
44
44
*
45
45
* @throws Exception
46
46
*/
47
- public function install ($ hookName )
47
+ public function install (string $ hookName )
48
48
{
49
49
if (! is_dir ($ this ->getGitHooksDir ())) {
50
50
throw new Exception ('Git not initialized in this project. ' );
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ trait WithCommitMessage
14
14
15
15
/**
16
16
* Execute the console command.
17
+ *
18
+ * @return int|void
17
19
*/
18
20
public function handle ()
19
21
{
You can’t perform that action at this time.
0 commit comments