public function findFiles(InputInterface $input, array $exclude = []): array
    {
        $this->exclude = $exclude;

        // Check base path ends with a slash:
        if (substr($this->basePath, -1) != '/') {
            $this->basePath .= '/';
        }

        $fileOption = $input->getOption('file');

        if ($fileOption !== null) {
            $file = $this->basePath . TypeCast::castString($fileOption);
            $files = [new SplFileInfo($file)];
        } else {
            // Get files to check:
            $files = [];
            $this->processDirectory('', $files);
        }

        return $files;
    }
public function findFiles(InputInterface $input, array $exclude = []): array
    {
        $this->exclude = $exclude;

        // Check base path ends with a slash:
        if (substr($this->basePath, -1) != '/') {
            $this->basePath .= '/';
        }

        $fileOption = $input->getOption('file');

        if ($fileOption !== null) {
            $file = $this->basePath . TypeCast::castString($fileOption);
            $files = [new SplFileInfo($file)];
        } else {
            // Get files to check:
            $files = [];
            $this->processDirectory('', $files);
        }

        return $files;
    }
public function findFiles ( InputInterface $ input , array $ exclude = [ ] ) : array { $ this -> exclude = $ exclude ; // Check base path ends with a slash: if ( substr ( $ this -> basePath , - 1 ) != '/' ) { $ this -> basePath .= '/' ; } $ fileOption = $ input -> getOption ( 'file' ) ; if ( $ fileOption !== null ) { $ file = $ this -> basePath . TypeCast :: castString ( $ fileOption ) ; $ files = [ new SplFileInfo ( $ file ) ] ; } else { // Get files to check: $ files = [ ] ; $ this -> processDirectory ( '' , $ files ) ; } return $ files ; }
Find all files.

@param InputInterface $input
@param array $exclude

@return array
Find all files .