for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Groundskeeper\Tokens;
class Text extends AbstractValuedToken
{
public function getType() : string
return Token::TEXT;
}
/**
* Required by the Token interface.
*/
public function toHtml(string $prefix, string $suffix) : string
$text = preg_replace("/\s+/", ' ', $this->getValue());
return $prefix . $text . $suffix;