src/Fiedsch/Data/File/CsvReader.php
public static function isEmpty($line, $strict = false)
    {
        if (!is_array($line)) {
            throw new \RuntimeException("got a string that should already have been split into an array");
        }
        $test = array_filter($line, function ($element) use ($strict) {
            return !Reader::isEmpty($element, $strict);
        });
        return empty($test);
    }
public static function isEmpty($line, $strict = false)
    {
        if (!is_array($line)) {
            throw new \RuntimeException("got a string that should already have been split into an array");
        }
        $test = array_filter($line, function ($element) use ($strict) {
            return !Reader::isEmpty($element, $strict);
        });
        return empty($test);
    }
public static function isEmpty ( $ line , $ strict = false ) { if ( ! is_array ( $ line ) ) { throw new \ RuntimeException ( "got a string that should already have been split into an array" ) ; } $ test = array_filter ( $ line , function ( $ element ) use ( $ strict ) { return ! Reader :: isEmpty ( $ element , $ strict ) ; } ) ; return empty ( $ test ) ; }
Check whether a line is to be considered empty.

@param array $line the line to check.

@param boolean $strict controls how to compare "empty" strings (see also Reader::isEmpty()).

@return boolean
Check whether a line is to be considered empty .