Completed
Push — master ( 5c097e...be1d3a )
by Edgar
04:05
created
src/svg/container/SVG.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
     /**
49 49
      * @param array $assoc
50 50
      *
51
-     * @return mixed
51
+     * @return SVG
52 52
      */
53 53
     public function apply(array $assoc)
54 54
     {
Please login to merge, or discard this patch.
src/svg/gradient/Gradient.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     }
26 26
 
27 27
     /**
28
-     * @param Stop|Stop[] $stops
28
+     * @param Stop $stops
29 29
      */
30 30
     public function appendStop(Stop $stops)
31 31
     {
Please login to merge, or discard this patch.
src/svg/traits/ElementTrait.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 trait ElementTrait
14 14
 {
15 15
     /**
16
-     * @param ElementInterface|ElementInterface[] $elements
16
+     * @param ElementInterface $elements
17 17
      *
18 18
      * @return $this
19 19
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     public function append(ElementInterface $elements)
21 21
     {
22 22
         /** @var ElementInterface[] $elements */
23
-        $elements = array_filter(func_get_args(), function ($item) {
23
+        $elements = array_filter(func_get_args(), function($item) {
24 24
             return $item instanceof ElementInterface;
25 25
         });
26 26
 
Please login to merge, or discard this patch.
src/svg/util/Identifier.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -20,6 +20,10 @@
 block discarded – undo
20 20
         return $tag . (++$count);
21 21
     }
22 22
 
23
+    /**
24
+     * @param string $prefix
25
+     * @param integer $length
26
+     */
23 27
     public static function random($prefix, $length)
24 28
     {
25 29
         $length = intval($length);
Please login to merge, or discard this patch.
src/svg/gradient/UniformGradient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
             }
32 32
         }
33 33
         $step = 1 / (count($colors) - 1);
34
-        $offsets = array_map(function ($item) {
34
+        $offsets = array_map(function($item) {
35 35
             return $item % 1 !== 0 ? sprintf('%0.2f', $item) : $item;
36 36
         }, range(0, 1, $step));
37 37
 
Please login to merge, or discard this patch.
src/svg/shape/Rect.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
         return 'rect';
80 80
     }
81 81
 
82
-    public static function union(array $rect1 , array $rect2)
82
+    public static function union(array $rect1, array $rect2)
83 83
     {
84 84
         $result['x'] = min($rect1['x'], $rect2['x']);
85 85
         $result['y'] = min($rect1['y'], $rect2['y']);
Please login to merge, or discard this patch.
src/svg/shape/PathBounds.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -215,7 +215,9 @@
 block discarded – undo
215 215
      */
216 216
     private function getLastData()
217 217
     {
218
-        if (empty($this->data)) return [];
218
+        if (empty($this->data)) {
219
+            return [];
220
+        }
219 221
         $prevData = $this->data[count($this->data) - 1];
220 222
         $prevData = $prevData[key($prevData)];
221 223
 
Please login to merge, or discard this patch.
src/svg/traits/ChildTrait.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -65,6 +65,7 @@
 block discarded – undo
65 65
 
66 66
     /**
67 67
      * @inheritdoc
68
+     * @return ElementInterface
68 69
      */
69 70
     public function getFirstChild()
70 71
     {
Please login to merge, or discard this patch.
src/svg/traits/TransformTrait.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -29,6 +29,7 @@
 block discarded – undo
29 29
 
30 30
     /**
31 31
      * @inheritdoc
32
+     * @param integer $angle
32 33
      */
33 34
     public function rotate($angle, $cx = null, $cy = null)
34 35
     {
Please login to merge, or discard this patch.