lib/PHPWord/PHPWord/Style.php
public static function addParagraphStyle($styleName, $styles) {
		if(!array_key_exists($styleName, self::$_styleElements)) {
			$style = new PHPWord_Style_Paragraph();
			foreach($styles as $key => $value) {
				if(substr($key, 0, 1) != '_') {
					$key = '_'.$key;
				}
				$style->setStyleValue($key, $value);
			}
			
			self::$_styleElements[$styleName] = $style;
		}
	}
public static function addParagraphStyle($styleName, $styles) {
		if(!array_key_exists($styleName, self::$_styleElements)) {
			$style = new PHPWord_Style_Paragraph();
			foreach($styles as $key => $value) {
				if(substr($key, 0, 1) != '_') {
					$key = '_'.$key;
				}
				$style->setStyleValue($key, $value);
			}
			
			self::$_styleElements[$styleName] = $style;
		}
	}
public static function addParagraphStyle ( $ styleName , $ styles ) { if ( ! array_key_exists ( $ styleName , self :: $ _styleElements ) ) { $ style = new PHPWord_Style_Paragraph ( ) ; foreach ( $ styles as $ key => $ value ) { if ( substr ( $ key , 0 , 1 ) != '_' ) { $ key = '_' . $ key ; } $ style -> setStyleValue ( $ key , $ value ) ; } self :: $ _styleElements [ $ styleName ] = $ style ; } }
Add a paragraph style

@param string $styleName
@param array $styles
Add a paragraph style