@@ -54,7 +54,6 @@ |
||
54 | 54 | use phpDocumentor\Application\Renderer\Router\StandardRouter; |
55 | 55 | use phpDocumentor\Infrastructure\SpecificationFactory; |
56 | 56 | use phpDocumentor\DomainModel\Uri; |
57 | -use phpDocumentor\Application\ReadModel; |
|
58 | 57 | use phpDocumentor\Application\ReadModel\FromContainerFactory; |
59 | 58 | use phpDocumentor\Application\ReadModel\Mappers\Project; |
60 | 59 | use Stash\Driver\FileSystem; |
@@ -21,7 +21,6 @@ |
||
21 | 21 | use phpDocumentor\DomainModel\Parser\Documentation\DocumentGroup\Definition as DocumentGroupDefinitionInterface; |
22 | 22 | use phpDocumentor\DomainModel\Parser\Documentation\DocumentGroupFactory; |
23 | 23 | use phpDocumentor\Reflection\ProjectFactory; |
24 | -use phpDocumentor\Reflection\Php\Factory\File; |
|
25 | 24 | |
26 | 25 | final class FromReflectionFactory implements DocumentGroupFactory |
27 | 26 | { |
@@ -30,9 +30,9 @@ |
||
30 | 30 | /** |
31 | 31 | * Creates a SpecificationInterface object based on the ignore and extension parameters. |
32 | 32 | * |
33 | - * @param array $paths |
|
33 | + * @param string[] $paths |
|
34 | 34 | * @param array $ignore |
35 | - * @param array $extensions |
|
35 | + * @param string[] $extensions |
|
36 | 36 | * @return SpecificationInterface |
37 | 37 | */ |
38 | 38 | public function create(array $paths, array $ignore, array $extensions) |
@@ -96,6 +96,9 @@ discard block |
||
96 | 96 | return $this->create($renderPass, $template); |
97 | 97 | } |
98 | 98 | |
99 | + /** |
|
100 | + * @param string $path |
|
101 | + */ |
|
99 | 102 | private function readFromXml($path) |
100 | 103 | { |
101 | 104 | if (isset($this->templateTemplates[$path])) { |
@@ -256,7 +259,7 @@ discard block |
||
256 | 259 | * for this specific action. |
257 | 260 | * |
258 | 261 | * @param Template $template |
259 | - * @param string[]|string[][] $action |
|
262 | + * @param string[] $action |
|
260 | 263 | * |
261 | 264 | * @throws \InvalidArgumentException if one of the parameters is not a valid array |
262 | 265 | * @throws \InvalidArgumentException if one of the parameters does not contain the 'key' element |
@@ -47,7 +47,7 @@ |
||
47 | 47 | } |
48 | 48 | |
49 | 49 | /** |
50 | - * @return Filesystem |
|
50 | + * @return string |
|
51 | 51 | */ |
52 | 52 | public function getTarget() |
53 | 53 | { |
@@ -92,7 +92,7 @@ |
||
92 | 92 | } |
93 | 93 | |
94 | 94 | /** |
95 | - * @param array $templates |
|
95 | + * @param string[] $templates |
|
96 | 96 | * @param RenderContext $renderContext |
97 | 97 | */ |
98 | 98 | private function renderTemplates(array $templates, RenderContext $renderContext) |
@@ -12,12 +12,9 @@ discard block |
||
12 | 12 | |
13 | 13 | namespace phpDocumentor\Application; |
14 | 14 | |
15 | -use League\Event\Emitter; |
|
16 | 15 | use League\Event\EmitterInterface; |
17 | 16 | use League\Flysystem\Filesystem; |
18 | 17 | use League\Tactician\CommandBus; |
19 | -use phpDocumentor\Application\Configuration\ConfigurationFactory; |
|
20 | -use phpDocumentor\DomainModel\Dsn; |
|
21 | 18 | use phpDocumentor\Application\Render; |
22 | 19 | use phpDocumentor\DomainModel\Parser\Documentation; |
23 | 20 | use phpDocumentor\DomainModel\ReadModel\ReadModels; |
@@ -25,7 +22,6 @@ discard block |
||
25 | 22 | use phpDocumentor\DomainModel\Renderer\Template\Action; |
26 | 23 | use phpDocumentor\DomainModel\Uri; |
27 | 24 | use phpDocumentor\Infrastructure\FileSystemFactory; |
28 | -use phpDocumentor\DomainModel\Path; |
|
29 | 25 | use phpDocumentor\DomainModel\Renderer\Template; |
30 | 26 | use phpDocumentor\DomainModel\Renderer\TemplateFactory; |
31 | 27 | use phpDocumentor\DomainModel\Renderer\RenderContext; |
@@ -33,7 +29,6 @@ discard block |
||
33 | 29 | use phpDocumentor\DomainModel\Renderer\RenderingFinished; |
34 | 30 | use phpDocumentor\DomainModel\Renderer\RenderingStarted; |
35 | 31 | use phpDocumentor\Infrastructure\Renderer\FlySystemArtefacts; |
36 | -use phpDocumentor\Infrastructure\Renderer\FlySystemAssets; |
|
37 | 32 | |
38 | 33 | final class RenderHandler |
39 | 34 | { |
@@ -13,11 +13,7 @@ |
||
13 | 13 | namespace phpDocumentor\Application; |
14 | 14 | |
15 | 15 | use Mockery as m; |
16 | -use org\bovigo\vfs\vfsStream; |
|
17 | -use phpDocumentor\Application\Configuration\ConfigurationFactory; |
|
18 | -use phpDocumentor\Application\Configuration\Factory\Strategy; |
|
19 | 16 | use phpDocumentor\DomainModel\Path; |
20 | -use phpDocumentor\DomainModel\Uri; |
|
21 | 17 | use PHPUnit_Framework_TestCase; |
22 | 18 | use Stash\Pool; |
23 | 19 |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | /** |
41 | 41 | * @param CopyFile $action |
42 | 42 | * |
43 | - * @return Asset |
|
43 | + * @return Asset[] |
|
44 | 44 | */ |
45 | 45 | private function fetchAsset(CopyFile $action, Path $source) |
46 | 46 | { |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | |
50 | 50 | /** |
51 | 51 | * @param CopyFile $action |
52 | - * @param Asset|Folder $asset |
|
52 | + * @param Asset[] $asset |
|
53 | 53 | * @param Path $location |
54 | 54 | * |
55 | 55 | * @return void |
@@ -28,7 +28,7 @@ |
||
28 | 28 | private $filesystem; |
29 | 29 | |
30 | 30 | /** |
31 | - * @param FilesystemInterface|MountManager $filesystem |
|
31 | + * @param \Mockery\MockInterface $filesystem |
|
32 | 32 | */ |
33 | 33 | public function __construct($filesystem) |
34 | 34 | { |