File tree 1 file changed +2
-10
lines changed
src/Symfony/Component/Console
1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -505,13 +505,9 @@ public function get($name)
505
505
*/
506
506
public function has ($ name )
507
507
{
508
- <<<<<<< HEAD
509
- return isset ($ this ->commands [$ name ]) || ($ this ->commandLoader && $ this ->commandLoader ->has ($ name ));
510
- =======
511
508
$ this ->init ();
512
509
513
- return isset ($ this ->commands [$ name ]);
514
- >>>>>>> 3.3
510
+ return isset ($ this ->commands [$ name ]) || ($ this ->commandLoader && $ this ->commandLoader ->has ($ name ));
515
511
}
516
512
517
513
/**
@@ -588,13 +584,9 @@ public function findNamespace($namespace)
588
584
*/
589
585
public function find ($ name )
590
586
{
591
- <<<<<<< HEAD
592
- $ allCommands = $ this ->commandLoader ? array_merge ($ this ->commandLoader ->getNames (), array_keys ($ this ->commands )) : array_keys ($ this ->commands );
593
- =======
594
587
$ this ->init ();
595
588
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 );
598
590
$ expr = preg_replace_callback ('{([^:]+|)} ' , function ($ matches ) { return preg_quote ($ matches [1 ]).'[^:]* ' ; }, $ name );
599
591
$ commands = preg_grep ('{^ ' .$ expr .'} ' , $ allCommands );
600
592
You can’t perform that action at this time.
0 commit comments