1717
1818 $ next = fn ($ files ) => 'passed ' ;
1919
20- $ hook = new ConcreteBaseCodeAnalyzerFixture () ;
20+ $ hook = new ConcreteBaseCodeAnalyzerFixture ;
2121 $ result = $ hook ->handleCommittedFiles ($ changedFiles , $ next );
2222 expect ($ result )->toBe ('passed ' );
2323});
2828
2929 $ next = fn ($ files ) => 'passed ' ;
3030
31- $ hook = new ConcreteBaseCodeAnalyzerFixture () ;
31+ $ hook = new ConcreteBaseCodeAnalyzerFixture ;
3232 $ result = $ hook ->handleCommittedFiles ($ changedFiles , $ next );
3333 expect ($ result )->toBe ('passed ' );
3434})->with ('modifiedFilesList ' );
@@ -44,7 +44,7 @@ function ($configName, $nonExistentPathConfig, $preCommitHookClass, $listOfFixab
4444 GitHooks::shouldReceive ('isMergeInProgress ' )->andReturn (false );
4545 GitHooks::shouldReceive ('getListOfChangedFiles ' )->andReturn ($ listOfFixablePhpFiles );
4646
47- $ preCommitHook = new $ preCommitHookClass() ;
47+ $ preCommitHook = new $ preCommitHookClass ;
4848 $ this ->artisan ('git-hooks:pre-commit ' )
4949 ->expectsOutputToContain ($ preCommitHook ->getName ().' is not installed. ' )
5050 ->assertExitCode (1 );
@@ -62,7 +62,7 @@ function ($configName, $nonExistentPathConfig, $preCommitHookClass, $listOfFixab
6262 GitHooks::shouldReceive ('isMergeInProgress ' )->andReturn (false );
6363 GitHooks::shouldReceive ('getListOfChangedFiles ' )->andReturn ($ listOfFixablePhpFiles );
6464
65- $ preCommitHook = new $ preCommitHookClass() ;
65+ $ preCommitHook = new $ preCommitHookClass ;
6666 $ this ->artisan ('git-hooks:pre-commit ' )
6767 ->expectsOutputToContain ($ preCommitHook ->getName ().' config file does not exist. ' )
6868 ->assertExitCode (1 );
0 commit comments