PMA\libraries\Advisor::splitJustification PHP Метод

splitJustification() публичный статический Метод

Splits justification to text and formula.
public static splitJustification ( array $rule ) : string[]
$rule array the rule
Результат string[]
    public static function splitJustification($rule)
    {
        $jst = preg_split('/\\s*\\|\\s*/', $rule['justification'], 2);
        if (count($jst) > 1) {
            return array($jst[0], $jst[1]);
        }
        return array($rule['justification']);
    }