original_string: protected function loadFromHttpHeader()
      {
          foreach (Yii::$app->request->getAcceptableLanguages() as $language) {
              if (in_array($language, $this->supportedLanguages)) {
                  return $language;
              }
          }
  
          return false;
      }
code: protected function loadFromHttpHeader()
      {
          foreach (Yii::$app->request->getAcceptableLanguages() as $language) {
              if (in_array($language, $this->supportedLanguages)) {
                  return $language;
              }
          }
  
          return false;
      }
code_tokens: protected function loadFromHttpHeader ( ) { foreach ( Yii :: $ app -> request -> getAcceptableLanguages ( ) as $ language ) { if ( in_array ( $ language , $ this -> supportedLanguages ) ) { return $ language ; } } return false ; }
docstring: Load language from HTTP header.
  
  @return string|bool
docstring_tokens: Load language from HTTP header .