@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | * Configuration constructor. |
35 | 35 | * |
36 | 36 | * @param string $configFile |
37 | - * @param ConsoleInterface|OutputInterface|null $output |
|
37 | + * @param ConsoleInterface $output |
|
38 | 38 | */ |
39 | 39 | public function __construct($configFile, $output = null) |
40 | 40 | { |
@@ -83,11 +83,17 @@ discard block |
||
83 | 83 | return $base; |
84 | 84 | } |
85 | 85 | |
86 | + /** |
|
87 | + * @return string[] |
|
88 | + */ |
|
86 | 89 | public function getDataFolders () |
87 | 90 | { |
88 | 91 | return $this->returnConfigOption('data'); |
89 | 92 | } |
90 | 93 | |
94 | + /** |
|
95 | + * @return string[] |
|
96 | + */ |
|
91 | 97 | public function getDataSets () |
92 | 98 | { |
93 | 99 | return $this->returnConfigOption('datasets'); |
@@ -133,6 +139,9 @@ discard block |
||
133 | 139 | return $this->configuration['twig']['autoescape']; |
134 | 140 | } |
135 | 141 | |
142 | + /** |
|
143 | + * @param string $name |
|
144 | + */ |
|
136 | 145 | private function returnConfigOption ($name, $default = null) |
137 | 146 | { |
138 | 147 | return (isset($this->configuration[$name]) ? $this->configuration[$name] : $default); |
@@ -140,6 +140,9 @@ |
||
140 | 140 | return pathinfo($filename, PATHINFO_EXTENSION); |
141 | 141 | } |
142 | 142 | |
143 | + /** |
|
144 | + * @param string $folderPath |
|
145 | + */ |
|
143 | 146 | public function isDir ($folderPath) |
144 | 147 | { |
145 | 148 | return is_dir($folderPath); |
@@ -62,6 +62,10 @@ discard block |
||
62 | 62 | } |
63 | 63 | } |
64 | 64 | |
65 | + /** |
|
66 | + * @param string $absolutePath |
|
67 | + * @param string $targetPath |
|
68 | + */ |
|
65 | 69 | public function copyFile ($absolutePath, $targetPath) |
66 | 70 | { |
67 | 71 | $targetPath = ltrim($targetPath, DIRECTORY_SEPARATOR); |
@@ -73,6 +77,10 @@ discard block |
||
73 | 77 | ); |
74 | 78 | } |
75 | 79 | |
80 | + /** |
|
81 | + * @param string $targetPath |
|
82 | + * @param string $fileContent |
|
83 | + */ |
|
76 | 84 | public function writeFile ($targetPath, $fileContent) |
77 | 85 | { |
78 | 86 | $outputFolder = $this->fs->getFolderPath($targetPath); |
@@ -98,6 +106,9 @@ discard block |
||
98 | 106 | )); |
99 | 107 | } |
100 | 108 | |
109 | + /** |
|
110 | + * @param string $pathFragments |
|
111 | + */ |
|
101 | 112 | private function buildPath ($pathFragments) |
102 | 113 | { |
103 | 114 | $paths = func_get_args(); |
@@ -15,7 +15,7 @@ |
||
15 | 15 | /** |
16 | 16 | * Returns a list of filters. |
17 | 17 | * |
18 | - * @return array |
|
18 | + * @return Twig_SimpleFilter[] |
|
19 | 19 | */ |
20 | 20 | public function getFilters() |
21 | 21 | { |