Skip to content

Commit a7ce6be

Browse files
committed
Fixed typos
1 parent 9681973 commit a7ce6be

File tree

10 files changed

+13
-13
lines changed

10 files changed

+13
-13
lines changed

src/Symfony/Component/Console/Helper/DialogHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,9 @@ private function hasSttyAvailable()
264264
return self::$stty;
265265
}
266266

267-
exec('/usr/bin/env stty', $output, $exicode);
267+
exec('/usr/bin/env stty', $output, $exitcode);
268268

269-
return self::$stty = $exicode === 0;
269+
return self::$stty = $exitcode === 0;
270270
}
271271

272272
/**

src/Symfony/Component/Console/Tests/ApplicationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ public function testOverwritingDefaultInputDefinitionOverwritesDefaultValues()
598598

599599
$inputDefinition = $application->getDefinition();
600600

601-
// check wether the default arguments and options are not returned any more
601+
// check whether the default arguments and options are not returned any more
602602
$this->assertFalse($inputDefinition->hasArgument('command'));
603603

604604
$this->assertFalse($inputDefinition->hasOption('help'));
@@ -622,7 +622,7 @@ public function testSettingCustomInputDefinitionOverwritesDefaultValues()
622622

623623
$inputDefinition = $application->getDefinition();
624624

625-
// check wether the default arguments and options are not returned any more
625+
// check whether the default arguments and options are not returned any more
626626
$this->assertFalse($inputDefinition->hasArgument('command'));
627627

628628
$this->assertFalse($inputDefinition->hasOption('help'));

src/Symfony/Component/DomCrawler/Tests/Field/ChoiceFormFieldTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ public function testUntick()
258258
$node = $this->createNode('input', '', array('type' => 'checkbox', 'name' => 'name', 'checked' => 'checked'));
259259
$field = new ChoiceFormField($node);
260260
$field->untick();
261-
$this->assertNull($field->getValue(), '->untick() unticks checkoxes');
261+
$this->assertNull($field->getValue(), '->untick() unticks checkboxes');
262262
}
263263

264264
public function testSelect()

src/Symfony/Component/DomCrawler/Tests/FormTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ public function testMultiselectSetValues()
282282
{
283283
$form = $this->createForm('<form><select multiple="multiple" name="multi"><option value="foo">foo</option><option value="bar">bar</option></select><input type="submit" /></form>');
284284
$form->setValues(array('multi' => array("foo", "bar")));
285-
$this->assertEquals(array('multi' => array('foo', 'bar')), $form->getValues(), '->setValue() sets tehe values of select');
285+
$this->assertEquals(array('multi' => array('foo', 'bar')), $form->getValues(), '->setValue() sets the values of select');
286286
}
287287

288288
public function testGetPhpValues()

src/Symfony/Component/Finder/Adapter/GnuFindAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ private function buildDatesFiltering(Command $command, array $dates)
230230
if (0 > $mins) {
231231
// mtime is in the future
232232
$command->add(' -mmin -0');
233-
// we will have no result so we dont need to continue
233+
// we will have no result so we don't need to continue
234234
return;
235235
}
236236

src/Symfony/Component/Finder/Tests/FinderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ public function testNotContainsOnDirectory(Adapter\AdapterInterface $adapter)
528528

529529
/**
530530
* Searching in multiple locations involves AppendIterator which does an unnecessary rewind which leaves FilterIterator
531-
* with inner FilesystemIterator in an ivalid state.
531+
* with inner FilesystemIterator in an invalid state.
532532
*
533533
* @see https://bugs.php.net/bug.php?id=49104
534534
*

src/Symfony/Component/Form/Tests/Extension/Core/Type/CollectionTypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function testPrototypeMultipartPropagation()
141141
$this->assertTrue($form->createView()->vars['multipart']);
142142
}
143143

144-
public function testGetDataDoesNotContainsProtypeNameBeforeDataAreSet()
144+
public function testGetDataDoesNotContainsPrototypeNameBeforeDataAreSet()
145145
{
146146
$form = $this->factory->create('collection', array(), array(
147147
'type' => 'file',

src/Symfony/Component/HttpFoundation/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,7 @@ public function isOk()
10971097
}
10981098

10991099
/**
1100-
* Is the reponse forbidden?
1100+
* Is the response forbidden?
11011101
*
11021102
* @return Boolean
11031103
*

src/Symfony/Component/Routing/Tests/Matcher/UrlMatcherTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public function testAdjacentVariables()
240240
$matcher = new UrlMatcher($coll, new RequestContext());
241241
// 'w' eagerly matches as much as possible and the other variables match the remaining chars.
242242
// This also shows that the variables w-z must all exclude the separating char (the dot '.' in this case) by default requirement.
243-
// Otherwise they would also comsume '.xml' and _format would never match as it's an optional variable.
243+
// Otherwise they would also consume '.xml' and _format would never match as it's an optional variable.
244244
$this->assertEquals(array('w' => 'wwwww', 'x' => 'x', 'y' => 'Y', 'z' => 'Z','_format' => 'xml', '_route' => 'test'), $matcher->match('/wwwwwxYZ.xml'));
245245
// As 'y' has custom requirement and can only be of value 'y|Y', it will leave 'ZZZ' to variable z.
246246
// So with carefully chosen requirements adjacent variables, can be useful.

src/Symfony/Component/Validator/Tests/Constraints/RegexValidatorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,13 @@ public function testHtmlPattern()
151151
));
152152
$this->assertNull($constraint->getHtmlPattern());
153153

154-
// Automaticaly converted
154+
// Automatically converted
155155
$constraint = new Regex(array(
156156
'pattern' => '/^[a-z]+$/',
157157
));
158158
$this->assertEquals('[a-z]+', $constraint->getHtmlPattern());
159159

160-
// Automaticaly converted, adds .*
160+
// Automatically converted, adds .*
161161
$constraint = new Regex(array(
162162
'pattern' => '/[a-z]+/',
163163
));

0 commit comments

Comments
 (0)