src/JoliTypo/Fixer.php
public function setLocale($locale)
    {
        if (!is_string($locale) || empty($locale)) {
            throw new \InvalidArgumentException('Locale must be an IETF language tag.');
        }

        // Set the Locale on Fixer that needs it
        foreach ($this->_rules as $rule) {
            if ($rule instanceof LocaleAwareFixerInterface) {
                $rule->setLocale($locale);
            }
        }

        $this->locale = $locale;
    }
public function setLocale($locale)
    {
        if (!is_string($locale) || empty($locale)) {
            throw new \InvalidArgumentException('Locale must be an IETF language tag.');
        }

        // Set the Locale on Fixer that needs it
        foreach ($this->_rules as $rule) {
            if ($rule instanceof LocaleAwareFixerInterface) {
                $rule->setLocale($locale);
            }
        }

        $this->locale = $locale;
    }
public function setLocale ( $ locale ) { if ( ! is_string ( $ locale ) || empty ( $ locale ) ) { throw new \ InvalidArgumentException ( 'Locale must be an IETF language tag.' ) ; } // Set the Locale on Fixer that needs it foreach ( $ this -> _rules as $ rule ) { if ( $ rule instanceof LocaleAwareFixerInterface ) { $ rule -> setLocale ( $ locale ) ; } } $ this -> locale = $ locale ; }
Change the locale of the Fixer.

@param string $locale An IETF language tag

@throws \InvalidArgumentException
Change the locale of the Fixer .