Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Aug 24, 2014
1 parent b2b1ce4 commit 1dafccb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Latte/PhpWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ function($m) use ($me, $word, & $args) {
case 'word':
$code = $me->formatWord($arg); break;
case 'args':
$code = $me->formatArgs(); break; // TODO: only as node.args
$code = $me->formatArgs(); break;
case 'array':
$code = $me->formatArray(); // TODO: only as node.array
$code = $me->formatArray();
$code = $cond && $code === 'array()' ? '' : $code; break;
case 'var':
$code = var_export($arg, TRUE); break;
Expand Down
2 changes: 1 addition & 1 deletion src/Latte/Tokenizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function tokenize($input)
{
preg_match_all($this->re, $input, $tokens, PREG_SET_ORDER);
if (preg_last_error()) {
throw new Latte\RegexpException(NULL, preg_last_error());
throw new RegexpException(NULL, preg_last_error());
}
$len = 0;
$count = count($this->types);
Expand Down

0 comments on commit 1dafccb

Please sign in to comment.