Permalink
Browse files

Replace function split by explode when possible.

Signed-off-by: Mark Story <mark@mark-story.com>
  • Loading branch information...
1 parent 911a99b commit 1c0c1bc9c71da1ceb7bac9ea89fe0edf68d7dd25 @jrbasso jrbasso committed with markstory Nov 19, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 cake/console/libs/tasks/extract.php
@@ -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);

0 comments on commit 1c0c1bc

Please sign in to comment.