Skip to content

Commit

Permalink
Merge pull request #23 from igorsgm/develop
Browse files Browse the repository at this point in the history
Fix: Code Analyzer Hooks
  • Loading branch information
igorsgm authored Jun 10, 2023
2 parents c21208b + f13130f commit 3a68f06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function __construct()
*/
public function handleCommittedFiles(ChangedFiles $files, Closure $next)
{
$commitFiles = $files->getAddedToCommit();
$commitFiles = $files->getStaged();

if ($commitFiles->isEmpty() || GitHooks::isMergeInProgress()) {
return $next($files);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
$this->initializeTempDirectory(base_path('temp'));
});

test('Skips check if there are no files added to commit', function () {
test('Skips check if there are no staged files in commit', function () {
$changedFiles = mock(ChangedFiles::class)
->shouldReceive('getAddedToCommit')
->shouldReceive('getStaged')
->andReturn(collect())
->getMock();

Expand Down

0 comments on commit 3a68f06

Please sign in to comment.