public static function checkMobileBrowsers(Os $os, UserAgent $userAgent)
    {
        // Check for Opera Mini
        if (stripos($userAgent->getUserAgentString(), 'opera mini') !== false) {
            $os->setIsMobile(true);
        } // Set is mobile for Pocket IE
        elseif (stripos($userAgent->getUserAgentString(), 'mspie') !== false ||
            stripos($userAgent->getUserAgentString(), 'pocket') !== false) {
            $os->setIsMobile(true);
        }
    }
public static function checkMobileBrowsers(Os $os, UserAgent $userAgent)
    {
        // Check for Opera Mini
        if (stripos($userAgent->getUserAgentString(), 'opera mini') !== false) {
            $os->setIsMobile(true);
        } // Set is mobile for Pocket IE
        elseif (stripos($userAgent->getUserAgentString(), 'mspie') !== false ||
            stripos($userAgent->getUserAgentString(), 'pocket') !== false) {
            $os->setIsMobile(true);
        }
    }
public static function checkMobileBrowsers ( Os $ os , UserAgent $ userAgent ) { // Check for Opera Mini if ( stripos ( $ userAgent -> getUserAgentString ( ) , 'opera mini' ) !== false ) { $ os -> setIsMobile ( true ) ; } // Set is mobile for Pocket IE elseif ( stripos ( $ userAgent -> getUserAgentString ( ) , 'mspie' ) !== false || stripos ( $ userAgent -> getUserAgentString ( ) , 'pocket' ) !== false ) { $ os -> setIsMobile ( true ) ; } }
Determine if the user's browser is on a mobile device.

@param Os $os
@param UserAgent $userAgent

@return bool
Determine if the user s browser is on a mobile device .