@@ -121,6 +121,10 @@ |
||
121 | 121 | return $this; |
122 | 122 | } |
123 | 123 | |
124 | + /** |
|
125 | + * @param string $key |
|
126 | + * @param boolean $value |
|
127 | + */ |
|
124 | 128 | public function setConfigurationDefault($key, $value) |
125 | 129 | { |
126 | 130 | if (!array_key_exists($key, $this->configurationData)) { |
@@ -19,7 +19,7 @@ |
||
19 | 19 | * transformation object. |
20 | 20 | * |
21 | 21 | * @param FormatterOptions $options Options that affect output formatting. |
22 | - * @return Consolidation\OutputFormatters\Transformations\TableTransformation |
|
22 | + * @return TableTransformation |
|
23 | 23 | */ |
24 | 24 | public function restructure(FormatterOptions $options) |
25 | 25 | { |
@@ -17,7 +17,7 @@ |
||
17 | 17 | * transformation object. |
18 | 18 | * |
19 | 19 | * @param FormatterOptions $options Options that affect output formatting. |
20 | - * @return Consolidation\OutputFormatters\Transformations\TableTransformation |
|
20 | + * @return \Consolidation\OutputFormatters\Transformations\TableTransformation |
|
21 | 21 | */ |
22 | 22 | public function restructure(FormatterOptions $options) |
23 | 23 | { |
@@ -34,6 +34,9 @@ |
||
34 | 34 | $this->addXmlChildren($dom, $element, $elementName, $structuredData); |
35 | 35 | } |
36 | 36 | |
37 | + /** |
|
38 | + * @param \DOMElement $xmlParent |
|
39 | + */ |
|
37 | 40 | protected function addXmlChildren(\DOMDocument $dom, $xmlParent, $elementName, $structuredData) |
38 | 41 | { |
39 | 42 | foreach ($structuredData as $key => $value) { |
@@ -16,7 +16,7 @@ |
||
16 | 16 | } |
17 | 17 | |
18 | 18 | /** |
19 | - * @param ReflectionClass $dataType |
|
19 | + * @param \ReflectionClass $dataType |
|
20 | 20 | */ |
21 | 21 | public function canSimplify(\ReflectionClass $dataType) |
22 | 22 | { |
@@ -182,6 +182,9 @@ discard block |
||
182 | 182 | return $this->isValidFormatForReflectionClass($formatter, $dataType); |
183 | 183 | } |
184 | 184 | |
185 | + /** |
|
186 | + * @param \ReflectionClass $dataType |
|
187 | + */ |
|
185 | 188 | public function isValidFormatForReflectionClass(FormatterInterface $formatter, $dataType) |
186 | 189 | { |
187 | 190 | if ($this->canSimplifyToArray($dataType)) { |
@@ -196,6 +199,10 @@ discard block |
||
196 | 199 | } |
197 | 200 | return array_reduce( |
198 | 201 | $formatter->validDataTypes(), |
202 | + |
|
203 | + /** |
|
204 | + * @param \ReflectionClass $supportedType |
|
205 | + */ |
|
199 | 206 | function ($carry, $supportedType) use ($dataType) { |
200 | 207 | return |
201 | 208 | $carry || |
@@ -266,6 +273,7 @@ discard block |
||
266 | 273 | |
267 | 274 | /** |
268 | 275 | * Test to see if the stipulated format exists |
276 | + * @param string $format |
|
269 | 277 | */ |
270 | 278 | public function hasFormatter($format) |
271 | 279 | { |