Completed
Push — master ( 8dcc19...0acb93 )
by Aleh
10s
created
src/Padawan/Domain/Project/FQN.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -8,15 +8,12 @@
 block discarded – undo
8 8
         if ($namespace) {
9 9
             if ($namespace instanceof FQN) {
10 10
                 $this->parts = $namespace->getParts();
11
-            }
12
-            elseif (!is_array($namespace)) {
11
+            } elseif (!is_array($namespace)) {
13 12
                 $this->parts = explode("\\", $namespace);
14
-            }
15
-            else {
13
+            } else {
16 14
                 $this->parts = $namespace;
17 15
             }
18
-        }
19
-        else {
16
+        } else {
20 17
             $this->parts = [];
21 18
         }
22 19
     }
Please login to merge, or discard this patch.
src/Padawan/Domain/Project/FQCN.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,8 +7,7 @@
 block discarded – undo
7 7
     public function __get($key) {
8 8
         if ($key === "className") {
9 9
             return $this->getClassName();
10
-        }
11
-        elseif ($key === "namespace") {
10
+        } elseif ($key === "namespace") {
12 11
             return $this->getNamespace();
13 12
         }
14 13
     }
Please login to merge, or discard this patch.
src/Padawan/Domain/Project/Node/ClassProperty.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     /**
46 46
      * @param integer $modifier
47 47
      */
48
-    public function setModifier($modifier){
48
+    public function setModifier($modifier) {
49 49
         $this->modifier = $modifier;
50 50
     }
51 51
 }
Please login to merge, or discard this patch.
src/Padawan/Parser/Parser.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -88,6 +88,10 @@
 block discarded – undo
88 88
         }
89 89
         return $nodes;
90 90
     }
91
+
92
+    /**
93
+     * @param \Padawan\Domain\Project\Index $index
94
+     */
91 95
     public function setIndex($index)
92 96
     {
93 97
         foreach ($this->walkers as $walker) {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Padawan\Domain\Project\FQN;
6 6
 use Padawan\Domain\Project\Node\Uses;
7
-use Padawan\Framework\Utils\PathResolver;
8 7
 use PhpParser\ParserFactory;
9 8
 use PhpParser\NodeTraverser as Traverser;
10 9
 use Psr\Log\LoggerInterface;
Please login to merge, or discard this patch.
src/Padawan/Command/ListCommand.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Padawan\Domain\Project;
6 6
 use Padawan\Domain\ProjectRepository;
7
-use Padawan\Domain\Project\Node\ClassData;
8 7
 use Symfony\Component\Console\Input\InputArgument;
9 8
 use Symfony\Component\Console\Input\InputInterface;
10 9
 use Padawan\Framework\Application\Socket\HttpOutput;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         /** @var Project */
36 36
         $project = $projectRepository->findByPath($path);
37 37
         $classesList = [];
38
-        $dto = function ($class) use ($path, $pathResolver) {
38
+        $dto = function($class) use ($path, $pathResolver) {
39 39
             return [
40 40
                 'fqcn' => $class->fqcn->toString(),
41 41
                 'filepath' => $pathResolver->join([$path, $class->file])
Please login to merge, or discard this patch.
src/Padawan/Framework/Application/Socket/HttpOutput.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 
24 24
     public function writeln($message, $options = 0)
25 25
     {
26
-        return $this->client->write($message . "\n");
26
+        return $this->client->write($message."\n");
27 27
     }
28 28
 
29 29
     public function disconnect()
Please login to merge, or discard this patch.