@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | /** |
28 | 28 | * Get entire simplexml |
29 | 29 | * |
30 | - * @return mixed |
|
30 | + * @return \SimpleXMLElement |
|
31 | 31 | */ |
32 | 32 | public function getRaw(); |
33 | 33 | |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * Get from config |
37 | 37 | * |
38 | 38 | * @param string $name |
39 | - * @return mixed |
|
39 | + * @return \SimpleXMLElement |
|
40 | 40 | */ |
41 | 41 | public function __get(string $name); |
42 | 42 | |
@@ -53,7 +53,6 @@ discard block |
||
53 | 53 | /** |
54 | 54 | * Get native config format as config instance |
55 | 55 | * |
56 | - * @param mixed $config |
|
57 | 56 | * @return Config |
58 | 57 | */ |
59 | 58 | public function map($native=null): Config; |
@@ -81,7 +81,7 @@ |
||
81 | 81 | /** |
82 | 82 | * Merge xml tree's |
83 | 83 | * |
84 | - * @param SimpleXMLElement $simmplexml_to |
|
84 | + * @param SimpleXMLElement $simplexml_to |
|
85 | 85 | * @param SimpleXMLElement $simplexml_from |
86 | 86 | * @param bool $replace |
87 | 87 | * @return bool |
@@ -108,7 +108,7 @@ |
||
108 | 108 | if (!isset($simplexml_to->{$simplexml_child->getName()})) { |
109 | 109 | $simplexml_to->addChild($simplexml_child->getName(), htmlspecialchars((string)$simplexml_child)); |
110 | 110 | } elseif($replace === true && count($simplexml_to->{$simplexml_child->getName()}->children()) === 0) { |
111 | - $simplexml_to->{$simplexml_child->getName()} = htmlspecialchars((string)$simplexml_child); |
|
111 | + $simplexml_to->{$simplexml_child->getName()} = htmlspecialchars((string)$simplexml_child); |
|
112 | 112 | } |
113 | 113 | } else { |
114 | 114 | $this->appendSimplexml($simplexml_to->{$simplexml_child->getName()}, $simplexml_child, $replace); |
@@ -129,7 +129,7 @@ |
||
129 | 129 | * Forward calls |
130 | 130 | * |
131 | 131 | * @param array $method |
132 | - * @param array $argumnets |
|
132 | + * @param array $arguments |
|
133 | 133 | * @return mixed |
134 | 134 | */ |
135 | 135 | public function __call(string $method, array $arguments=[]) |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | /** |
167 | 167 | * Get body |
168 | 168 | * |
169 | - * @return mixed |
|
169 | + * @return string |
|
170 | 170 | */ |
171 | 171 | public function getBody() |
172 | 172 | { |
@@ -341,7 +341,7 @@ discard block |
||
341 | 341 | /** |
342 | 342 | * Set the current output format. |
343 | 343 | * |
344 | - * @param string $foramt a key of $outputForms |
|
344 | + * @param string $format a key of $outputForms |
|
345 | 345 | * @return Response |
346 | 346 | */ |
347 | 347 | public function setOutputFormat(string $format): Response |
@@ -276,13 +276,13 @@ |
||
276 | 276 | |
277 | 277 | |
278 | 278 | /** |
279 | - * Converts mixed data to XML |
|
280 | - * |
|
281 | - * @param mixed $data |
|
282 | - * @param SimpleXMLElement $xml |
|
283 | - * @param string $child_name |
|
284 | - * @return string |
|
285 | - */ |
|
279 | + * Converts mixed data to XML |
|
280 | + * |
|
281 | + * @param mixed $data |
|
282 | + * @param SimpleXMLElement $xml |
|
283 | + * @param string $child_name |
|
284 | + * @return string |
|
285 | + */ |
|
286 | 286 | public function toXML($data, Config $xml, string $child_name): string |
287 | 287 | { |
288 | 288 | if (is_array($data)) { |
@@ -271,7 +271,7 @@ |
||
271 | 271 | * @param string $class |
272 | 272 | * @param string $method |
273 | 273 | * @param array $parsed_params |
274 | - * @return array |
|
274 | + * @return callable |
|
275 | 275 | */ |
276 | 276 | protected function getParams(string $class, string $method, array $parsed_params): array |
277 | 277 | { |
@@ -209,7 +209,7 @@ |
||
209 | 209 | } |
210 | 210 | } else { |
211 | 211 | $this->logger->debug('requested path ['.$this->path.'] does not match route ['.$route->getPath().']', [ |
212 | - 'category' => get_class($this), |
|
212 | + 'category' => get_class($this), |
|
213 | 213 | ]); |
214 | 214 | } |
215 | 215 | } |
@@ -48,7 +48,6 @@ discard block |
||
48 | 48 | /** |
49 | 49 | * Create adapter |
50 | 50 | * |
51 | - * @param Iterable $options |
|
52 | 51 | * @return void |
53 | 52 | */ |
54 | 53 | public function __construct(?Iterable $config=null) |
@@ -91,7 +90,6 @@ discard block |
||
91 | 90 | /** |
92 | 91 | * Set options |
93 | 92 | * |
94 | - * @param Iterable $options |
|
95 | 93 | * @return AdapterInterface |
96 | 94 | */ |
97 | 95 | public function setOptions(?Iterable $config=null): AdapterInterface |
@@ -26,7 +26,6 @@ discard block |
||
26 | 26 | /** |
27 | 27 | * Create adapter |
28 | 28 | * |
29 | - * @param Iterable $options |
|
30 | 29 | * @return void |
31 | 30 | */ |
32 | 31 | public function __construct(?Iterable $config=null); |
@@ -57,7 +56,6 @@ discard block |
||
57 | 56 | /** |
58 | 57 | * Set options |
59 | 58 | * |
60 | - * @param Iterable $options |
|
61 | 59 | * @return AdapterInterface |
62 | 60 | */ |
63 | 61 | public function setOptions(?Iterable $config=null): AdapterInterface; |
@@ -31,7 +31,6 @@ |
||
31 | 31 | /** |
32 | 32 | * Set options |
33 | 33 | * |
34 | - * @param Iterable $options |
|
35 | 34 | * @return AdapterInterface |
36 | 35 | */ |
37 | 36 | public function setOptions(?Iterable $config=null): AdapterInterface |
@@ -60,8 +60,8 @@ |
||
60 | 60 | * Convert to bash color |
61 | 61 | * |
62 | 62 | * @param string $string |
63 | - * @param string $forderground_color |
|
64 | - * @param string $backgrond_coilor |
|
63 | + * @param string $foreground_color |
|
64 | + * @param string $background_color |
|
65 | 65 | * @return string |
66 | 66 | */ |
67 | 67 | public function getColoredString(string $string, string $foreground_color = null, string $background_color = null): string |