Completed
Pull Request — develop (#84)
by Jaap
03:07
created
src/phpDocumentor/Reflection/Php/Factory/Trait_.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
      * @param Doc $docBlock
107 107
      * @param StrategyContainer $strategies
108 108
      * @param Context $context
109
-     * @return null|\phpDocumentor\Reflection\DocBlock
109
+     * @return null|Element
110 110
      */
111 111
     private function createDocBlock(Doc $docBlock = null, StrategyContainer $strategies, Context $context = null)
112 112
     {
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
                         break;
81 81
                     case TraitUse::class:
82 82
                         foreach ($stmt->traits as $use) {
83
-                            $trait->addUsedTrait(new Fqsen('\\'. $use->toString()));
83
+                            $trait->addUsedTrait(new Fqsen('\\' . $use->toString()));
84 84
                         }
85 85
                         break;
86 86
                 }
Please login to merge, or discard this patch.
src/phpDocumentor/Reflection/Php/ProjectFactory.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
      * Gets Namespace from the project if it exists, otherwise returns a new namepace
104 104
      *
105 105
      * @param Project $project
106
-     * @param $name
106
+     * @param string $name
107 107
      * @return Namespace_
108 108
      */
109 109
     private function getNamespaceByName(Project $project, $name)
Please login to merge, or discard this patch.
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@  discard block
 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;
14 14
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public static function createInstance()
48 48
     {
49
-       return new static(
49
+        return new static(
50 50
             [
51 51
                 new Factory\Argument(new PrettyPrinter()),
52 52
                 new Factory\Class_(),
Please login to merge, or discard this patch.
tests/component/ProjectCreationTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 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\Php\ProjectFactory;
18 17
 use phpDocumentor\Reflection\Types\Object_;
Please login to merge, or discard this patch.
tests/component/ProjectNamespaceTest.php 1 patch
Unused Use Statements   -12 removed lines patch added patch discarded remove patch
@@ -12,18 +12,6 @@
 block discarded – undo
12 12
 
13 13
 namespace phpDocumentor\Reflection;
14 14
 
15
-use Mockery as m;
16
-use phpDocumentor\Reflection\Php\Factory\Argument;
17
-use phpDocumentor\Reflection\Php\Factory\Class_;
18
-use phpDocumentor\Reflection\Php\Factory\Constant;
19
-use phpDocumentor\Reflection\Php\Factory\DocBlock as DocBlockStrategy;
20
-use phpDocumentor\Reflection\Php\Factory\File;
21
-use phpDocumentor\Reflection\Php\NodesFactory;
22
-use phpDocumentor\Reflection\Php\Factory\Function_;
23
-use phpDocumentor\Reflection\Php\Factory\Interface_;
24
-use phpDocumentor\Reflection\Php\Factory\Method;
25
-use phpDocumentor\Reflection\Php\Factory\Property;
26
-use phpDocumentor\Reflection\Php\Factory\Trait_;
27 15
 use phpDocumentor\Reflection\Php\ProjectFactory;
28 16
 
29 17
 /**
Please login to merge, or discard this patch.
tests/example.file.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,6 @@
 block discarded – undo
99 99
         /**
100 100
          * Calculates the price for this specific component.
101 101
          *
102
-         * @param float[] $...additionalPrices Additional costs may be passed
103 102
          *
104 103
          * @return float
105 104
          */
Please login to merge, or discard this patch.
tests/unit/phpDocumentor/Reflection/Php/Factory/ArgumentTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use phpDocumentor\Reflection\Php\Argument as ArgumentDescriptor;
15 15
 use phpDocumentor\Reflection\Php\ProjectFactoryStrategies;
16 16
 use phpDocumentor\Reflection\PrettyPrinter;
17
-use phpDocumentor\Reflection\Types\Context;
18 17
 use PhpParser\Node\Param;
19 18
 use Mockery as m;
20 19
 use PhpParser\Node\Scalar\String_;
Please login to merge, or discard this patch.
tests/unit/phpDocumentor/Reflection/Php/Factory/Class_Test.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -257,7 +257,7 @@
 block discarded – undo
257 257
 
258 258
 
259 259
     /**
260
-     * @return m\MockInterface|ClassNode
260
+     * @return m\MockInterface
261 261
      */
262 262
     private function buildClassMock()
263 263
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,6 @@
 block discarded – undo
21 21
 use phpDocumentor\Reflection\Fqsen;
22 22
 use phpDocumentor\Reflection\Php\StrategyContainer;
23 23
 use phpDocumentor\Reflection\DocBlock as DocBlockElement;
24
-use phpDocumentor\Reflection\Types\Context;
25 24
 use PhpParser\Node\Const_;
26 25
 use PhpParser\Node\Expr\Variable;
27 26
 use PhpParser\Node\Name;
Please login to merge, or discard this patch.
unit/phpDocumentor/Reflection/Php/Factory/ClassConstantIteratorTest.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,6 @@
 block discarded – undo
18 18
 use PhpParser\Node\Const_;
19 19
 use PhpParser\Node\Expr\Variable;
20 20
 use PhpParser\Node\Stmt\ClassConst;
21
-use PhpParser\Node\Stmt\Property as PropertyNode;
22
-use PhpParser\Node\Stmt\PropertyProperty;
23 21
 
24 22
 /**
25 23
  * Class PropertyIteratorTest
Please login to merge, or discard this patch.
tests/unit/phpDocumentor/Reflection/Php/Factory/DocBlockTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 use phpDocumentor\Reflection\DocBlock as DocblockDescriptor;
18 18
 use phpDocumentor\Reflection\DocBlockFactoryInterface;
19 19
 use phpDocumentor\Reflection\Php\StrategyContainer;
20
-use phpDocumentor\Reflection\Types\Context;
21 20
 use PhpParser\Comment\Doc;
22 21
 
23 22
 /**
Please login to merge, or discard this patch.