@@ -354,6 +354,9 @@ |
||
| 354 | 354 | $this->assertEquals(array(true), $this->exporter->toArray(true)); |
| 355 | 355 | } |
| 356 | 356 | |
| 357 | + /** |
|
| 358 | + * @param string $string |
|
| 359 | + */ |
|
| 357 | 360 | private function trimNewline($string) |
| 358 | 361 | { |
| 359 | 362 | return preg_replace('/[ ]*\n/', "\n", $string); |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | /** |
| 72 | 72 | * @param string $path |
| 73 | 73 | * |
| 74 | - * @return bool|string |
|
| 74 | + * @return false|string |
|
| 75 | 75 | */ |
| 76 | 76 | private function getGitInformation($path) |
| 77 | 77 | { |
@@ -50,11 +50,17 @@ discard block |
||
| 50 | 50 | $this->parent = $parent; |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | + /** |
|
| 54 | + * @param string $key |
|
| 55 | + */ |
|
| 53 | 56 | public function setAttribute($key, $value) |
| 54 | 57 | { |
| 55 | 58 | $this->attributes[$key] = $value; |
| 56 | 59 | } |
| 57 | 60 | |
| 61 | + /** |
|
| 62 | + * @param string $key |
|
| 63 | + */ |
|
| 58 | 64 | public function getAttribute($key, $default = null) |
| 59 | 65 | { |
| 60 | 66 | return isset($this->attributes[$key]) ? $this->attributes[$key] : $default; |
@@ -123,7 +129,7 @@ discard block |
||
| 123 | 129 | /** |
| 124 | 130 | * Adds an equivalent value. |
| 125 | 131 | * |
| 126 | - * @param mixed $originalValue |
|
| 132 | + * @param null|boolean $originalValue |
|
| 127 | 133 | * @param mixed $equivalentValue |
| 128 | 134 | */ |
| 129 | 135 | public function addEquivalentValue($originalValue, $equivalentValue) |
@@ -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 | { |