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']); }