@@ -192,6 +192,7 @@ |
||
192 | 192 | /** |
193 | 193 | * Generates a DocBlock object with applicable defaults for these tests. |
194 | 194 | * |
195 | + * @param boolean $withTags |
|
195 | 196 | * @return DocBlock|m\MockInterface |
196 | 197 | */ |
197 | 198 | protected function givenADocBlockObject($withTags) |
@@ -14,7 +14,6 @@ |
||
14 | 14 | |
15 | 15 | use phpDocumentor\Descriptor\ProjectDescriptorBuilder; |
16 | 16 | use phpDocumentor\Reflection\DocBlock; |
17 | -use phpDocumentor\Reflection\ClassReflector\PropertyReflector; |
|
18 | 17 | use Mockery as m; |
19 | 18 | use phpDocumentor\Reflection\DocBlock\Description; |
20 | 19 | use phpDocumentor\Reflection\Fqsen; |
@@ -102,7 +102,7 @@ |
||
102 | 102 | * @param string $namespace |
103 | 103 | * @param string $functionName |
104 | 104 | * @param Argument $argumentMock |
105 | - * @param DocBlock|m\MockInterface $docBlockMock |
|
105 | + * @param DocBlock $docBlockMock |
|
106 | 106 | * |
107 | 107 | * @return Function_ |
108 | 108 | */ |
@@ -19,7 +19,6 @@ |
||
19 | 19 | use phpDocumentor\Reflection\DocBlock; |
20 | 20 | use Mockery as m; |
21 | 21 | use phpDocumentor\Reflection\Fqsen; |
22 | -use phpDocumentor\Reflection\FunctionReflector; |
|
23 | 22 | use phpDocumentor\Reflection\Php\Argument; |
24 | 23 | use phpDocumentor\Reflection\Php\Function_; |
25 | 24 |
@@ -11,10 +11,8 @@ |
||
11 | 11 | |
12 | 12 | namespace phpDocumentor\Descriptor\Builder\Reflector\Tags; |
13 | 13 | |
14 | -use phpDocumentor\Compiler\Linker\Linker; |
|
15 | 14 | use phpDocumentor\Descriptor\Builder\Reflector\AssemblerAbstract; |
16 | 15 | use phpDocumentor\Descriptor\Tag\UsesDescriptor; |
17 | -use phpDocumentor\Reflection\DocBlock\Context; |
|
18 | 16 | use phpDocumentor\Reflection\DocBlock\Tags\Uses; |
19 | 17 | |
20 | 18 | class UsesAssembler extends AssemblerAbstract |
@@ -365,7 +365,7 @@ discard block |
||
365 | 365 | * |
366 | 366 | * @param InputInterface $input |
367 | 367 | * |
368 | - * @return \Symfony\Component\Console\Helper\HelperInterface|null |
|
368 | + * @return null|ProgressHelper |
|
369 | 369 | */ |
370 | 370 | protected function getProgressBar(InputInterface $input) |
371 | 371 | { |
@@ -393,6 +393,10 @@ discard block |
||
393 | 393 | * @return string |
394 | 394 | */ |
395 | 395 | // @codingStandardsIgnoreStart |
396 | + |
|
397 | + /** |
|
398 | + * @param string $text |
|
399 | + */ |
|
396 | 400 | protected function __($text, $parameters = array()) |
397 | 401 | { |
398 | 402 | // @codingStandardsIgnoreEnd |
@@ -11,20 +11,13 @@ |
||
11 | 11 | |
12 | 12 | namespace phpDocumentor\Parser\Command\Project; |
13 | 13 | |
14 | -use League\Flysystem\MountManager; |
|
15 | 14 | use phpDocumentor\Command\Command; |
16 | 15 | use phpDocumentor\Command\Helper\ConfigurationHelper; |
17 | 16 | use phpDocumentor\Descriptor\Cache\ProjectDescriptorMapper; |
18 | -use phpDocumentor\Descriptor\Example\Finder; |
|
19 | 17 | use phpDocumentor\Descriptor\ProjectDescriptor; |
20 | 18 | use phpDocumentor\Descriptor\ProjectDescriptorBuilder; |
21 | 19 | use phpDocumentor\DomainModel\Dsn; |
22 | 20 | use phpDocumentor\DomainModel\Parser\FileCollector; |
23 | -use phpDocumentor\Event\Dispatcher; |
|
24 | -use phpDocumentor\Fileset\Collection; |
|
25 | -use phpDocumentor\Infrastructure\FlySystemFactory; |
|
26 | -use phpDocumentor\Infrastructure\Parser\FlySystemFile; |
|
27 | -use phpDocumentor\Infrastructure\Parser\SpecificationFactory; |
|
28 | 21 | use phpDocumentor\Parser\Event\PreFileEvent; |
29 | 22 | use phpDocumentor\Parser\Exception\FilesNotFoundException; |
30 | 23 | use phpDocumentor\Parser\Middleware\CacheMiddleware; |
@@ -182,6 +182,9 @@ |
||
182 | 182 | return null; |
183 | 183 | } |
184 | 184 | |
185 | + /** |
|
186 | + * @param string $fqcn |
|
187 | + */ |
|
185 | 188 | protected function createNamespaceGraph($fqcn) |
186 | 189 | { |
187 | 190 | $namespaceParts = explode('\\', $fqcn); |
@@ -340,7 +340,7 @@ |
||
340 | 340 | * |
341 | 341 | * @param InputInterface $input |
342 | 342 | * |
343 | - * @return HelperInterface|null |
|
343 | + * @return null|ProgressHelper |
|
344 | 344 | */ |
345 | 345 | protected function getProgressBar(InputInterface $input) |
346 | 346 | { |
@@ -31,7 +31,6 @@ |
||
31 | 31 | use Symfony\Component\Console\Output\OutputInterface; |
32 | 32 | use Symfony\Component\Filesystem\Filesystem; |
33 | 33 | use Zend\Cache\Storage\StorageInterface; |
34 | -use Zend\Stdlib\AbstractOptions; |
|
35 | 34 | |
36 | 35 | /** |
37 | 36 | * Transforms the structure file into the specified output format |
@@ -12,7 +12,6 @@ |
||
12 | 12 | |
13 | 13 | use org\bovigo\vfs\vfsStream; |
14 | 14 | use org\bovigo\vfs\vfsStreamDirectory; |
15 | -use PHPUnit\Framework\TestCase; |
|
16 | 15 | |
17 | 16 | /** |
18 | 17 | * Test class for \phpDocumentor\Bootstrap. |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | /** |
218 | 218 | * Returns a collection with descriptor. This collection will be scanned to see if a link can be made to a file. |
219 | 219 | * |
220 | - * @param DescriptorAbstract|m\MockInterface $descriptor |
|
220 | + * @param m\MockInterface $descriptor |
|
221 | 221 | * |
222 | 222 | * @return Collection|m\MockInterface |
223 | 223 | */ |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | * @param m\MockInterface $descriptor |
252 | 252 | * @param DescriptorAbstract $elementToLinkTo |
253 | 253 | * |
254 | - * @return DescriptorAbstract |
|
254 | + * @return m\MockInterface |
|
255 | 255 | */ |
256 | 256 | private function whenDescriptionContainsSeeOrLinkWithElement($descriptor, $elementToLinkTo) |
257 | 257 | { |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | } |
106 | 106 | |
107 | 107 | /** |
108 | - * @param array $errors |
|
108 | + * @param m\MockInterface[] $errors |
|
109 | 109 | * @param int $markerCount |
110 | 110 | * @return m\MockInterface |
111 | 111 | */ |
@@ -138,6 +138,13 @@ discard block |
||
138 | 138 | return $error; |
139 | 139 | } |
140 | 140 | |
141 | + /** |
|
142 | + * @param string $date |
|
143 | + * @param integer $numberOfFiles |
|
144 | + * @param integer $numberOfDeprecated |
|
145 | + * @param integer $numberOfErrors |
|
146 | + * @param integer $numberOfMarkers |
|
147 | + */ |
|
141 | 148 | private function thenTheXmlReportShouldContain( |
142 | 149 | $date, |
143 | 150 | $numberOfFiles, |