Commit f13130f
committed
Improve commit files retrieval and update tests
- Update BaseCodeAnalyzerPreCommitHook.php to use getStaged() instead of getAddedToCommit() for better accuracy in obtaining commit files.
- Modify test descriptions and method calls in BaseCodeAnalyzerPreCommitHookTest.php to reflect the changes made to the main file.1 parent 488d3e7 commit f13130f
File tree
2 files changed
+3
-3
lines changed- src/Console/Commands/Hooks
- tests/Features/Commands/Hooks
2 files changed
+3
-3
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
0 commit comments