@@ -115,6 +115,9 @@ |
||
115 | 115 | return self::hatch($container, $patternConfig, $lineConfig, $id)->rotate(90); |
116 | 116 | } |
117 | 117 | |
118 | + /** |
|
119 | + * @return ElementInterface |
|
120 | + */ |
|
118 | 121 | public static function diagonalHatch(ContainerInterface $container, array $patternConfig = [], array $lineConfig = [], $id = null) |
119 | 122 | { |
120 | 123 | return self::hatch($container, $patternConfig, $lineConfig, $id)->rotate(45); |
@@ -176,7 +176,9 @@ |
||
176 | 176 | { |
177 | 177 | /** @var \DOMElement $item */ |
178 | 178 | foreach ($element->childNodes as $key => $item) { |
179 | - if ($item instanceof \DOMText) continue; |
|
179 | + if ($item instanceof \DOMText) { |
|
180 | + continue; |
|
181 | + } |
|
180 | 182 | $parent = $this->toObject($item, $obj); |
181 | 183 | if ($item->hasChildNodes() && $parent !== null) { |
182 | 184 | $this->buildObjectTree($item, $parent); |
@@ -148,7 +148,7 @@ |
||
148 | 148 | /** |
149 | 149 | * @param \DOMElement $element |
150 | 150 | * |
151 | - * @param array $attrs |
|
151 | + * @param string $attrs |
|
152 | 152 | * |
153 | 153 | * @return array |
154 | 154 | */ |
@@ -51,7 +51,7 @@ |
||
51 | 51 | /** |
52 | 52 | * To avoid duplication. |
53 | 53 | * |
54 | - * @param $length |
|
54 | + * @param integer $length |
|
55 | 55 | * |
56 | 56 | * @return int |
57 | 57 | */ |
@@ -20,7 +20,7 @@ |
||
20 | 20 | public function getNodeValue(); |
21 | 21 | |
22 | 22 | /** |
23 | - * @param array $except Returned array will not contain attributes specified in this array. |
|
23 | + * @param string[] $except Returned array will not contain attributes specified in this array. |
|
24 | 24 | * |
25 | 25 | * @return array Associative array where the keys are the name of the attribute node. |
26 | 26 | */ |