Completed
Push — master ( f25038...e29456 )
by Aleh
04:21 queued 55s
created
src/Padawan/Plugin/Loader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
                 explode("-", $part)
30 30
             ));
31 31
         }, $parts));
32
-        $className .= "\\" . $this->pluginClassName;
32
+        $className .= "\\".$this->pluginClassName;
33 33
         try {
34 34
             /** @var \Padawan\Plugin\PluginInterface */
35 35
             $plugin = $this->container->get($className);
Please login to merge, or discard this patch.
src/Padawan/Framework/Complete/Resolver/ContextResolver.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
         if (strpos($badLine, '<?php') === false
124 124
             || strpos($badLine, '<?') === false
125 125
         ) {
126
-            $badLine = '<?php ' . $badLine;
126
+            $badLine = '<?php '.$badLine;
127 127
         }
128 128
         $badLine = str_replace(['elseif', 'else', 'catch'], '', $badLine);
129 129
         if ($wrapFunctionCall && $badLine[strlen($badLine) - 1] === '(') {
Please login to merge, or discard this patch.
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -28,6 +28,10 @@  discard block
 block discarded – undo
28 28
         $this->logger = $logger;
29 29
         $this->useParser = $useParser;
30 30
     }
31
+
32
+    /**
33
+     * @param string $badLine
34
+     */
31 35
     public function getContext($badLine, Index $index, Scope $scope = null)
32 36
     {
33 37
         if (empty($scope)) {
@@ -118,6 +122,9 @@  discard block
 block discarded – undo
118 122
         return $token;
119 123
     }
120 124
 
125
+    /**
126
+     * @return string
127
+     */
121 128
     protected function prepareLine($badLine, $wrapFunctionCall = true)
122 129
     {
123 130
         if (strpos($badLine, '<?php') === false
Please login to merge, or discard this patch.
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/Socket/SocketOutput.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.
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/Domain/Completer/CompleterFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     public function getCompleters(Project $project, Context $context)
40 40
     {
41 41
         $completers = [];
42
-        foreach($this->completers as $completer) {
42
+        foreach ($this->completers as $completer) {
43 43
             if ($completer->canHandle($project, $context)) {
44 44
                 $completers[] = $completer;
45 45
             }
Please login to merge, or discard this patch.
src/Padawan/Framework/Complete/CompleteEngine.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
         $context = $this->contextResolver->getContext($badLine, $project->getIndex(), $scope);
84 84
         $completers = $this->completerFactory->getCompleters($project, $context);
85 85
         $entries = [];
86
-        foreach($completers as $completer) {
86
+        foreach ($completers as $completer) {
87 87
             $entries = array_merge($entries, $completer->getEntries($project, $context));
88 88
         }
89 89
         return $entries;
Please login to merge, or discard this patch.
src/Padawan/Domain/Completion/Token.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -162,6 +162,10 @@
 block discarded – undo
162 162
     {
163 163
         $this->type = $type;
164 164
     }
165
+
166
+    /**
167
+     * @param integer $type
168
+     */
165 169
     protected function addType($type)
166 170
     {
167 171
         $this->type |= $type;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
             $this->addType(self::T_UNKNOWN);
59 59
         }
60 60
         if (!$this->isReady()) {
61
-            $this->symbol = $symbol . $this->symbol;
61
+            $this->symbol = $symbol.$this->symbol;
62 62
         }
63 63
     }
64 64
 
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
      */
173 173
     protected function removeType($type)
174 174
     {
175
-        if((bool) ($this->type & $type)){
175
+        if ((bool) ($this->type & $type)) {
176 176
             $this->type ^= $type;
177 177
         }
178 178
     }
Please login to merge, or discard this patch.