Completed
Pull Request — develop (#91)
by Jaap
02:52
created
tests/unit/phpDocumentor/Reflection/Php/Factory/Trait_Test.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@
 block discarded – undo
174 174
     }
175 175
 
176 176
     /**
177
-     * @return m\MockInterface|TraitNode
177
+     * @return m\MockInterface
178 178
      */
179 179
     private function buildTraitMock()
180 180
     {
Please login to merge, or discard this 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.
example.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
-     * Create a project map (similar to a sitemap) of project.
4
-     *
5
-     * The Reflection component is capable of analyzing one or more files into a hierarchy of objects representing the
6
-     * structure of your project. It does this by analyzing the source code of each individual file using the
7
-     * `analyze()` method in the Analyzer class.
8
-     *
9
-     * Because the Analyzer class requires a whole series of objects that interact together a factory method `create()`
10
-     * is available. This method instantiates all objects and provides a reasonable default to start using the Analyzer.
11
-     *
12
-     * There is also a Service Provider (`\phpDocumentor\Descriptor\ServiceProvider`) that can be used with either Silex
13
-     * or Cilex instead of using the factory method; this will make it easier to plug in your own features if you want to.
14
-     */
3
+ * Create a project map (similar to a sitemap) of project.
4
+ *
5
+ * The Reflection component is capable of analyzing one or more files into a hierarchy of objects representing the
6
+ * structure of your project. It does this by analyzing the source code of each individual file using the
7
+ * `analyze()` method in the Analyzer class.
8
+ *
9
+ * Because the Analyzer class requires a whole series of objects that interact together a factory method `create()`
10
+ * is available. This method instantiates all objects and provides a reasonable default to start using the Analyzer.
11
+ *
12
+ * There is also a Service Provider (`\phpDocumentor\Descriptor\ServiceProvider`) that can be used with either Silex
13
+ * or Cilex instead of using the factory method; this will make it easier to plug in your own features if you want to.
14
+ */
15 15
 
16 16
 // use Composer's autoloader to allow the application to automatically load all classes on request.
17 17
 use phpDocumentor\Reflection\Php\Project;
Please login to merge, or discard this patch.
src/phpDocumentor/Reflection/Php/Factory/Class_.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
                 switch (get_class($stmt)) {
90 90
                     case TraitUse::class:
91 91
                         foreach ($stmt->traits as $use) {
92
-                            $classElement->addUsedTrait(new Fqsen('\\'. $use->toString()));
92
+                            $classElement->addUsedTrait(new Fqsen('\\' . $use->toString()));
93 93
                         }
94 94
                         break;
95 95
                     case PropertyNode::class:
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;
14 14
 
Please login to merge, or discard this patch.
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.
src/phpDocumentor/Reflection/Php/Factory/File.php 3 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.
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;
14 14
 
Please login to merge, or discard this patch.
Unused Use Statements   -2 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,7 +25,6 @@  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;
Please login to merge, or discard this patch.
src/phpDocumentor/Reflection/Php/Factory/Trait_.php 3 patches
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.
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;
14 14
 
Please login to merge, or discard this patch.
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -12,15 +12,11 @@
 block discarded – undo
12 12
 
13 13
 namespace phpDocumentor\Reflection\Php\Factory;
14 14
 
15
-use InvalidArgumentException;
16
-use phpDocumentor\Reflection\Element;
17 15
 use phpDocumentor\Reflection\Fqsen;
18 16
 use phpDocumentor\Reflection\Php\ProjectFactoryStrategy;
19 17
 use phpDocumentor\Reflection\Php\StrategyContainer;
20 18
 use phpDocumentor\Reflection\Php\Trait_ as TraitElement;
21 19
 use phpDocumentor\Reflection\Types\Context;
22
-use PhpParser\Comment\Doc;
23
-use PhpParser\Node;
24 20
 use PhpParser\Node\Stmt\ClassMethod;
25 21
 use PhpParser\Node\Stmt\Property as PropertyNode;
26 22
 use PhpParser\Node\Stmt\Trait_ as TraitNode;
Please login to merge, or discard this patch.
src/phpDocumentor/Reflection/Php/Visibility.php 1 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;
14 14
 
Please login to merge, or discard this patch.
src/phpDocumentor/Reflection/PrettyPrinter.php 1 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
- * phpDocumentor
4
- *
5
- * PHP Version 5.3
6
- *
7
- * @author    Mike van Riel <[email protected]>
8
- * @copyright 2010-2011 Mike van Riel / Naenius (http://www.naenius.com)
9
- * @license   http://www.opensource.org/licenses/mit-license.php MIT
10
- * @link      http://phpdoc.org
11
- */
3
+     * phpDocumentor
4
+     *
5
+     * PHP Version 5.3
6
+     *
7
+     * @author    Mike van Riel <[email protected]>
8
+     * @copyright 2010-2011 Mike van Riel / Naenius (http://www.naenius.com)
9
+     * @license   http://www.opensource.org/licenses/mit-license.php MIT
10
+     * @link      http://phpdoc.org
11
+     */
12 12
 
13 13
 namespace phpDocumentor\Reflection;
14 14
 
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/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.