original_string: public function getModelsPathList()
      {
          if ($this->_modelsPath === null) {
              $this->_modelsPath = $this->getBasePath() . DIRECTORY_SEPARATOR . static::$modelsSubdir; // default
              $pathList = $this->getBasePathList();
              foreach ($pathList as $path) {
                  $resultPath = $path . DIRECTORY_SEPARATOR . static::$modelsSubdir;
                  if (is_dir($resultPath)) {
                      $this->_modelsPath = $resultPath;
                      break;
                  }
              }
          }
          return $this->_modelsPath;
      }
code: public function getModelsPathList()
      {
          if ($this->_modelsPath === null) {
              $this->_modelsPath = $this->getBasePath() . DIRECTORY_SEPARATOR . static::$modelsSubdir; // default
              $pathList = $this->getBasePathList();
              foreach ($pathList as $path) {
                  $resultPath = $path . DIRECTORY_SEPARATOR . static::$modelsSubdir;
                  if (is_dir($resultPath)) {
                      $this->_modelsPath = $resultPath;
                      break;
                  }
              }
          }
          return $this->_modelsPath;
      }
code_tokens: public function getModelsPathList ( ) { if ( $ this -> _modelsPath === null ) { $ this -> _modelsPath = $ this -> getBasePath ( ) . DIRECTORY_SEPARATOR . static :: $ modelsSubdir ; // default $ pathList = $ this -> getBasePathList ( ) ; foreach ( $ pathList as $ path ) { $ resultPath = $ path . DIRECTORY_SEPARATOR . static :: $ modelsSubdir ; if ( is_dir ( $ resultPath ) ) { $ this -> _modelsPath = $ resultPath ; break ; } } } return $ this -> _modelsPath ; }
docstring: Will find first exists models directory from current and inheritance modules.
  @return string directory of models files. Defaults to "[[basePath]]/models".
docstring_tokens: Will find first exists models directory from current and inheritance modules .