Completed
Push — develop ( 66de6a...7afc9d )
by Jaap
04:46 queued 03:01
created
src/phpDocumentor/Reflection/Php/Factory/Property.php 2 patches
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.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@  discard block
 block discarded – undo
12 12
 
13 13
 namespace phpDocumentor\Reflection\Php\Factory;
14 14
 
15
-use InvalidArgumentException;
16 15
 use phpDocumentor\Reflection\Location;
17 16
 use phpDocumentor\Reflection\Php\Factory;
18 17
 use phpDocumentor\Reflection\Php\Property as PropertyDescriptor;
@@ -21,7 +20,6 @@  discard block
 block discarded – undo
21 20
 use phpDocumentor\Reflection\Php\Visibility;
22 21
 use phpDocumentor\Reflection\PrettyPrinter;
23 22
 use phpDocumentor\Reflection\Types\Context;
24
-use PhpParser\Comment\Doc;
25 23
 
26 24
 /**
27 25
  * Strategy to convert PropertyIterator to PropertyDescriptor
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,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\Element;
18 17
 use phpDocumentor\Reflection\Fqsen;
19 18
 use phpDocumentor\Reflection\Location;
@@ -21,12 +20,10 @@  discard block
 block discarded – undo
21 20
 use phpDocumentor\Reflection\Php\ProjectFactoryStrategy;
22 21
 use phpDocumentor\Reflection\Php\StrategyContainer;
23 22
 use phpDocumentor\Reflection\Types\Context;
24
-use PhpParser\Node;
25 23
 use PhpParser\Node\Stmt\Class_ as ClassNode;
26 24
 use PhpParser\Node\Stmt\ClassConst;
27 25
 use PhpParser\Node\Stmt\ClassMethod;
28 26
 use PhpParser\Node\Stmt\Property as PropertyNode;
29
-use PhpParser\Comment\Doc;
30 27
 use PhpParser\Node\Stmt\TraitUse;
31 28
 
32 29
 /**
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         $classElement = new ClassElement(
65 65
             $object->fqsen,
66 66
             $docBlock,
67
-            $object->extends ? new Fqsen('\\' . $object->extends) : null,
67
+            $object->extends ? new Fqsen('\\'.$object->extends) : null,
68 68
             $object->isAbstract(),
69 69
             $object->isFinal(),
70 70
             new Location($object->getLine())
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         if (isset($object->implements)) {
74 74
             foreach ($object->implements as $interfaceClassName) {
75 75
                 $classElement->addInterface(
76
-                    new Fqsen('\\' . $interfaceClassName->toString())
76
+                    new Fqsen('\\'.$interfaceClassName->toString())
77 77
                 );
78 78
             }
79 79
         }
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
                 switch (get_class($stmt)) {
84 84
                     case TraitUse::class:
85 85
                         foreach ($stmt->traits as $use) {
86
-                            $classElement->addUsedTrait(new Fqsen('\\'. $use->toString()));
86
+                            $classElement->addUsedTrait(new Fqsen('\\'.$use->toString()));
87 87
                         }
88 88
                         break;
89 89
                     case PropertyNode::class:
Please login to merge, or discard this patch.
src/phpDocumentor/Reflection/Php/Factory/Interface_.php 2 patches
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -13,15 +13,12 @@
 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\Location;
20 19
 use phpDocumentor\Reflection\Php\ProjectFactoryStrategy;
21 20
 use phpDocumentor\Reflection\Php\StrategyContainer;
22 21
 use phpDocumentor\Reflection\Types\Context;
23
-use PhpParser\Comment\Doc;
24
-use PhpParser\Node;
25 22
 use PhpParser\Node\Stmt\ClassConst;
26 23
 use PhpParser\Node\Stmt\ClassMethod;
27 24
 use PhpParser\Node\Stmt\Interface_ as InterfaceNode;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         $docBlock = $this->createDocBlock($strategies, $object->getDocComment(), $context);
62 62
         $parents = array();
63 63
         foreach ($object->extends as $extend) {
64
-            $parents['\\' . (string)$extend] = new Fqsen('\\' . (string)$extend);
64
+            $parents['\\'.(string)$extend] = new Fqsen('\\'.(string)$extend);
65 65
         }
66 66
 
67 67
         $interface = new InterfaceElement($object->fqsen, $parents, $docBlock, new Location($object->getLine()));
Please login to merge, or discard this patch.
tests/component/ProjectCreationTest.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -12,10 +12,8 @@
 block discarded – undo
12 12
 
13 13
 namespace phpDocumentor\Reflection;
14 14
 
15
-use Mockery as m;
16 15
 use phpDocumentor\Reflection\DocBlock\Tags\Param;
17 16
 use phpDocumentor\Reflection\File\LocalFile;
18
-use phpDocumentor\Reflection\Php\Interface_;
19 17
 use phpDocumentor\Reflection\Php\ProjectFactory;
20 18
 use phpDocumentor\Reflection\Types\Object_;
21 19
 use phpDocumentor\Reflection\Types\String_;
Please login to merge, or discard this patch.
src/phpDocumentor/Reflection/Php/Method.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
             $location = new Location(-1);
94 94
         }
95 95
 
96
-        if ($returnType ===  null) {
96
+        if ($returnType === null) {
97 97
             $returnType = new Mixed_();
98 98
         }
99 99
 
Please login to merge, or discard this patch.
src/phpDocumentor/Reflection/Php/Function_.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
             $location = new Location(-1);
94 94
         }
95 95
 
96
-        if ($returnType ===  null) {
96
+        if ($returnType === null) {
97 97
             $returnType = new Mixed_();
98 98
         }
99 99
 
Please login to merge, or discard this patch.