From: Pascal Borreli Date: Sun, 10 Mar 2013 02:06:44 +0000 (+0000) Subject: Fixed typos X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=49488b8f2477f444bd0aedd20bc07e5b9aa8d86a;p=web%2Fkonrad%2Ftwig.git Fixed typos --- diff --git a/CHANGELOG b/CHANGELOG index 8618b64..c83a097 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 diff --git a/lib/Twig/TokenParser/Do.php b/lib/Twig/TokenParser/Do.php index 593d1c6..f50939d 100644 --- a/lib/Twig/TokenParser/Do.php +++ b/lib/Twig/TokenParser/Do.php @@ -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 { diff --git a/lib/Twig/TokenParser/Set.php b/lib/Twig/TokenParser/Set.php index 6dbd1db..70e0b41 100644 --- a/lib/Twig/TokenParser/Set.php +++ b/lib/Twig/TokenParser/Set.php @@ -49,7 +49,7 @@ class Twig_TokenParser_Set extends Twig_TokenParser $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; diff --git a/test/Twig/Tests/Fixtures/tags/autoescape/literal.test b/test/Twig/Tests/Fixtures/tags/autoescape/literal.test index 775bfd0..e389d4d 100644 --- a/test/Twig/Tests/Fixtures/tags/autoescape/literal.test +++ b/test/Twig/Tests/Fixtures/tags/autoescape/literal.test @@ -9,7 +9,7 @@ 2. Conditional expression with only literals {{ true ? "
" : "
" }} -3. Conditonal expression with a variable +3. Conditional expression with a variable {{ true ? "
" : someVar }} 4. Nested conditionals with only literals @@ -32,7 +32,7 @@ return array() 2. Conditional expression with only literals
-3. Conditonal expression with a variable +3. Conditional expression with a variable <br /> 4. Nested conditionals with only literals diff --git a/test/Twig/Tests/ParserTest.php b/test/Twig/Tests/ParserTest.php index 9c757ee..55eb7fb 100644 --- a/test/Twig/Tests/ParserTest.php +++ b/test/Twig/Tests/ParserTest.php @@ -23,7 +23,7 @@ class Twig_Tests_ParserTest extends PHPUnit_Framework_TestCase * @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), diff --git a/test/Twig/Tests/TemplateTest.php b/test/Twig/Tests/TemplateTest.php index 448bdf8..7b821dc 100644 --- a/test/Twig/Tests/TemplateTest.php +++ b/test/Twig/Tests/TemplateTest.php @@ -67,7 +67,7 @@ class Twig_Tests_TemplateTest extends PHPUnit_Framework_TestCase 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); diff --git a/test/Twig/Tests/escapingTest.php b/test/Twig/Tests/escapingTest.php index 2492b3a..b41b5f9 100644 --- a/test/Twig/Tests/escapingTest.php +++ b/test/Twig/Tests/escapingTest.php @@ -29,7 +29,7 @@ class Twig_Test_EscapingTest extends PHPUnit_Framework_TestCase '.' => '.', '-' => '-', '_' => '_', - /* Basic alnums exluded */ + /* Basic alnums excluded */ 'a' => 'a', 'A' => 'A', 'z' => 'z', @@ -63,7 +63,7 @@ class Twig_Test_EscapingTest extends PHPUnit_Framework_TestCase ',' => ',', '.' => '.', '_' => '_', - /* Basic alnums exluded */ + /* Basic alnums excluded */ 'a' => 'a', 'A' => 'A', 'z' => 'z', @@ -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',