Skip to content

Commit

Permalink
Replace function split by explode when possible.
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Story <mark@mark-story.com>
  • Loading branch information
jrbasso authored and markstory committed Nov 21, 2009
1 parent 911a99b commit 1c0c1bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/console/libs/tasks/extract.php
Expand Up @@ -263,9 +263,9 @@ function __extractTokens() {
}

if (is_array($token)) {
$lineNumber += count(split("\n", $token[1])) - 1;
$lineNumber += count(explode("\n", $token[1])) - 1;
} else {
$lineNumber += count(split("\n", $token)) - 1;
$lineNumber += count(explode("\n", $token)) - 1;
}
}
unset($allTokens);
Expand Down

0 comments on commit 1c0c1bc

Please sign in to comment.