Test Failed
Push — master ( 589279...483f83 )
by Edgar
06:29
created
src/svg/import/Importer.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -176,7 +176,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/svg/util/Identifier.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
     /**
52 52
      * To avoid duplication.
53 53
      *
54
-     * @param $length
54
+     * @param integer $length
55 55
      *
56 56
      * @return int
57 57
      */
Please login to merge, or discard this patch.
src/svg/XMLDocumentInterface.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/svg/shape/Rect.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/svg/util/transform/Transform.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -92,6 +92,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/svg/shape/Line.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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
      *
Please login to merge, or discard this patch.
src/svg/util/transform/TransformInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -17,6 +17,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.