Skip to content

Commit b3600d7

Browse files
mvoriseknicolas-grekas
authored andcommitted
Fix "can not" spelling
1 parent 9ca59c3 commit b3600d7

File tree

6 files changed

+7
-10
lines changed

6 files changed

+7
-10
lines changed

Command/Command.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,6 @@ public static function getDefaultName()
7676
return $class === $r->class ? static::$defaultName : null;
7777
}
7878

79-
/**
80-
* @return string|null
81-
*/
8279
public static function getDefaultDescription(): ?string
8380
{
8481
$class = static::class;
@@ -173,7 +170,7 @@ public function getApplication()
173170
/**
174171
* Checks whether the command is enabled or not in the current environment.
175172
*
176-
* Override this to check for x or y and return false if the command can not
173+
* Override this to check for x or y and return false if the command cannot
177174
* run properly under the current conditions.
178175
*
179176
* @return bool

Question/Question.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function setHidden(bool $hidden)
111111
}
112112

113113
/**
114-
* In case the response can not be hidden, whether to fallback on non-hidden question or not.
114+
* In case the response cannot be hidden, whether to fallback on non-hidden question or not.
115115
*
116116
* @return bool
117117
*/
@@ -121,7 +121,7 @@ public function isHiddenFallback()
121121
}
122122

123123
/**
124-
* Sets whether to fallback on non-hidden question if the response can not be hidden.
124+
* Sets whether to fallback on non-hidden question if the response cannot be hidden.
125125
*
126126
* @return $this
127127
*/

Tests/ApplicationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ protected function normalizeLineBreaks($text)
9292
/**
9393
* Replaces the dynamic placeholders of the command help text with a static version.
9494
* The placeholder %command.full_name% includes the script path that is not predictable
95-
* and can not be tested against.
95+
* and cannot be tested against.
9696
*/
9797
protected function ensureStaticCommandHelp(Application $application)
9898
{

Tests/Descriptor/AbstractDescriptorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function testDescribeApplication(Application $application, $expectedDescr
5050
{
5151
// Replaces the dynamic placeholders of the command help text with a static version.
5252
// The placeholder %command.full_name% includes the script path that is not predictable
53-
// and can not be tested against.
53+
// and cannot be tested against.
5454
foreach ($application->all() as $command) {
5555
$command->setHelp(str_replace('%command.full_name%', 'app/console %command.name%', $command->getHelp()));
5656
}

Tests/Input/InputArgumentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function testIsArray()
5252
$argument = new InputArgument('foo', InputArgument::OPTIONAL | InputArgument::IS_ARRAY);
5353
$this->assertTrue($argument->isArray(), '->isArray() returns true if the argument can be an array');
5454
$argument = new InputArgument('foo', InputArgument::OPTIONAL);
55-
$this->assertFalse($argument->isArray(), '->isArray() returns false if the argument can not be an array');
55+
$this->assertFalse($argument->isArray(), '->isArray() returns false if the argument cannot be an array');
5656
}
5757

5858
public function testGetDescription()

Tests/Input/InputOptionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function testIsArray()
116116
$option = new InputOption('foo', null, InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY);
117117
$this->assertTrue($option->isArray(), '->isArray() returns true if the option can be an array');
118118
$option = new InputOption('foo', null, InputOption::VALUE_NONE);
119-
$this->assertFalse($option->isArray(), '->isArray() returns false if the option can not be an array');
119+
$this->assertFalse($option->isArray(), '->isArray() returns false if the option cannot be an array');
120120
}
121121

122122
public function testGetDescription()

0 commit comments

Comments
 (0)