src/Linter.php
public function setFiles(array $files)
    {
        foreach ($files as $file) {
            if (is_file($file)) {
                $file = new SplFileInfo($file, $file, $file);
            }

            if (!($file instanceof SplFileInfo)) {
                throw new InvalidArgumentException("File $file not exists.");
            }

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

        return $this;
    }
public function setFiles(array $files)
    {
        foreach ($files as $file) {
            if (is_file($file)) {
                $file = new SplFileInfo($file, $file, $file);
            }

            if (!($file instanceof SplFileInfo)) {
                throw new InvalidArgumentException("File $file not exists.");
            }

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

        return $this;
    }
public function setFiles ( array $ files ) { foreach ( $ files as $ file ) { if ( is_file ( $ file ) ) { $ file = new SplFileInfo ( $ file , $ file , $ file ) ; } if ( ! ( $ file instanceof SplFileInfo ) ) { throw new InvalidArgumentException ( "File $file not exists." ) ; } $ this -> files [ $ file -> getRealPath ( ) ] = $ file ; } return $ this ; }
Set Files.

@param string[] $files

@return \Overtrue\PHPLint\Linter
Set Files .