original_string: public static function getStyleDefinition($name)
      {
          if (!self::$styles) {
              self::$styles = self::initStyles();
          }
  
          if (isset(self::$styles[$name])) {
              return self::$styles[$name];
          }
  
          throw new InvalidArgumentException(sprintf('Style "%s" is not defined.', $name));
      }
code: public static function getStyleDefinition($name)
      {
          if (!self::$styles) {
              self::$styles = self::initStyles();
          }
  
          if (isset(self::$styles[$name])) {
              return self::$styles[$name];
          }
  
          throw new InvalidArgumentException(sprintf('Style "%s" is not defined.', $name));
      }
code_tokens: public static function getStyleDefinition ( $ name ) { if ( ! self :: $ styles ) { self :: $ styles = self :: initStyles ( ) ; } if ( isset ( self :: $ styles [ $ name ] ) ) { return self :: $ styles [ $ name ] ; } throw new InvalidArgumentException ( sprintf ( 'Style "%s" is not defined.' , $ name ) ) ; }
docstring: Gets a style definition by name.
  
  @param string $name The style name
  
  @return TableStyle
docstring_tokens: Gets a style definition by name .