Completed
Pull Request — develop (#84)
by Jaap
03:07
created
tests/unit/phpDocumentor/Reflection/Php/Factory/Function_Test.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,6 @@
 block discarded – undo
19 19
 use phpDocumentor\Reflection\Php\Factory\Function_;
20 20
 use Mockery as m;
21 21
 use phpDocumentor\Reflection\Php\StrategyContainer;
22
-use phpDocumentor\Reflection\Types\Context;
23 22
 use PhpParser\Comment\Doc;
24 23
 
25 24
 /**
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\Const_;
22 21
 use PhpParser\Node\Expr\Variable;
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
@@ -18,7 +18,6 @@
 block discarded – undo
18 18
 use phpDocumentor\Reflection\Php\Factory;
19 19
 use Mockery as m;
20 20
 use phpDocumentor\Reflection\Php\StrategyContainer;
21
-use phpDocumentor\Reflection\Types\Context;
22 21
 use PhpParser\Comment\Doc;
23 22
 use PhpParser\Node\Stmt\ClassMethod;
24 23
 
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
@@ -18,7 +18,6 @@
 block discarded – undo
18 18
 use Mockery as m;
19 19
 use phpDocumentor\Reflection\Php\StrategyContainer;
20 20
 use phpDocumentor\Reflection\PrettyPrinter;
21
-use phpDocumentor\Reflection\Types\Context;
22 21
 use PhpParser\Comment\Doc;
23 22
 use PhpParser\Node\Scalar\String_;
24 23
 use PhpParser\Node\Stmt\Class_ as ClassNode;
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
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
 use Mockery as m;
16 16
 use phpDocumentor\Reflection\Php\ProjectFactoryStrategy;
17 17
 use phpDocumentor\Reflection\Php\StrategyContainer;
18
-use phpDocumentor\Reflection\Types\Context;
19 18
 
20 19
 /**
21 20
  * Base test case for all strategies, to be sure that they check if the can handle objects before handeling them.
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.
src/phpDocumentor/Reflection/Exception.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;
14 14
 
Please login to merge, or discard this patch.
src/phpDocumentor/Reflection/Middleware/ChainFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     public static function createExecutionChain($middlewareList, callable $lastCallable)
25 25
     {
26 26
         while ($middleware = array_pop($middlewareList)) {
27
-            if (! $middleware instanceof Middleware) {
27
+            if (!$middleware instanceof Middleware) {
28 28
                 throw new InvalidArgumentException(
29 29
                     sprintf(
30 30
                         'Middleware must be an instance of %s but %s was given',
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
                     )
34 34
                 );
35 35
             }
36
-            $lastCallable = function ($command) use ($middleware, $lastCallable) {
36
+            $lastCallable = function($command) use ($middleware, $lastCallable) {
37 37
                 return $middleware->execute($command, $lastCallable);
38 38
             };
39 39
         }
Please login to merge, or discard this patch.