original_string: protected function getElementClassString()
      {
          $elementClass = $this->getElementClass();
  
          if (Arr::isAssoc($elementClass)) {
              $classes = [];
  
              foreach ($elementClass as $index => $class) {
                  $classes[$index] = is_array($class) ? implode(' ', $class) : $class;
              }
  
              return $classes;
          }
  
          return implode(' ', $elementClass);
      }
code: protected function getElementClassString()
      {
          $elementClass = $this->getElementClass();
  
          if (Arr::isAssoc($elementClass)) {
              $classes = [];
  
              foreach ($elementClass as $index => $class) {
                  $classes[$index] = is_array($class) ? implode(' ', $class) : $class;
              }
  
              return $classes;
          }
  
          return implode(' ', $elementClass);
      }
code_tokens: protected function getElementClassString ( ) { $ elementClass = $ this -> getElementClass ( ) ; if ( Arr :: isAssoc ( $ elementClass ) ) { $ classes = [ ] ; foreach ( $ elementClass as $ index => $ class ) { $ classes [ $ index ] = is_array ( $ class ) ? implode ( ' ' , $ class ) : $ class ; } return $ classes ; } return implode ( ' ' , $ elementClass ) ; }
docstring: Get element class string.
  
  @return mixed
docstring_tokens: Get element class string .