@@ -26,6 +26,9 @@ |
||
26 | 26 | { |
27 | 27 | private $reference; |
28 | 28 | |
29 | + /** |
|
30 | + * @param string $namespace |
|
31 | + */ |
|
29 | 32 | public function dump(ConfigurationInterface $configuration, $namespace = null) |
30 | 33 | { |
31 | 34 | return $this->dumpNode($configuration->getConfigTreeBuilder()->buildTree(), $namespace); |
@@ -173,6 +173,9 @@ |
||
173 | 173 | $this->reference .= sprintf($format, $text)."\n"; |
174 | 174 | } |
175 | 175 | |
176 | + /** |
|
177 | + * @param integer $depth |
|
178 | + */ |
|
176 | 179 | private function writeArray(array $array, $depth) |
177 | 180 | { |
178 | 181 | $isIndexed = array_values($array) === $array; |
@@ -197,6 +197,10 @@ |
||
197 | 197 | ); |
198 | 198 | } |
199 | 199 | |
200 | + /** |
|
201 | + * @param ArrayNodeDefinition $object |
|
202 | + * @param string $field |
|
203 | + */ |
|
200 | 204 | protected function getField($object, $field) |
201 | 205 | { |
202 | 206 | $reflection = new \ReflectionProperty($object, $field); |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | /** |
154 | 154 | * Create a test treebuilder with a variable node, and init the validation. |
155 | 155 | * |
156 | - * @return TreeBuilder |
|
156 | + * @return \Symfony\Component\Config\Definition\Builder\ExprBuilder |
|
157 | 157 | */ |
158 | 158 | protected function getTestBuilder() |
159 | 159 | { |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | /** |
191 | 191 | * Return a closure that will return the given value. |
192 | 192 | * |
193 | - * @param mixed $val The value that the closure must return |
|
193 | + * @param string $val The value that the closure must return |
|
194 | 194 | * |
195 | 195 | * @return \Closure |
196 | 196 | */ |
@@ -207,6 +207,9 @@ |
||
207 | 207 | self::assertSame($normalized, $tree->normalize($denormalized)); |
208 | 208 | } |
209 | 209 | |
210 | + /** |
|
211 | + * @return NodeInterface |
|
212 | + */ |
|
210 | 213 | private function getNumericKeysTestTree() |
211 | 214 | { |
212 | 215 | $tb = new TreeBuilder(); |
@@ -34,6 +34,9 @@ |
||
34 | 34 | $this->removeDirectory($this->directory); |
35 | 35 | } |
36 | 36 | |
37 | + /** |
|
38 | + * @param string $directory |
|
39 | + */ |
|
37 | 40 | protected function removeDirectory($directory) |
38 | 41 | { |
39 | 42 | $iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($directory), \RecursiveIteratorIterator::CHILD_FIRST); |
@@ -216,6 +216,9 @@ |
||
216 | 216 | } |
217 | 217 | } |
218 | 218 | |
219 | + /** |
|
220 | + * @param boolean $internalErrors |
|
221 | + */ |
|
219 | 222 | protected static function getXmlErrors($internalErrors) |
220 | 223 | { |
221 | 224 | $errors = array(); |
@@ -196,7 +196,7 @@ |
||
196 | 196 | * |
197 | 197 | * @param string $string |
198 | 198 | * |
199 | - * @return OutputFormatterStyle|bool false if string is not format string |
|
199 | + * @return OutputFormatterStyleInterface|null false if string is not format string |
|
200 | 200 | */ |
201 | 201 | private function createStyleFromString($string) |
202 | 202 | { |
@@ -59,7 +59,7 @@ |
||
59 | 59 | * |
60 | 60 | * @param string|null $foreground The style foreground color name |
61 | 61 | * @param string|null $background The style background color name |
62 | - * @param array $options The style options |
|
62 | + * @param string[] $options The style options |
|
63 | 63 | * |
64 | 64 | * @api |
65 | 65 | */ |