Completed
Push — develop ( c8bb90...f3dade )
by Mike
02:47
created
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/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
@@ -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.
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/Interface_Test.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@
 block discarded – undo
150 150
     }
151 151
 
152 152
     /**
153
-     * @return m\MockInterface|InterfaceNode
153
+     * @return m\MockInterface
154 154
      */
155 155
     private function buildClassMock()
156 156
     {
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.
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.