Skip to content

Commit b9fc357

Browse files
author
Robin Chalas
committed
Fix merge
1 parent 2e111b3 commit b9fc357

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/Symfony/Component/Console/Application.php

+2-10
Original file line numberDiff line numberDiff line change
@@ -505,13 +505,9 @@ public function get($name)
505505
*/
506506
public function has($name)
507507
{
508-
<<<<<<< HEAD
509-
return isset($this->commands[$name]) || ($this->commandLoader && $this->commandLoader->has($name));
510-
=======
511508
$this->init();
512509

513-
return isset($this->commands[$name]);
514-
>>>>>>> 3.3
510+
return isset($this->commands[$name]) || ($this->commandLoader && $this->commandLoader->has($name));
515511
}
516512

517513
/**
@@ -588,13 +584,9 @@ public function findNamespace($namespace)
588584
*/
589585
public function find($name)
590586
{
591-
<<<<<<< HEAD
592-
$allCommands = $this->commandLoader ? array_merge($this->commandLoader->getNames(), array_keys($this->commands)) : array_keys($this->commands);
593-
=======
594587
$this->init();
595588

596-
$allCommands = array_keys($this->commands);
597-
>>>>>>> 3.3
589+
$allCommands = $this->commandLoader ? array_merge($this->commandLoader->getNames(), array_keys($this->commands)) : array_keys($this->commands);
598590
$expr = preg_replace_callback('{([^:]+|)}', function ($matches) { return preg_quote($matches[1]).'[^:]*'; }, $name);
599591
$commands = preg_grep('{^'.$expr.'}', $allCommands);
600592

0 commit comments

Comments
 (0)