@@ -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 | */ |
@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | interface XMLDocumentInterface |
| 6 | 6 | { |
| 7 | 7 | /** |
| 8 | - * @return XMLDocumentInterface|\DOMElement|\DOMDocument |
|
| 8 | + * @return \DOMNode |
|
| 9 | 9 | */ |
| 10 | 10 | public function getElement(); |
| 11 | 11 | |
@@ -20,7 +20,7 @@ discard block |
||
| 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 | */ |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | /** |
| 54 | 54 | * @param $box array The array with size equals 4. |
| 55 | 55 | * |
| 56 | - * @return array|null |
|
| 56 | + * @return ElementInterface |
|
| 57 | 57 | */ |
| 58 | 58 | public static function boxFromPointsArray(array $box) |
| 59 | 59 | { |
@@ -92,6 +92,9 @@ |
||
| 92 | 92 | return $this->shortcutBuild('rotate', [floatval($angle), $cx, $cy]); |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | + /** |
|
| 96 | + * @param string $transform |
|
| 97 | + */ |
|
| 95 | 98 | private function shortcutBuild($transform, $data) |
| 96 | 99 | { |
| 97 | 100 | $this->sequence[] = $transform; |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | * @return Transform |
| 39 | 39 | */ |
| 40 | 40 | public static function newInstance($transformString = null, TransformMatcherInterface $matcher = null, |
| 41 | - PackerInterface $packer = null) |
|
| 41 | + PackerInterface $packer = null) |
|
| 42 | 42 | { |
| 43 | 43 | $instance = new Transform(); |
| 44 | 44 | $matcherImpl = $matcher === null ? new TransformMatcher() : $matcher; |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | /** |
| 45 | 45 | * @param ElementInterface $parent |
| 46 | 46 | * @param $x1 |
| 47 | - * @param $y1 |
|
| 47 | + * @param integer $y1 |
|
| 48 | 48 | * @param $x2 |
| 49 | 49 | * @param $y2 |
| 50 | 50 | * |
@@ -17,6 +17,7 @@ |
||
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | 19 | * Clears all transformation data. |
| 20 | + * @return \nstdio\svg\traits\TransformTrait|null |
|
| 20 | 21 | */ |
| 21 | 22 | public function clearTransformation(); |
| 22 | 23 | |