private static function checkIpad(Device $device, UserAgent $userAgent)
    {
        if (stripos($userAgent->getUserAgentString(), 'ipad') !== false) {
            $device->setName(Device::IPAD);
            return true;
        }

        return false;
    }
private static function checkIpad(Device $device, UserAgent $userAgent)
    {
        if (stripos($userAgent->getUserAgentString(), 'ipad') !== false) {
            $device->setName(Device::IPAD);
            return true;
        }

        return false;
    }
private static function checkIpad ( Device $ device , UserAgent $ userAgent ) { if ( stripos ( $ userAgent -> getUserAgentString ( ) , 'ipad' ) !== false ) { $ device -> setName ( Device :: IPAD ) ; return true ; } return false ; }
Determine if the device is iPad.

@param Device $device
@param UserAgent $userAgent
@return bool
Determine if the device is iPad .