private function getFiles()
    {
        $process = new Process('git diff --cached --name-status --diff-filter=ACMR');
        $process->run();

        if ($process->isSuccessful()) {
            return array_filter(explode("\n", $process->getOutput()));
        }

        return [];
    }
private function getFiles()
    {
        $process = new Process('git diff --cached --name-status --diff-filter=ACMR');
        $process->run();

        if ($process->isSuccessful()) {
            return array_filter(explode("\n", $process->getOutput()));
        }

        return [];
    }
private function getFiles ( ) { $ process = new Process ( 'git diff --cached --name-status --diff-filter=ACMR' ) ; $ process -> run ( ) ; if ( $ process -> isSuccessful ( ) ) { return array_filter ( explode ( "\n" , $ process -> getOutput ( ) ) ) ; } return [ ] ; }
Gets the list of files from the index.

@return array
Gets the list of files from the index .