# tablepress/3.4/libraries/vendor/PhpSpreadsheet/Reader/Xml/Style/StyleBase.php

TablePress – Tables in WordPress made easy, version 3.4. 32 lines.

- Page: https://pluginprobe.com/plugins/tablepress/3.4/code/libraries/vendor/PhpSpreadsheet/Reader/Xml/Style/StyleBase.php
- Raw: https://pluginprobe.com/plugins/tablepress/3.4/raw/libraries/vendor/PhpSpreadsheet/Reader/Xml/Style/StyleBase.php
- Modified: 2025-08-26T04:06:14+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/tablepress/3.4/code/libraries/vendor/PhpSpreadsheet/Reader/Xml/Style/StyleBase.php#L10-L20`.

```php
<?php

namespace TablePress\PhpOffice\PhpSpreadsheet\Reader\Xml\Style;

use SimpleXMLElement;

abstract class StyleBase
{
	/** @param string[] $styleList */
	protected static function identifyFixedStyleValue(array $styleList, string &$styleAttributeValue): bool
	{
		$returnValue = false;

		$styleAttributeValue = strtolower($styleAttributeValue);
		foreach ($styleList as $style) {
			if ($styleAttributeValue == strtolower($style)) {
				$styleAttributeValue = $style;
				$returnValue = true;

				break;
			}
		}

		return $returnValue;
	}

	protected static function getAttributes(?SimpleXMLElement $simple, string $node): SimpleXMLElement
	{
		return ($simple === null) ? new SimpleXMLElement('<xml></xml>') : ($simple->attributes($node) ?? new SimpleXMLElement('<xml></xml>'));
	}
}

```
