src/Linter.php
public function getFiles()
    {
        if (empty($this->files)) {
            foreach ($this->path as $path) {
                if (is_dir($path)) {
                    $this->files = array_merge($this->files, $this->getFilesFromDir($path));
                } elseif (is_file($path)) {
                    $this->files[$path] = new SplFileInfo($path, $path, $path);
                }
            }
        }

        return $this->files;
    }
public function getFiles()
    {
        if (empty($this->files)) {
            foreach ($this->path as $path) {
                if (is_dir($path)) {
                    $this->files = array_merge($this->files, $this->getFilesFromDir($path));
                } elseif (is_file($path)) {
                    $this->files[$path] = new SplFileInfo($path, $path, $path);
                }
            }
        }

        return $this->files;
    }
public function getFiles ( ) { if ( empty ( $ this -> files ) ) { foreach ( $ this -> path as $ path ) { if ( is_dir ( $ path ) ) { $ this -> files = array_merge ( $ this -> files , $ this -> getFilesFromDir ( $ path ) ) ; } elseif ( is_file ( $ path ) ) { $ this -> files [ $ path ] = new SplFileInfo ( $ path , $ path , $ path ) ; } } } return $ this -> files ; }
Fetch files.

@return SplFileInfo[]
Fetch files .