@@ -38,6 +38,7 @@ |
||
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | 40 | * {@inheritdoc} |
| 41 | + * @param string $name |
|
| 41 | 42 | */ |
| 42 | 43 | public function __construct($name, NodeParentInterface $parent = null) |
| 43 | 44 | { |
@@ -23,6 +23,7 @@ |
||
| 23 | 23 | { |
| 24 | 24 | /** |
| 25 | 25 | * {@inheritdoc} |
| 26 | + * @param string $name |
|
| 26 | 27 | */ |
| 27 | 28 | public function __construct($name, NodeParentInterface $parent = null) |
| 28 | 29 | { |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | /** |
| 125 | 125 | * Tests if the value is in an array. |
| 126 | 126 | * |
| 127 | - * @param array $array |
|
| 127 | + * @param string[] $array |
|
| 128 | 128 | * |
| 129 | 129 | * @return $this |
| 130 | 130 | */ |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | /** |
| 139 | 139 | * Tests if the value is not in an array. |
| 140 | 140 | * |
| 141 | - * @param array $array |
|
| 141 | + * @param string[] $array |
|
| 142 | 142 | * |
| 143 | 143 | * @return $this |
| 144 | 144 | */ |
@@ -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); |
@@ -185,6 +185,9 @@ |
||
| 185 | 185 | $this->reference .= sprintf($format, $text)."\n"; |
| 186 | 186 | } |
| 187 | 187 | |
| 188 | + /** |
|
| 189 | + * @param integer $depth |
|
| 190 | + */ |
|
| 188 | 191 | private function writeArray(array $array, $depth) |
| 189 | 192 | { |
| 190 | 193 | $isIndexed = array_values($array) === $array; |
@@ -377,7 +377,7 @@ |
||
| 377 | 377 | * |
| 378 | 378 | * @param string $key The key of the child node |
| 379 | 379 | * |
| 380 | - * @return mixed The prototype instance |
|
| 380 | + * @return NodeInterface The prototype instance |
|
| 381 | 381 | */ |
| 382 | 382 | private function getPrototypeForChild($key) |
| 383 | 383 | { |
@@ -103,6 +103,8 @@ discard block |
||
| 103 | 103 | |
| 104 | 104 | /** |
| 105 | 105 | * @internal |
| 106 | + * @param string $pattern |
|
| 107 | + * @param boolean $recursive |
|
| 106 | 108 | */ |
| 107 | 109 | protected function glob($pattern, $recursive, &$resource = null, $ignoreErrors = false) |
| 108 | 110 | { |
@@ -138,6 +140,10 @@ discard block |
||
| 138 | 140 | } |
| 139 | 141 | } |
| 140 | 142 | |
| 143 | + /** |
|
| 144 | + * @param string $type |
|
| 145 | + * @param string $sourceResource |
|
| 146 | + */ |
|
| 141 | 147 | private function doImport($resource, $type = null, $ignoreErrors = false, $sourceResource = null) |
| 142 | 148 | { |
| 143 | 149 | try { |
@@ -285,6 +285,9 @@ |
||
| 285 | 285 | ); |
| 286 | 286 | } |
| 287 | 287 | |
| 288 | + /** |
|
| 289 | + * @param string $field |
|
| 290 | + */ |
|
| 288 | 291 | protected function getField($object, $field) |
| 289 | 292 | { |
| 290 | 293 | $reflection = new \ReflectionProperty($object, $field); |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | /** |
| 209 | 209 | * Create a test treebuilder with a variable node, and init the validation. |
| 210 | 210 | * |
| 211 | - * @return TreeBuilder |
|
| 211 | + * @return \Symfony\Component\Config\Definition\Builder\ExprBuilder |
|
| 212 | 212 | */ |
| 213 | 213 | protected function getTestBuilder() |
| 214 | 214 | { |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | /** |
| 246 | 246 | * Return a closure that will return the given value. |
| 247 | 247 | * |
| 248 | - * @param mixed $val The value that the closure must return |
|
| 248 | + * @param string $val The value that the closure must return |
|
| 249 | 249 | * |
| 250 | 250 | * @return \Closure |
| 251 | 251 | */ |