private static function checkNokia(Os $os, UserAgent $userAgent)
    {
        if (stripos($userAgent->getUserAgentString(), 'Nokia') !== false) {
            $os->setVersion($os::VERSION_UNKNOWN);
            $os->setName($os::NOKIA);
            $os->setIsMobile(true);

            return true;
        }

        return false;
    }
private static function checkNokia(Os $os, UserAgent $userAgent)
    {
        if (stripos($userAgent->getUserAgentString(), 'Nokia') !== false) {
            $os->setVersion($os::VERSION_UNKNOWN);
            $os->setName($os::NOKIA);
            $os->setIsMobile(true);

            return true;
        }

        return false;
    }
private static function checkNokia ( Os $ os , UserAgent $ userAgent ) { if ( stripos ( $ userAgent -> getUserAgentString ( ) , 'Nokia' ) !== false ) { $ os -> setVersion ( $ os :: VERSION_UNKNOWN ) ; $ os -> setName ( $ os :: NOKIA ) ; $ os -> setIsMobile ( true ) ; return true ; } return false ; }
Determine if the user's operating system is Nokia.

@param Os $os
@param UserAgent $userAgent

@return bool
Determine if the user s operating system is Nokia .