original_string: public static function getConstants($html = false)
  	{
  		$result = [];
  		foreach ((new \ReflectionClass(get_class()))->getConstants() as $constant) {
  			$key = static::$cssPrefix . ' ' . static::$cssPrefix . '-' . $constant;
  
  			$result[$key] = ($html)
  				? static::icon($constant) . '&nbsp;&nbsp;' . $constant
  				: $constant;
  		}
  
  		return $result;
  	}
code: public static function getConstants($html = false)
  	{
  		$result = [];
  		foreach ((new \ReflectionClass(get_class()))->getConstants() as $constant) {
  			$key = static::$cssPrefix . ' ' . static::$cssPrefix . '-' . $constant;
  
  			$result[$key] = ($html)
  				? static::icon($constant) . '&nbsp;&nbsp;' . $constant
  				: $constant;
  		}
  
  		return $result;
  	}
code_tokens: public static function getConstants ( $ html = false ) { $ result = [ ] ; foreach ( ( new \ ReflectionClass ( get_class ( ) ) ) -> getConstants ( ) as $ constant ) { $ key = static :: $ cssPrefix . ' ' . static :: $ cssPrefix . '-' . $ constant ; $ result [ $ key ] = ( $ html ) ? static :: icon ( $ constant ) . '&nbsp;&nbsp;' . $ constant : $ constant ; } return $ result ; }
docstring: Get all icon constants for dropdown list in example
  @param bool $html whether to render icon as array value prefix
  @return array
docstring_tokens: Get all icon constants for dropdown list in example