Completed
Push — develop ( a98fd2...49ed8e )
by Jaap
09:10
created
Descriptor/Validator/Constraints/Functions/DoesParamsExistsValidator.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -11,9 +11,6 @@
 block discarded – undo
11 11
 
12 12
 namespace phpDocumentor\Plugin\Core\Descriptor\Validator\Constraints\Functions;
13 13
 
14
-use phpDocumentor\Descriptor\MethodDescriptor;
15
-use phpDocumentor\Descriptor\FunctionDescriptor;
16
-use phpDocumentor\Descriptor\Tag\ParamDescriptor;
17 14
 use Symfony\Component\Validator\Constraint;
18 15
 use Symfony\Component\Validator\ConstraintValidator;
19 16
 use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
Please login to merge, or discard this patch.
src/phpDocumentor/Plugin/Twig/Extension.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
      * See the Class' DocBlock for a listing of functionality added by this
104 104
      * Extension.
105 105
      *
106
-     * @return \Twig_FunctionInterface[]
106
+     * @return \Twig_SimpleFunction[]
107 107
      */
108 108
     public function getFunctions()
109 109
     {
Please login to merge, or discard this patch.
src/phpDocumentor/Plugin/Graphs/Writer/Graph.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -291,7 +291,7 @@
 block discarded – undo
291 291
     }
292 292
 
293 293
     /**
294
-     * @param $full_namespace_name
294
+     * @param string $full_namespace_name
295 295
      * @param $label
296 296
      *
297 297
      * @return mixed
Please login to merge, or discard this patch.
tests/unit/phpDocumentor/Compiler/Linker/LinkerTest.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
     }
453 453
 
454 454
     /**
455
-     * @param $result
455
+     * @param \stdClass $result
456 456
      *
457 457
      * @return array
458 458
      */
@@ -472,7 +472,7 @@  discard block
 block discarded – undo
472 472
     }
473 473
 
474 474
     /**
475
-     * @param $result
475
+     * @param \stdClass $result
476 476
      *
477 477
      * @return array
478 478
      */
@@ -524,7 +524,7 @@  discard block
 block discarded – undo
524 524
     /**
525 525
      * Returns a SeeDescriptor with its reference set.
526 526
      *
527
-     * @param $reference
527
+     * @param string $reference
528 528
      *
529 529
      * @return SeeDescriptor
530 530
      */
Please login to merge, or discard this patch.
unit/phpDocumentor/Descriptor/Builder/Reflector/MethodAssemblerTest.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      * @param ArgumentDescriptor|m\MockInterface $argumentMock
155 155
      * @param DocBlock|m\MockInterface           $docBlockMock
156 156
      *
157
-     * @return MethodReflector|m\MockInterface
157
+     * @return MethodReflector
158 158
      */
159 159
     protected function givenAMethodReflector($namespace, $methodName, $argumentMock, $docBlockMock = null)
160 160
     {
@@ -176,6 +176,7 @@  discard block
 block discarded – undo
176 176
     /**
177 177
      * Generates a DocBlock object with applicable defaults for these tests.
178 178
      *
179
+     * @param boolean $withTags
179 180
      * @return DocBlock|m\MockInterface
180 181
      */
181 182
     protected function givenADocBlockObject($withTags)
Please login to merge, or discard this patch.
unit/phpDocumentor/Descriptor/Builder/Reflector/PropertyAssemblerTest.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      * @param string                             $propertyName
72 72
      * @param DocBlock|m\MockInterface           $docBlockMock
73 73
      *
74
-     * @return PropertyReflector|m\MockInterface
74
+     * @return PropertyReflector
75 75
      */
76 76
     protected function givenAPropertyReflector($namespace, $propertyName, $docBlockMock = null)
77 77
     {
@@ -91,6 +91,7 @@  discard block
 block discarded – undo
91 91
     /**
92 92
      * Generates a DocBlock object with applicable defaults for these tests.
93 93
      *
94
+     * @param boolean $withTags
94 95
      * @return DocBlock|m\MockInterface
95 96
      */
96 97
     protected function givenADocBlockObject($withTags)
Please login to merge, or discard this patch.
tests/unit/phpDocumentor/Plugin/Core/Xslt/ExtensionTest.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -175,6 +175,9 @@  discard block
 block discarded – undo
175 175
         $this->assertSame('documented', $result);
176 176
     }
177 177
 
178
+    /**
179
+     * @param m\MockInterface $elementList
180
+     */
178 181
     private function givenAProjectDescriptorBuilder($elementList)
179 182
     {
180 183
         $projectDescriptor = m::mock('\phpDocumentor\Descriptor\ProjectDescriptor');
@@ -184,6 +187,9 @@  discard block
 block discarded – undo
184 187
         return $projectDescriptorBuilder;
185 188
     }
186 189
 
190
+    /**
191
+     * @param m\MockInterface|null $rule
192
+     */
187 193
     private function givenARouter($rule)
188 194
     {
189 195
         $queue = m::mock('phpDocumentor\Transformer\Router\Queue');
Please login to merge, or discard this patch.
tests/features/bootstrap/Ast/ApiContext.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -153,6 +153,7 @@
 block discarded – undo
153 153
      * @param string $classFqsen
154 154
      * @param string $tagName
155 155
      * @param string $methodName
156
+     * @param integer $expectedCount
156 157
      * @Then class ":classFqsen" has a method named :method with exactly :expected tag :tagName
157 158
      */
158 159
     public function classHasMethodWithExpectedCountTag($classFqsen, $tagName, $methodName, $expectedCount)
Please login to merge, or discard this patch.
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -13,16 +13,12 @@
 block discarded – undo
13 13
 namespace phpDocumentor\Behat\Contexts\Ast;
14 14
 
15 15
 use Behat\Behat\Context\Context;
16
-use Behat\Behat\Hook\Scope\BeforeScenarioScope;
17 16
 use Behat\Gherkin\Node\PyStringNode;
18
-use phpDocumentor\Behat\Contexts\EnvironmentContext;
19 17
 use phpDocumentor\Descriptor\ClassDescriptor;
20 18
 use phpDocumentor\Descriptor\Collection;
21 19
 use phpDocumentor\Descriptor\DescriptorAbstract;
22 20
 use phpDocumentor\Descriptor\FileDescriptor;
23
-use phpDocumentor\Descriptor\ProjectDescriptor;
24 21
 use phpDocumentor\Descriptor\Tag\VersionDescriptor;
25
-use phpDocumentor\Reflection\DocBlock\Tag\SeeTag;
26 22
 use PHPUnit\Framework\Assert;
27 23
 
28 24
 class ApiContext extends BaseContext implements Context
Please login to merge, or discard this patch.
unit/phpDocumentor/Descriptor/Builder/Reflector/Tags/SeeAssemblerTest.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -134,6 +134,11 @@  discard block
 block discarded – undo
134 134
         $this->assertSame([], $descriptor->getErrors()->getAll());
135 135
     }
136 136
 
137
+    /**
138
+     * @param string $name
139
+     * @param string $description
140
+     * @param m\MockInterface $docBlock
141
+     */
137 142
     protected function givenASeeTag($name, $description, $reference, $docBlock)
138 143
     {
139 144
         $seeTagMock = m::mock('phpDocumentor\Reflection\DocBlock\Tag\SeeTag');
@@ -145,6 +150,9 @@  discard block
 block discarded – undo
145 150
         return $seeTagMock;
146 151
     }
147 152
 
153
+    /**
154
+     * @param m\MockInterface $context
155
+     */
148 156
     protected function givenADocBlock($context)
149 157
     {
150 158
         $docBlockMock = m::mock('phpDocumentor\Reflection\DocBlock');
Please login to merge, or discard this patch.