for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/**
* BorderBottomStyle class.
*
* @package YetiForcePDF\Style\Normalizer
* @copyright YetiForce Sp. z o.o
* @license MIT
* @author Rafal Pospiech <[email protected]>
*/
namespace YetiForcePDF\Style\Normalizer;
* Class BorderBottomStyle.
class BorderBottomStyle extends Normalizer
{
public function normalize($ruleValue, string $ruleName = ''): array
if (null === $this->normalized) {
if (\in_array($ruleValue, ['none', 'solid', 'dashed', 'dotted'])) {
$style = $ruleValue;
} else {
$style = 'none';
}
return $this->normalized = ['border-bottom-style' => $style];
return $this->normalized;