for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TreeHouse\Model\Config\Matcher\Normalizer;
class DutchPhraseNormalizer implements NormalizerInterface
{
/**
* @inheritdoc
*/
public function normalize($value)
$translations = [
'.' => '',
',' => '',
'+' => ' en ',
'&' => ' en ',
];
return mb_strtolower(strtr($value, $translations));
}