Permalink
Browse files

fixed CS

  • Loading branch information...
1 parent 2e90373 commit b1bfb14d4664a23a529c1b3552396ad8220196aa @fabpot fabpot committed Aug 29, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/Twig/Error.php
View
@@ -175,10 +175,9 @@ protected function findTemplateInfo(Exception $e, $currentLine, $currentFile)
$tokens = token_get_all(file_get_contents($r->getFilename()));
$templateline = -1;
$template = null;
- $tokensSize = count($tokens);
- for($j = 0; $j < $tokensSize; $j++) {
+ for ($j = 0, $tokensSize = count($tokens); $j < $tokensSize; $j++) {
$token = $tokens[$j];
-
+
if (isset($token[2]) && $token[2] >= $line) {
return array($templateline, $template);
}

0 comments on commit b1bfb14

Please sign in to comment.