Skip to content

Commit

Permalink
Fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
pborreli committed Mar 10, 2013
1 parent b6c2171 commit 49488b8
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ Changes:
* enhanced error messages when an unexpected token is parsed in an expression
* fixed filename not being added to syntax error messages
* added the autoescape option to enable/disable autoescaping
* removed the newline after a comment (mimicks PHP behavior)
* removed the newline after a comment (mimics PHP behavior)
* added a syntax error exception when parent block is used on a template that does not extend another one
* made the Escaper extension enabled by default
* fixed sandbox extension when used with auto output escaping
Expand Down
2 changes: 1 addition & 1 deletion lib/Twig/TokenParser/Do.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/

/**
* Evaluates an expression, disgarding the returned value.
* Evaluates an expression, discarding the returned value.
*/
class Twig_TokenParser_Do extends Twig_TokenParser
{
Expand Down
2 changes: 1 addition & 1 deletion lib/Twig/TokenParser/Set.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function parse(Twig_Token $token)
$stream->expect(Twig_Token::BLOCK_END_TYPE);

if (count($names) !== count($values)) {
throw new Twig_Error_Syntax("When using set, you must have the same number of variables and assignements.", $stream->getCurrent()->getLine(), $stream->getFilename());
throw new Twig_Error_Syntax("When using set, you must have the same number of variables and assignments.", $stream->getCurrent()->getLine(), $stream->getFilename());
}
} else {
$capture = true;
Expand Down
4 changes: 2 additions & 2 deletions test/Twig/Tests/Fixtures/tags/autoescape/literal.test
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
2. Conditional expression with only literals
{{ true ? "<br />" : "<br>" }}

3. Conditonal expression with a variable
3. Conditional expression with a variable
{{ true ? "<br />" : someVar }}

4. Nested conditionals with only literals
Expand All @@ -32,7 +32,7 @@ return array()
2. Conditional expression with only literals
<br />

3. Conditonal expression with a variable
3. Conditional expression with a variable
&lt;br /&gt;

4. Nested conditionals with only literals
Expand Down
2 changes: 1 addition & 1 deletion test/Twig/Tests/ParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function testSetMacroThrowsExceptionOnReservedMethods()
* @expectedException Twig_Error_Syntax
* @expectedExceptionMessage Unknown tag name "foo". Did you mean "for" at line 1
*/
public function testUnkownTag()
public function testUnknownTag()
{
$stream = new Twig_TokenStream(array(
new Twig_Token(Twig_Token::BLOCK_START_TYPE, '', 1),
Expand Down
2 changes: 1 addition & 1 deletion test/Twig/Tests/TemplateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function getAttributeExceptions()
public function testGetAttributeWithSandbox($object, $item, $allowed, $useExt)
{
$twig = new Twig_Environment();
$policy = new Twig_Sandbox_SecurityPolicy(array(), array(), array(/*methid*/), array(/*peop*/), array());
$policy = new Twig_Sandbox_SecurityPolicy(array(), array(), array(/*method*/), array(/*prop*/), array());
$twig->addExtension(new Twig_Extension_Sandbox($policy, !$allowed));
$template = new Twig_TemplateTest($twig, $useExt);

Expand Down
6 changes: 3 additions & 3 deletions test/Twig/Tests/escapingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Twig_Test_EscapingTest extends PHPUnit_Framework_TestCase
'.' => '.',
'-' => '-',
'_' => '_',
/* Basic alnums exluded */
/* Basic alnums excluded */
'a' => 'a',
'A' => 'A',
'z' => 'z',
Expand Down Expand Up @@ -63,7 +63,7 @@ class Twig_Test_EscapingTest extends PHPUnit_Framework_TestCase
',' => ',',
'.' => '.',
'_' => '_',
/* Basic alnums exluded */
/* Basic alnums excluded */
'a' => 'a',
'A' => 'A',
'z' => 'z',
Expand Down Expand Up @@ -127,7 +127,7 @@ class Twig_Test_EscapingTest extends PHPUnit_Framework_TestCase
',' => '\\2C ',
'.' => '\\2E ',
'_' => '\\5F ',
/* Basic alnums exluded */
/* Basic alnums excluded */
'a' => 'a',
'A' => 'A',
'z' => 'z',
Expand Down

0 comments on commit 49488b8

Please sign in to comment.