Completed
Pull Request — master (#29)
by Aleh
02:51
created
src/Padawan/Domain/Completer/StaticCompleter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Padawan/Domain/Completer/ObjectCompleter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Padawan/Framework/Application.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Padawan/Command/CliCommand.php 2 patches
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,13 +12,16 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.