original_string: public function getDimensions()
      {
          $dimensions = [];
  
          if (!empty($this->getDimension())) {
              $dimensionId = str_replace('.', '_', $this->getDimension()->getId());
              $dimensions[$dimensionId] = $this->getDimension()->getName();
          }
  
          if (!empty($this->getSubtableDimension())) {
              $subDimensionId = str_replace('.', '_', $this->getSubtableDimension()->getId());
              $dimensions[$subDimensionId] = $this->getSubtableDimension()->getName();
          }
  
          if (!empty($this->getThirdLeveltableDimension())) {
              $subDimensionId = str_replace('.', '_', $this->getThirdLeveltableDimension()->getId());
              $dimensions[$subDimensionId] = $this->getThirdLeveltableDimension()->getName();
          }
  
          return $dimensions;
      }
code: public function getDimensions()
      {
          $dimensions = [];
  
          if (!empty($this->getDimension())) {
              $dimensionId = str_replace('.', '_', $this->getDimension()->getId());
              $dimensions[$dimensionId] = $this->getDimension()->getName();
          }
  
          if (!empty($this->getSubtableDimension())) {
              $subDimensionId = str_replace('.', '_', $this->getSubtableDimension()->getId());
              $dimensions[$subDimensionId] = $this->getSubtableDimension()->getName();
          }
  
          if (!empty($this->getThirdLeveltableDimension())) {
              $subDimensionId = str_replace('.', '_', $this->getThirdLeveltableDimension()->getId());
              $dimensions[$subDimensionId] = $this->getThirdLeveltableDimension()->getName();
          }
  
          return $dimensions;
      }
code_tokens: public function getDimensions ( ) { $ dimensions = [ ] ; if ( ! empty ( $ this -> getDimension ( ) ) ) { $ dimensionId = str_replace ( '.' , '_' , $ this -> getDimension ( ) -> getId ( ) ) ; $ dimensions [ $ dimensionId ] = $ this -> getDimension ( ) -> getName ( ) ; } if ( ! empty ( $ this -> getSubtableDimension ( ) ) ) { $ subDimensionId = str_replace ( '.' , '_' , $ this -> getSubtableDimension ( ) -> getId ( ) ) ; $ dimensions [ $ subDimensionId ] = $ this -> getSubtableDimension ( ) -> getName ( ) ; } if ( ! empty ( $ this -> getThirdLeveltableDimension ( ) ) ) { $ subDimensionId = str_replace ( '.' , '_' , $ this -> getThirdLeveltableDimension ( ) -> getId ( ) ) ; $ dimensions [ $ subDimensionId ] = $ this -> getThirdLeveltableDimension ( ) -> getName ( ) ; } return $ dimensions ; }
docstring: Get dimensions used for current report and its subreports
  
  @return array [dimensionId => dimensionName]
  @ignore
docstring_tokens: Get dimensions used for current report and its subreports