Completed
Push — master ( 30f8c9...32b148 )
by Edgar
05:23 queued 01:57
created
example/shapes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 $rect->ry = 5;
21 21
 $rect->stroke = 'darkgreen';
22 22
 $rect->fill = 'limegreen';
23
-$rect->strokeWidth = 1.5;  // In this particular case strokeWidth will be converted into stroke-width.
23
+$rect->strokeWidth = 1.5; // In this particular case strokeWidth will be converted into stroke-width.
24 24
 
25 25
 // Or use apply method.
26 26
 $rect->apply(['stroke' => 'darkgreen', 'fill' => 'limegreen', 'stroke-width' => 1.5]);
Please login to merge, or discard this patch.
example/colorMatrix.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 $defs = new Defs($svg);
21 21
 
22 22
 $linearGradient = UniformGradient::uniformGradient($defs, ['#ff00ff', '#88ff88', '#2020ff', '#d00000'], null);
23
-KeyValueWriter::apply($linearGradient->getElement(), ['gradientUnits' => 'userSpaceOnUse', 'x1' => 0, 'y1' => 0, 'x2' => $svg->getElement()->getAttribute('width'), 'y2' => 0,]);
23
+KeyValueWriter::apply($linearGradient->getElement(), ['gradientUnits' => 'userSpaceOnUse', 'x1' => 0, 'y1' => 0, 'x2' => $svg->getElement()->getAttribute('width'), 'y2' => 0, ]);
24 24
 
25 25
 $defs->append($linearGradient);
26 26
 
Please login to merge, or discard this patch.
example/motion.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
 $path = new Path($svg, 100, 250);
26 26
 $path->id = 'path1';
27
-$path->curveTo(100,50, 400,50, 400,250);
27
+$path->curveTo(100, 50, 400, 50, 400, 250);
28 28
 $path->fill = "none";
29 29
 $path->stroke = "blue";
30 30
 $path->strokeWidth = 7.06;
Please login to merge, or discard this patch.
example/transform.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,9 +20,9 @@
 block discarded – undo
20 20
 $transform->to = "360 75 75";
21 21
 $transform->dur = "10s";
22 22
 $transform->begin = "0s; 5s; 9s; 17s;";
23
-$transform->end="2s; 8s; 15s; 25s;";
24
-$transform->fill="freeze";
25
-$transform->restart="whenNotActive";
23
+$transform->end = "2s; 8s; 15s; 25s;";
24
+$transform->fill = "freeze";
25
+$transform->restart = "whenNotActive";
26 26
 
27 27
 $rect->animate($transform);
28 28
 
Please login to merge, or discard this patch.
example/set.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 $transform->begin = "0s";
25 25
 $transform->fill = "freeze";
26 26
 $transform->repeatCount = "indefinite";
27
-$transform->restart="whenNotActive";
27
+$transform->restart = "whenNotActive";
28 28
 
29 29
 $rect->animate($transform);
30 30
 
Please login to merge, or discard this patch.
src/svg/shape/Path.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -96,6 +96,9 @@
 block discarded – undo
96 96
         }
97 97
     }
98 98
 
99
+    /**
100
+     * @param string $type
101
+     */
99 102
     private function addData($type, array $params)
100 103
     {
101 104
         $this->data[] = [$type => $params];
Please login to merge, or discard this patch.
src/svg/util/Bezier.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
             return $p0;
127 127
         }
128 128
         $omt = 1 - $t;
129
-        $value = $p0 * $omt * $omt *$omt +
129
+        $value = $p0 * $omt * $omt * $omt +
130 130
             3 * $p1 * $t * $omt * $omt +
131 131
             3 * $p2 * $t * $t * $omt +
132 132
             $p3 * $t * $t * $t;
Please login to merge, or discard this patch.