src/ImboClient/ImboClient.php
private function validateLocalFile($path) {
        if (!is_file($path)) {
            throw new InvalidArgumentException('File does not exist: ' . $path);
        }

        if (!filesize($path)) {
            throw new InvalidArgumentException('File is of zero length: ' . $path);
        }
    }
private function validateLocalFile($path) {
        if (!is_file($path)) {
            throw new InvalidArgumentException('File does not exist: ' . $path);
        }

        if (!filesize($path)) {
            throw new InvalidArgumentException('File is of zero length: ' . $path);
        }
    }
private function validateLocalFile ( $ path ) { if ( ! is_file ( $ path ) ) { throw new InvalidArgumentException ( 'File does not exist: ' . $ path ) ; } if ( ! filesize ( $ path ) ) { throw new InvalidArgumentException ( 'File is of zero length: ' . $ path ) ; } }
Helper method to make sure a local file exists, and that it is not empty

@param string $path The path to a local file
@throws InvalidArgumentException
Helper method to make sure a local file exists and that it is not empty