Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Wrap long line
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Čihař <[email protected]>
  • Loading branch information
nijel committed Oct 12, 2016
1 parent 3505173 commit a650346
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Math.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,12 @@ protected function parseOperator(TerminalExpression $expression, Stack $output,
}

protected function tokenize($string) {
$parts = preg_split('(([0-9]*\.?[0-9]+|\+|-|\(|\)|\*|%|\/|:|\?|==|<=|>=|<|>|!=|&&|\|\|)|\s+)', $string, null, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);
$parts = preg_split(
'(([0-9]*\.?[0-9]+|\+|-|\(|\)|\*|%|\/|:|\?|==|<=|>=|<|>|!=|&&|\|\|)|\s+)',
$string,
null,
PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE
);
$parts = array_map('trim', $parts);
return $parts;
}
Expand Down

0 comments on commit a650346

Please sign in to comment.