Completed
Push — master ( 6b73b6...a2735d )
by Edgar
03:29
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 1 patch
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.
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/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.
src/svg/SVGElement.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -49,6 +49,9 @@  discard block
 block discarded – undo
49 49
         $this->root->append($this);
50 50
     }
51 51
 
52
+    /**
53
+     * @param string $name
54
+     */
52 55
     public function createElement($name, $value = null, $attributes = [])
53 56
     {
54 57
         return $this->root->createElement($name, $value, $attributes);
@@ -106,6 +109,9 @@  discard block
 block discarded – undo
106 109
         $this->element->setAttribute($name, $value);
107 110
     }
108 111
 
112
+    /**
113
+     * @param string $name
114
+     */
109 115
     public function getXLinkAttribute($name)
110 116
     {
111 117
         return $this->element->getAttributeNS('xlink', $name);
@@ -154,6 +160,9 @@  discard block
 block discarded – undo
154 160
         return $element;
155 161
     }
156 162
 
163
+    /**
164
+     * @return ElementInterface
165
+     */
157 166
     protected static function getDefs(ElementInterface $container)
158 167
     {
159 168
         if ($container instanceof Defs) {
Please login to merge, or discard this patch.
src/svg/XMLDocumentInterface.php 1 patch
Doc Comments   +9 added lines, -5 removed lines patch added patch discarded remove patch
@@ -4,10 +4,14 @@  discard block
 block discarded – undo
4 4
 
5 5
 interface XMLDocumentInterface
6 6
 {
7
+    /**
8
+     * @return \DOMElement
9
+     */
7 10
     public function getElement();
8 11
 
9 12
     /**
10 13
      * @param mixed $value The text value of node.
14
+     * @return void
11 15
      */
12 16
     public function setNodeValue($value);
13 17
 
@@ -37,15 +41,15 @@  discard block
 block discarded – undo
37 41
     public function getAttribute($name);
38 42
 
39 43
     /**
40
-     * @param $namespaceURI
41
-     * @param $qualifiedName
44
+     * @param string $namespaceURI
45
+     * @param string $qualifiedName
42 46
      * @param $value
43 47
      * @return string
44 48
      */
45 49
     public function setAttributeNS($namespaceURI, $qualifiedName, $value);
46 50
 
47 51
     /**
48
-     * @param $namespaceURI
52
+     * @param string $namespaceURI
49 53
      * @param $localName
50 54
      * @return mixed
51 55
      */
@@ -69,14 +73,14 @@  discard block
 block discarded – undo
69 73
      * @param string $namespaceURI
70 74
      * @param string $qualifiedName
71 75
      * @param string $value
72
-     * @return mixed
76
+     * @return \DOMElement
73 77
      */
74 78
     public function createElementNS($namespaceURI, $qualifiedName, $value = null);
75 79
 
76 80
     /**
77 81
      * @param XMLDocumentInterface $child The element to remove.
78 82
      *
79
-     * @return mixed
83
+     * @return \DOMNode
80 84
      */
81 85
     public function removeNode(XMLDocumentInterface $child);
82 86
 
Please login to merge, or discard this patch.
src/svg/container/Pattern.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -115,6 +115,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.