Gitamin\Services\Git\Util::isBinary PHP Method

isBinary() public method

Returns whether the file is binary.
public isBinary ( string $file ) : boolean
$file string
return boolean
    public function isBinary($file)
    {
        if (($pos = strrpos($file, '.')) !== false) {
            $fileType = substr($file, $pos + 1);
        } else {
            return false;
        }
        if (in_array($fileType, self::$binaryTypes)) {
            return true;
        }
        return false;
    }