@@ -238,7 +238,6 @@ |
||
238 | 238 | /** |
239 | 239 | * Builds a litteral (folded or not) or any NodeList that has YAML::RAW type (like a multiline value) |
240 | 240 | * |
241 | - * @param NodeList $children The children |
|
242 | 241 | * @param integer $type The type |
243 | 242 | * |
244 | 243 | * @return string The litteral. |
@@ -102,6 +102,9 @@ |
||
102 | 102 | //TODO: $references = $dataType->getAllReferences(); |
103 | 103 | } |
104 | 104 | |
105 | + /** |
|
106 | + * @param integer $indent |
|
107 | + */ |
|
105 | 108 | private static function add($value, $indent) |
106 | 109 | { |
107 | 110 | $newVal = str_repeat(" ", $indent).$value; |
@@ -38,6 +38,9 @@ |
||
38 | 38 | private const EXCEPTION_READ_ERROR = self::class.": file '%s' failed to be loaded (permission denied ?)"; |
39 | 39 | private const EXCEPTION_LINE_SPLIT = self::class.": content is not a string(maybe a file error?)"; |
40 | 40 | |
41 | + /** |
|
42 | + * @param string $absolutePath |
|
43 | + */ |
|
41 | 44 | public function __construct($absolutePath = null, $options = null, $debug = 0) |
42 | 45 | { |
43 | 46 | $this->debug = is_int($debug) ? min($debug, 3) : 1; |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | * Create the Node object and parses $nodeString IF not null (else assume a root type Node) |
33 | 33 | * |
34 | 34 | * @param string|null $nodeString The node string |
35 | - * @param int|null $line The line |
|
35 | + * @param integer $line The line |
|
36 | 36 | */ |
37 | 37 | public function __construct($nodeString = null, $line = 0) |
38 | 38 | { |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | * Process when a "key: value" syntax is found in the parsed string |
222 | 222 | * Note : key is match 1, value is match 2 as per regex from R::KEY |
223 | 223 | * |
224 | - * @param array $matches The matches provided by 'preg_match' function in Node::parse |
|
224 | + * @param string[] $matches The matches provided by 'preg_match' function in Node::parse |
|
225 | 225 | */ |
226 | 226 | private function onKey(array $matches) |
227 | 227 | { |