original_string: protected function updateConfig($key, $value = null, $default = null)
      {
          $value = $value ?: singleton('env')->get('Cookie.'.$key);
  
          if (!$value && !singleton('env')->get('Cookie.dont_use_same_config_as_sessions')) {
              $value = singleton('env')->get('Session.'.$key);
          }
  
          if(!$value && $default) {
              $value = $default;
          }
  
          return $value;
      }
code: protected function updateConfig($key, $value = null, $default = null)
      {
          $value = $value ?: singleton('env')->get('Cookie.'.$key);
  
          if (!$value && !singleton('env')->get('Cookie.dont_use_same_config_as_sessions')) {
              $value = singleton('env')->get('Session.'.$key);
          }
  
          if(!$value && $default) {
              $value = $default;
          }
  
          return $value;
      }
code_tokens: protected function updateConfig ( $ key , $ value = null , $ default = null ) { $ value = $ value ? : singleton ( 'env' ) -> get ( 'Cookie.' . $ key ) ; if ( ! $ value && ! singleton ( 'env' ) -> get ( 'Cookie.dont_use_same_config_as_sessions' ) ) { $ value = singleton ( 'env' ) -> get ( 'Session.' . $ key ) ; } if ( ! $ value && $ default ) { $ value = $ default ; } return $ value ; }
docstring: Allow setting cookie domain
  @param string $key
  @param mixed $value
  @param mixed $default
  @return mixed
docstring_tokens: Allow setting cookie domain