original_string: protected function initCachePath()
      {
          $cachePath = empty($this->cachePath) ? false : Yii::getAlias($this->cachePath);
  
          if (!empty($cachePath) && !file_exists($cachePath)) {
              FileHelper::createDirectory($cachePath);
          }
  
          return $cachePath;
      }
code: protected function initCachePath()
      {
          $cachePath = empty($this->cachePath) ? false : Yii::getAlias($this->cachePath);
  
          if (!empty($cachePath) && !file_exists($cachePath)) {
              FileHelper::createDirectory($cachePath);
          }
  
          return $cachePath;
      }
code_tokens: protected function initCachePath ( ) { $ cachePath = empty ( $ this -> cachePath ) ? false : Yii :: getAlias ( $ this -> cachePath ) ; if ( ! empty ( $ cachePath ) && ! file_exists ( $ cachePath ) ) { FileHelper :: createDirectory ( $ cachePath ) ; } return $ cachePath ; }
docstring: Create if needed and return the cache path calculated from ViewRenderer `cachePath` parameter.
  
  @throws \yii\base\Exception
  
  @return bool|string
docstring_tokens: Create if needed and return the cache path calculated from ViewRenderer cachePath parameter .