original_string: public function getDefaults()
    {
      return array(
        'android'     => false,
        'browser'     => self::BROWSER,
        'cookies'     => ( count( $_COOKIE ) > 0 ) ? true : false,
        'height'      => self::HEIGHT,
        'hidpi'       => ( array_key_exists( 'HTTP_DPR', $_SERVER ) ) ? $_SERVER[ 'HTTP_DPR' ] > 1 : false,
        'ios'         => false,
        'low_speed'   => false, // deprecated
        'low_battery' => false, // deprecated
        'metered'     => $this->getMeteredDefault(),
        'touch'       => self::TOUCH,
        'user-agent'  => $this->getUserAgentDefault(),
        'viewport'    => $this->getViewportDefault(),
        'width'       => self::WIDTH
      );
    }
code: public function getDefaults()
    {
      return array(
        'android'     => false,
        'browser'     => self::BROWSER,
        'cookies'     => ( count( $_COOKIE ) > 0 ) ? true : false,
        'height'      => self::HEIGHT,
        'hidpi'       => ( array_key_exists( 'HTTP_DPR', $_SERVER ) ) ? $_SERVER[ 'HTTP_DPR' ] > 1 : false,
        'ios'         => false,
        'low_speed'   => false, // deprecated
        'low_battery' => false, // deprecated
        'metered'     => $this->getMeteredDefault(),
        'touch'       => self::TOUCH,
        'user-agent'  => $this->getUserAgentDefault(),
        'viewport'    => $this->getViewportDefault(),
        'width'       => self::WIDTH
      );
    }
code_tokens: public function getDefaults ( ) { return array ( 'android' => false , 'browser' => self :: BROWSER , 'cookies' => ( count ( $ _COOKIE ) > 0 ) ? true : false , 'height' => self :: HEIGHT , 'hidpi' => ( array_key_exists ( 'HTTP_DPR' , $ _SERVER ) ) ? $ _SERVER [ 'HTTP_DPR' ] > 1 : false , 'ios' => false , 'low_speed' => false , // deprecated 'low_battery' => false , // deprecated 'metered' => $ this -> getMeteredDefault ( ) , 'touch' => self :: TOUCH , 'user-agent' => $ this -> getUserAgentDefault ( ) , 'viewport' => $ this -> getViewportDefault ( ) , 'width' => self :: WIDTH ) ; }
docstring: These defaults come from an number of places, including client hints.  The only values based on a UA string are
  the Android & iOS values.
  
  References:
  * https://developers.google.com/web/updates/2015/09/automating-resource-selection-with-client-hints
  * http://httpwg.org/http-extensions/client-hints.html
  * https://developers.google.com/web/updates/2016/02/save-data
  
  @return array
docstring_tokens: These defaults come from an number of places including client hints . The only values based on a UA string are the Android & iOS values .