You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Application.php
+25-25Lines changed: 25 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -369,7 +369,7 @@ public function add(Command $command)
369
369
}
370
370
371
371
if (null === $command->getDefinition()) {
372
-
thrownewLogicException(sprintf('Command class "%s" is not correctly initialized. You probably forgot to call the parent constructor.', get_class($command)));
372
+
thrownewLogicException(sprintf('Command class "%s" is not correctly initialized. You probably forgot to call the parent constructor.', \get_class($command)));
373
373
}
374
374
375
375
$this->commands[$command->getName()] = $command;
@@ -466,7 +466,7 @@ public function findNamespace($namespace)
466
466
$message = sprintf('There are no commands defined in the "%s" namespace.', $namespace);
467
467
468
468
if ($alternatives = $this->findAlternatives($namespace, $allNamespaces)) {
469
-
if (1 == count($alternatives)) {
469
+
if (1 == \count($alternatives)) {
470
470
$message .= "\n\nDid you mean this?\n";
471
471
} else {
472
472
$message .= "\n\nDid you mean one of these?\n";
@@ -478,8 +478,8 @@ public function findNamespace($namespace)
Copy file name to clipboardExpand all lines: Command/Command.php
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ public function __construct($name = null)
63
63
$this->configure();
64
64
65
65
if (!$this->name) {
66
-
thrownewLogicException(sprintf('The command defined in "%s" cannot have an empty name.', get_class($this)));
66
+
thrownewLogicException(sprintf('The command defined in "%s" cannot have an empty name.', \get_class($this)));
67
67
}
68
68
}
69
69
@@ -207,15 +207,15 @@ public function run(InputInterface $input, OutputInterface $output)
207
207
$this->initialize($input, $output);
208
208
209
209
if (null !== $this->processTitle) {
210
-
if (function_exists('cli_set_process_title')) {
210
+
if (\function_exists('cli_set_process_title')) {
211
211
if (!@cli_set_process_title($this->processTitle)) {
212
212
if ('Darwin' === PHP_OS) {
213
213
$output->writeln('<comment>Running "cli_set_process_title" as an unprivileged user is not supported on MacOS.</comment>', OutputInterface::VERBOSITY_VERY_VERBOSE);
0 commit comments