original_string: protected function loadFromUri()
      {
          if ( ! $this->uriPosition) {
              return false;
          }
  
          $url = Yii::$app->request->getAbsoluteUrl();
          $parse = parse_url($url);
          if ( ! empty($parse)) {
              $path = explode('/', trim($parse['path']), $this->uriPosition + 1);
              is_string($path) and $path = [$path];
              if (isset($parse[$this->uriPosition - 1])) {
                  return $parse[0];
              }
          }
  
          return false;
      }
code: protected function loadFromUri()
      {
          if ( ! $this->uriPosition) {
              return false;
          }
  
          $url = Yii::$app->request->getAbsoluteUrl();
          $parse = parse_url($url);
          if ( ! empty($parse)) {
              $path = explode('/', trim($parse['path']), $this->uriPosition + 1);
              is_string($path) and $path = [$path];
              if (isset($parse[$this->uriPosition - 1])) {
                  return $parse[0];
              }
          }
  
          return false;
      }
code_tokens: protected function loadFromUri ( ) { if ( ! $ this -> uriPosition ) { return false ; } $ url = Yii :: $ app -> request -> getAbsoluteUrl ( ) ; $ parse = parse_url ( $ url ) ; if ( ! empty ( $ parse ) ) { $ path = explode ( '/' , trim ( $ parse [ 'path' ] ) , $ this -> uriPosition + 1 ) ; is_string ( $ path ) and $ path = [ $ path ] ; if ( isset ( $ parse [ $ this -> uriPosition - 1 ] ) ) { return $ parse [ 0 ] ; } } return false ; }
docstring: Load language from uri position.
  
  @return bool
docstring_tokens: Load language from uri position .