protected function shouldAttachmentBeCal()
    {
        $browser = $this->getUserAgent();

        $matches = [];
        preg_match('/os (\d+)_(\d+)\s+/', $browser, $matches);
        $version = isset($matches[1]) ? ((int)$matches[1]) : 999;

        return ($version < 8);
    }
protected function shouldAttachmentBeCal()
    {
        $browser = $this->getUserAgent();

        $matches = [];
        preg_match('/os (\d+)_(\d+)\s+/', $browser, $matches);
        $version = isset($matches[1]) ? ((int)$matches[1]) : 999;

        return ($version < 8);
    }
protected function shouldAttachmentBeCal ( ) { $ browser = $ this -> getUserAgent ( ) ; $ matches = [ ] ; preg_match ( '/os (\d+)_(\d+)\s+/' , $ browser , $ matches ) ; $ version = isset ( $ matches [ 1 ] ) ? ( ( int ) $ matches [ 1 ] ) : 999 ; return ( $ version < 8 ) ; }
Checks if we should return vcard in cal wrapper

@return bool
Checks if we should return vcard in cal wrapper