Completed
Push — develop ( 7938f1...079ed4 )
by Jaap
04:59
created
src/phpDocumentor/Reflection/Php/Factory/File.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
         $this->nodesFactory = $nodesFactory;
69 69
         $this->adapter = $adapter;
70 70
 
71
-        $lastCallable = function ($command) {
71
+        $lastCallable = function($command) {
72 72
             return $this->createFile($command);
73 73
         };
74 74
 
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@  discard block
 block discarded – undo
13 13
 
14 14
 namespace phpDocumentor\Reflection\Php\Factory;
15 15
 
16
-use InvalidArgumentException;
17 16
 use phpDocumentor\Reflection\File as FileSystemFile;
18 17
 use phpDocumentor\Reflection\Fqsen;
19 18
 use phpDocumentor\Reflection\Middleware\ChainFactory;
@@ -26,14 +25,12 @@  discard block
 block discarded – undo
26 25
 use phpDocumentor\Reflection\Types\Context;
27 26
 use phpDocumentor\Reflection\Types\ContextFactory;
28 27
 use PhpParser\Comment\Doc;
29
-use PhpParser\Lexer;
30 28
 use PhpParser\Node;
31 29
 use PhpParser\Node\Stmt\Class_ as ClassNode;
32 30
 use PhpParser\Node\Stmt\Function_ as FunctionNode;
33 31
 use PhpParser\Node\Stmt\Interface_ as InterfaceNode;
34 32
 use PhpParser\Node\Stmt\Namespace_ as NamespaceNode;
35 33
 use PhpParser\Node\Stmt\Trait_ as TraitNode;
36
-use PhpParser\NodeAbstract;
37 34
 
38 35
 /**
39 36
  * Strategy to create File element from the provided filename.
Please login to merge, or discard this patch.
tests/unit/phpDocumentor/Reflection/Php/Factory/Function_Test.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,6 @@
 block discarded – undo
16 16
 use Mockery as m;
17 17
 use phpDocumentor\Reflection\Fqsen;
18 18
 use phpDocumentor\Reflection\Php\StrategyContainer;
19
-use phpDocumentor\Reflection\Types\Context;
20 19
 use PhpParser\Comment\Doc;
21 20
 use PhpParser\Node\Name;
22 21
 use PhpParser\Node\Stmt\ClassMethod;
Please login to merge, or discard this patch.
tests/unit/phpDocumentor/Reflection/Php/Factory/Interface_Test.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,6 @@
 block discarded – undo
16 16
 use Mockery as m;
17 17
 use phpDocumentor\Reflection\Fqsen;
18 18
 use phpDocumentor\Reflection\Php\StrategyContainer;
19
-use phpDocumentor\Reflection\Types\Context;
20 19
 use PhpParser\Comment\Doc;
21 20
 use PhpParser\Node\Name;
22 21
 use PhpParser\Node\Stmt\ClassMethod;
Please login to merge, or discard this patch.
tests/unit/phpDocumentor/Reflection/Php/Factory/MethodTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,6 @@
 block discarded – undo
16 16
 use Mockery as m;
17 17
 use phpDocumentor\Reflection\Fqsen;
18 18
 use phpDocumentor\Reflection\Php\StrategyContainer;
19
-use phpDocumentor\Reflection\Types\Context;
20 19
 use PhpParser\Comment\Doc;
21 20
 use PhpParser\Node\Name;
22 21
 use PhpParser\Node\Stmt\ClassMethod;
Please login to merge, or discard this patch.
tests/unit/phpDocumentor/Reflection/Php/Factory/PropertyTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,6 @@
 block discarded – undo
16 16
 use Mockery as m;
17 17
 use phpDocumentor\Reflection\Fqsen;
18 18
 use phpDocumentor\Reflection\Php\StrategyContainer;
19
-use phpDocumentor\Reflection\Types\Context;
20 19
 use PhpParser\Comment\Doc;
21 20
 use PhpParser\Node\Name;
22 21
 use PhpParser\Node\Stmt\ClassMethod;
Please login to merge, or discard this patch.
tests/unit/phpDocumentor/Reflection/Php/Factory/TestCase.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,6 @@
 block discarded – undo
16 16
 use Mockery as m;
17 17
 use phpDocumentor\Reflection\Fqsen;
18 18
 use phpDocumentor\Reflection\Php\StrategyContainer;
19
-use phpDocumentor\Reflection\Types\Context;
20 19
 use PhpParser\Comment\Doc;
21 20
 use PhpParser\Node\Name;
22 21
 use PhpParser\Node\Stmt\ClassMethod;
Please login to merge, or discard this patch.
src/phpDocumentor/Reflection/Php/NodesFactory.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 namespace phpDocumentor\Reflection\Php;
15 15
 
16 16
 use phpDocumentor\Reflection\NodeVisitor\ElementNameResolver;
17
-use PhpParser\Lexer;
18 17
 use PhpParser\NodeTraverser;
19 18
 use PhpParser\NodeVisitor\NameResolver;
20 19
 use PhpParser\Parser;
Please login to merge, or discard this patch.
src/phpDocumentor/Reflection/Php/Factory/Class_.php 2 patches
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -13,19 +13,16 @@
 block discarded – undo
13 13
 
14 14
 namespace phpDocumentor\Reflection\Php\Factory;
15 15
 
16
-use InvalidArgumentException;
17 16
 use phpDocumentor\Reflection\Element;
18 17
 use phpDocumentor\Reflection\Fqsen;
19 18
 use phpDocumentor\Reflection\Php\Class_ as ClassElement;
20 19
 use phpDocumentor\Reflection\Php\ProjectFactoryStrategy;
21 20
 use phpDocumentor\Reflection\Php\StrategyContainer;
22 21
 use phpDocumentor\Reflection\Types\Context;
23
-use PhpParser\Node;
24 22
 use PhpParser\Node\Stmt\Class_ as ClassNode;
25 23
 use PhpParser\Node\Stmt\ClassConst;
26 24
 use PhpParser\Node\Stmt\ClassMethod;
27 25
 use PhpParser\Node\Stmt\Property as PropertyNode;
28
-use PhpParser\Comment\Doc;
29 26
 use PhpParser\Node\Stmt\TraitUse;
30 27
 
31 28
 /**
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         $classElement = new ClassElement(
64 64
             $object->fqsen,
65 65
             $docBlock,
66
-            $object->extends ? new Fqsen('\\' . $object->extends) : null,
66
+            $object->extends ? new Fqsen('\\'.$object->extends) : null,
67 67
             $object->isAbstract(),
68 68
             $object->isFinal()
69 69
         );
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         if (isset($object->implements)) {
72 72
             foreach ($object->implements as $interfaceClassName) {
73 73
                 $classElement->addInterface(
74
-                    new Fqsen('\\' . $interfaceClassName->toString())
74
+                    new Fqsen('\\'.$interfaceClassName->toString())
75 75
                 );
76 76
             }
77 77
         }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
                 switch (get_class($stmt)) {
82 82
                     case TraitUse::class:
83 83
                         foreach ($stmt->traits as $use) {
84
-                            $classElement->addUsedTrait(new Fqsen('\\'. $use->toString()));
84
+                            $classElement->addUsedTrait(new Fqsen('\\'.$use->toString()));
85 85
                         }
86 86
                         break;
87 87
                     case PropertyNode::class:
Please login to merge, or discard this patch.
src/phpDocumentor/Reflection/Php/Factory/Method.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -12,13 +12,11 @@
 block discarded – undo
12 12
 
13 13
 namespace phpDocumentor\Reflection\Php\Factory;
14 14
 
15
-use InvalidArgumentException;
16 15
 use phpDocumentor\Reflection\Php\Method as MethodDescriptor;
17 16
 use phpDocumentor\Reflection\Php\ProjectFactoryStrategy;
18 17
 use phpDocumentor\Reflection\Php\StrategyContainer;
19 18
 use phpDocumentor\Reflection\Php\Visibility;
20 19
 use phpDocumentor\Reflection\Types\Context;
21
-use PhpParser\Comment\Doc;
22 20
 use PhpParser\Node\Stmt\ClassMethod;
23 21
 
24 22
 /**
Please login to merge, or discard this patch.
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
-     * This file is part of phpDocumentor.
4
-     *
5
-     * For the full copyright and license information, please view the LICENSE
6
-     * file that was distributed with this source code.
7
-     *
8
-     * @copyright 2010-2015 Mike van Riel<[email protected]>
9
-     * @license   http://www.opensource.org/licenses/mit-license.php MIT
10
-     * @link      http://phpdoc.org
11
-     */
3
+ * This file is part of phpDocumentor.
4
+ *
5
+ * For the full copyright and license information, please view the LICENSE
6
+ * file that was distributed with this source code.
7
+ *
8
+ * @copyright 2010-2015 Mike van Riel<[email protected]>
9
+ * @license   http://www.opensource.org/licenses/mit-license.php MIT
10
+ * @link      http://phpdoc.org
11
+ */
12 12
 
13 13
 namespace phpDocumentor\Reflection\Php\Factory;
14 14
 
Please login to merge, or discard this patch.