classes/CodeReview/PhpFileParser.php
protected function validateFilePath($fileName) {
		if (!file_exists($fileName)) {
			throw new IOException("File $fileName does not exists");
		}
		if (!is_file($fileName)) {
			throw new IOException("$fileName must be a file");
		}
		if (!is_readable($fileName)) {
			throw new IOException("File $fileName is not readable");
		}
		return true;
	}
protected function validateFilePath($fileName) {
		if (!file_exists($fileName)) {
			throw new IOException("File $fileName does not exists");
		}
		if (!is_file($fileName)) {
			throw new IOException("$fileName must be a file");
		}
		if (!is_readable($fileName)) {
			throw new IOException("File $fileName is not readable");
		}
		return true;
	}
protected function validateFilePath ( $ fileName ) { if ( ! file_exists ( $ fileName ) ) { throw new IOException ( "File $fileName does not exists" ) ; } if ( ! is_file ( $ fileName ) ) { throw new IOException ( "$fileName must be a file" ) ; } if ( ! is_readable ( $ fileName ) ) { throw new IOException ( "File $fileName is not readable" ) ; } return true ; }
Checks if file exists and is readable.

@param $fileName
@return bool
@throws \CodeReview\IOException
Checks if file exists and is readable .