From a7ce6be3f8a99751fac9df41900ac8594f66899b Mon Sep 17 00:00:00 2001 From: Pascal Borreli Date: Sun, 28 Oct 2012 23:25:34 +0000 Subject: [PATCH] Fixed typos --- src/Symfony/Component/Console/Helper/DialogHelper.php | 4 ++-- src/Symfony/Component/Console/Tests/ApplicationTest.php | 4 ++-- .../Component/DomCrawler/Tests/Field/ChoiceFormFieldTest.php | 2 +- src/Symfony/Component/DomCrawler/Tests/FormTest.php | 2 +- src/Symfony/Component/Finder/Adapter/GnuFindAdapter.php | 2 +- src/Symfony/Component/Finder/Tests/FinderTest.php | 2 +- .../Form/Tests/Extension/Core/Type/CollectionTypeTest.php | 2 +- src/Symfony/Component/HttpFoundation/Response.php | 2 +- .../Component/Routing/Tests/Matcher/UrlMatcherTest.php | 2 +- .../Validator/Tests/Constraints/RegexValidatorTest.php | 4 ++-- 10 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/Symfony/Component/Console/Helper/DialogHelper.php b/src/Symfony/Component/Console/Helper/DialogHelper.php index 34538b1b0733c..232343454e963 100644 --- a/src/Symfony/Component/Console/Helper/DialogHelper.php +++ b/src/Symfony/Component/Console/Helper/DialogHelper.php @@ -264,9 +264,9 @@ private function hasSttyAvailable() return self::$stty; } - exec('/usr/bin/env stty', $output, $exicode); + exec('/usr/bin/env stty', $output, $exitcode); - return self::$stty = $exicode === 0; + return self::$stty = $exitcode === 0; } /** diff --git a/src/Symfony/Component/Console/Tests/ApplicationTest.php b/src/Symfony/Component/Console/Tests/ApplicationTest.php index f2ffe5481269a..14527c1351ce3 100644 --- a/src/Symfony/Component/Console/Tests/ApplicationTest.php +++ b/src/Symfony/Component/Console/Tests/ApplicationTest.php @@ -598,7 +598,7 @@ public function testOverwritingDefaultInputDefinitionOverwritesDefaultValues() $inputDefinition = $application->getDefinition(); - // check wether the default arguments and options are not returned any more + // check whether the default arguments and options are not returned any more $this->assertFalse($inputDefinition->hasArgument('command')); $this->assertFalse($inputDefinition->hasOption('help')); @@ -622,7 +622,7 @@ public function testSettingCustomInputDefinitionOverwritesDefaultValues() $inputDefinition = $application->getDefinition(); - // check wether the default arguments and options are not returned any more + // check whether the default arguments and options are not returned any more $this->assertFalse($inputDefinition->hasArgument('command')); $this->assertFalse($inputDefinition->hasOption('help')); diff --git a/src/Symfony/Component/DomCrawler/Tests/Field/ChoiceFormFieldTest.php b/src/Symfony/Component/DomCrawler/Tests/Field/ChoiceFormFieldTest.php index e50216cde4904..cf7cd5a2f2663 100644 --- a/src/Symfony/Component/DomCrawler/Tests/Field/ChoiceFormFieldTest.php +++ b/src/Symfony/Component/DomCrawler/Tests/Field/ChoiceFormFieldTest.php @@ -258,7 +258,7 @@ public function testUntick() $node = $this->createNode('input', '', array('type' => 'checkbox', 'name' => 'name', 'checked' => 'checked')); $field = new ChoiceFormField($node); $field->untick(); - $this->assertNull($field->getValue(), '->untick() unticks checkoxes'); + $this->assertNull($field->getValue(), '->untick() unticks checkboxes'); } public function testSelect() diff --git a/src/Symfony/Component/DomCrawler/Tests/FormTest.php b/src/Symfony/Component/DomCrawler/Tests/FormTest.php index b53a8309cae49..ef81fefa5f192 100644 --- a/src/Symfony/Component/DomCrawler/Tests/FormTest.php +++ b/src/Symfony/Component/DomCrawler/Tests/FormTest.php @@ -282,7 +282,7 @@ public function testMultiselectSetValues() { $form = $this->createForm('
'); $form->setValues(array('multi' => array("foo", "bar"))); - $this->assertEquals(array('multi' => array('foo', 'bar')), $form->getValues(), '->setValue() sets tehe values of select'); + $this->assertEquals(array('multi' => array('foo', 'bar')), $form->getValues(), '->setValue() sets the values of select'); } public function testGetPhpValues() diff --git a/src/Symfony/Component/Finder/Adapter/GnuFindAdapter.php b/src/Symfony/Component/Finder/Adapter/GnuFindAdapter.php index 6bd8ed9a2d61a..1e2a1206a6e7d 100644 --- a/src/Symfony/Component/Finder/Adapter/GnuFindAdapter.php +++ b/src/Symfony/Component/Finder/Adapter/GnuFindAdapter.php @@ -230,7 +230,7 @@ private function buildDatesFiltering(Command $command, array $dates) if (0 > $mins) { // mtime is in the future $command->add(' -mmin -0'); - // we will have no result so we dont need to continue + // we will have no result so we don't need to continue return; } diff --git a/src/Symfony/Component/Finder/Tests/FinderTest.php b/src/Symfony/Component/Finder/Tests/FinderTest.php index e6f6c8b701561..eaf6b139f9f8a 100644 --- a/src/Symfony/Component/Finder/Tests/FinderTest.php +++ b/src/Symfony/Component/Finder/Tests/FinderTest.php @@ -528,7 +528,7 @@ public function testNotContainsOnDirectory(Adapter\AdapterInterface $adapter) /** * Searching in multiple locations involves AppendIterator which does an unnecessary rewind which leaves FilterIterator - * with inner FilesystemIterator in an ivalid state. + * with inner FilesystemIterator in an invalid state. * * @see https://bugs.php.net/bug.php?id=49104 * diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/Type/CollectionTypeTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/Type/CollectionTypeTest.php index aa79fa060efc7..15896dae22f37 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/Type/CollectionTypeTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/Type/CollectionTypeTest.php @@ -141,7 +141,7 @@ public function testPrototypeMultipartPropagation() $this->assertTrue($form->createView()->vars['multipart']); } - public function testGetDataDoesNotContainsProtypeNameBeforeDataAreSet() + public function testGetDataDoesNotContainsPrototypeNameBeforeDataAreSet() { $form = $this->factory->create('collection', array(), array( 'type' => 'file', diff --git a/src/Symfony/Component/HttpFoundation/Response.php b/src/Symfony/Component/HttpFoundation/Response.php index 03d45bcc12039..a1744f721a126 100644 --- a/src/Symfony/Component/HttpFoundation/Response.php +++ b/src/Symfony/Component/HttpFoundation/Response.php @@ -1097,7 +1097,7 @@ public function isOk() } /** - * Is the reponse forbidden? + * Is the response forbidden? * * @return Boolean * diff --git a/src/Symfony/Component/Routing/Tests/Matcher/UrlMatcherTest.php b/src/Symfony/Component/Routing/Tests/Matcher/UrlMatcherTest.php index 0927c750443a3..c5e21fb05dded 100644 --- a/src/Symfony/Component/Routing/Tests/Matcher/UrlMatcherTest.php +++ b/src/Symfony/Component/Routing/Tests/Matcher/UrlMatcherTest.php @@ -240,7 +240,7 @@ public function testAdjacentVariables() $matcher = new UrlMatcher($coll, new RequestContext()); // 'w' eagerly matches as much as possible and the other variables match the remaining chars. // This also shows that the variables w-z must all exclude the separating char (the dot '.' in this case) by default requirement. - // Otherwise they would also comsume '.xml' and _format would never match as it's an optional variable. + // Otherwise they would also consume '.xml' and _format would never match as it's an optional variable. $this->assertEquals(array('w' => 'wwwww', 'x' => 'x', 'y' => 'Y', 'z' => 'Z','_format' => 'xml', '_route' => 'test'), $matcher->match('/wwwwwxYZ.xml')); // As 'y' has custom requirement and can only be of value 'y|Y', it will leave 'ZZZ' to variable z. // So with carefully chosen requirements adjacent variables, can be useful. diff --git a/src/Symfony/Component/Validator/Tests/Constraints/RegexValidatorTest.php b/src/Symfony/Component/Validator/Tests/Constraints/RegexValidatorTest.php index 4ab727897354b..1cc0609f5a94f 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/RegexValidatorTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/RegexValidatorTest.php @@ -151,13 +151,13 @@ public function testHtmlPattern() )); $this->assertNull($constraint->getHtmlPattern()); - // Automaticaly converted + // Automatically converted $constraint = new Regex(array( 'pattern' => '/^[a-z]+$/', )); $this->assertEquals('[a-z]+', $constraint->getHtmlPattern()); - // Automaticaly converted, adds .* + // Automatically converted, adds .* $constraint = new Regex(array( 'pattern' => '/[a-z]+/', ));