JoliTypo\Fixer\Hyphen::fix PHP Method

fix() public method

public fix ( $content, StateBag $stateBag = null )
$stateBag JoliTypo\StateBag
    public function fix($content, StateBag $stateBag = null)
    {
        return $this->hyphenator->hyphenate($content);
    }

Usage Example

Beispiel #1
0
 public function testNonExistingLocale()
 {
     $fixer = new Fixer\Hyphen('toto');
     $this->assertEquals("Test", $fixer->fix("Test"));
     $this->assertEquals("Cordialement", $fixer->fix("Cordialement"));
 }