@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | return []; |
| 28 | 28 | } |
| 29 | 29 | $index = $project->getIndex(); |
| 30 | - $this->logger->debug('Creating completion for ' . $fqcn->toString()); |
|
| 30 | + $this->logger->debug('Creating completion for '.$fqcn->toString()); |
|
| 31 | 31 | $class = $index->findClassByFQCN($fqcn); |
| 32 | 32 | if (empty($class)) { |
| 33 | 33 | $class = $index->findInterfaceByFQCN($fqcn); |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | { |
| 80 | 80 | $type = $prop->type instanceof FQCN ? $prop->type->toString() : 'mixed'; |
| 81 | 81 | return new Entry( |
| 82 | - '$' . $prop->name, |
|
| 82 | + '$'.$prop->name, |
|
| 83 | 83 | $type |
| 84 | 84 | ); |
| 85 | 85 | } |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | return []; |
| 28 | 28 | } |
| 29 | 29 | $index = $project->getIndex(); |
| 30 | - $this->logger->debug('Creating completion for ' . $fqcn->toString()); |
|
| 30 | + $this->logger->debug('Creating completion for '.$fqcn->toString()); |
|
| 31 | 31 | $class = $index->findClassByFQCN($fqcn); |
| 32 | 32 | if (empty($class)) { |
| 33 | 33 | $class = $index->findInterfaceByFQCN($fqcn); |
@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | use Symfony\Component\Console\Application as BaseApplication; |
| 8 | 8 | |
| 9 | 9 | define("PADAWAN_VERSION", "0.3"); |
| 10 | -define("STUBS_DIR", dirname(dirname(dirname(__DIR__))) . '/stubs'); |
|
| 10 | +define("STUBS_DIR", dirname(dirname(dirname(__DIR__))).'/stubs'); |
|
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | 13 | * Class Application |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | { |
| 34 | 34 | $builder = new ContainerBuilder; |
| 35 | 35 | $builder->setDefinitionCache(new \Doctrine\Common\Cache\ArrayCache); |
| 36 | - $builder->addDefinitions(__DIR__ . '/DI/config.php'); |
|
| 36 | + $builder->addDefinitions(__DIR__.'/DI/config.php'); |
|
| 37 | 37 | $this->container = $builder->build(); |
| 38 | 38 | } |
| 39 | 39 | |
@@ -12,13 +12,16 @@ |
||
| 12 | 12 | return $this->getApplication()->getContainer(); |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | + /** |
|
| 16 | + * @return \Padawan\Domain\Core\Index |
|
| 17 | + */ |
|
| 15 | 18 | public function get($name) |
| 16 | 19 | { |
| 17 | 20 | return $this->getContainer()->get($name); |
| 18 | 21 | } |
| 19 | 22 | |
| 20 | 23 | /** |
| 21 | - * @return Cli |
|
| 24 | + * @return \Symfony\Component\Console\Application|null |
|
| 22 | 25 | */ |
| 23 | 26 | public function getApplication() |
| 24 | 27 | { |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Padawan\Command; |
| 4 | 4 | |
| 5 | 5 | use Symfony\Component\Console\Command\Command; |
| 6 | -use Padawan\Framework\Application\CLI; |
|
| 7 | 6 | |
| 8 | 7 | abstract class CliCommand extends Command |
| 9 | 8 | { |