@@ -25,7 +25,7 @@ public function __construct()
2525 #[\Override]
2626 public function verifyCommit (string $ commitHash ): bool
2727 {
28- $ verifyBranch = shell_exec (sprintf (
28+ $ verifyBranch = shell_exec (\ sprintf (
2929 'git rev-parse --verify -q %s ' ,
3030 escapeshellarg ($ commitHash )
3131 ));
@@ -39,7 +39,7 @@ public function verifyCommit(string $commitHash): bool
3939 #[\Override]
4040 public function getCommitLog (string $ commitHash ): string
4141 {
42- return (string )shell_exec (sprintf (
42+ return (string )shell_exec (\ sprintf (
4343 'git log --pretty=oneline -n 1 %s ' ,
4444 escapeshellarg ($ commitHash )
4545 ));
@@ -48,7 +48,7 @@ public function getCommitLog(string $commitHash): string
4848 #[\Override]
4949 public function getDiffFiles ($ baseCommit , $ headCommit ): array
5050 {
51- $ diff = shell_exec (sprintf (
51+ $ diff = shell_exec (\ sprintf (
5252 'git --no-pager diff --name-status %s..%s ' ,
5353 escapeshellarg ($ baseCommit ),
5454 escapeshellarg ($ headCommit ),
@@ -99,7 +99,7 @@ private function shellExec(string $externalCommand, string ...$args): null|false
9999 static fn ($ arg ): string => str_starts_with ($ arg , $ px ) ? substr ($ arg , \strlen ($ px )) : escapeshellarg ($ arg ),
100100 $ args
101101 );
102- $ externalCommand = sprintf ($ externalCommand , ...$ args );
102+ $ externalCommand = \ sprintf ($ externalCommand , ...$ args );
103103 }
104104
105105 return shell_exec ($ externalCommand );
0 commit comments