protected function getFiles(array $files, array $directories): array
    {
        $foundFiles = [];

        /** @var \SplFileInfo $file */
        foreach ($this->getFinder($directories) as $file) {
            if (\count($files) !== 0 && ! \in_array($file->getFilename(), $files, true)) {
                continue;
            }

            $foundFiles[] = $file->getRealPath();
        }

        return $foundFiles;
    }
protected function getFiles(array $files, array $directories): array
    {
        $foundFiles = [];

        /** @var \SplFileInfo $file */
        foreach ($this->getFinder($directories) as $file) {
            if (\count($files) !== 0 && ! \in_array($file->getFilename(), $files, true)) {
                continue;
            }

            $foundFiles[] = $file->getRealPath();
        }

        return $foundFiles;
    }
protected function getFiles ( array $ files , array $ directories ) : array { $ foundFiles = [ ] ; /** @var \SplFileInfo $file */ foreach ( $ this -> getFinder ( $ directories ) as $ file ) { if ( \ count ( $ files ) !== 0 && ! \ in_array ( $ file -> getFilename ( ) , $ files , true ) ) { continue ; } $ foundFiles [ ] = $ file -> getRealPath ( ) ; } return $ foundFiles ; }
Gets an array of files to lint.

@param array $files       array of files to check
@param array $directories array of directories to get the files from

@return array
Gets an array of files to lint .