original_string: protected function getThemesHierarchy($themeName)
      {
          $hierarchy = [];
  
          while (null !== $themeName) {
              $theme = $this->themeManager->getTheme($themeName);
  
              $hierarchy[] = $theme;
              $themeName   = $theme->getParentTheme();
          }
  
          return array_reverse($hierarchy);
      }
code: protected function getThemesHierarchy($themeName)
      {
          $hierarchy = [];
  
          while (null !== $themeName) {
              $theme = $this->themeManager->getTheme($themeName);
  
              $hierarchy[] = $theme;
              $themeName   = $theme->getParentTheme();
          }
  
          return array_reverse($hierarchy);
      }
code_tokens: protected function getThemesHierarchy ( $ themeName ) { $ hierarchy = [ ] ; while ( null !== $ themeName ) { $ theme = $ this -> themeManager -> getTheme ( $ themeName ) ; $ hierarchy [ ] = $ theme ; $ themeName = $ theme -> getParentTheme ( ) ; } return array_reverse ( $ hierarchy ) ; }
docstring: Returns theme inheritance hierarchy with root theme as first item
  
  @param string $themeName
  
  @return Theme[]
docstring_tokens: Returns theme inheritance hierarchy with root theme as first item