Passed
Branch master (8f5e6a)
by Felipe
06:03
created
src/image/GanttLink.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@
 block discarded – undo
15 15
     private $iy1;
16 16
     private $iy2;
17 17
     private $iPathType  = 2;
18
-    private $iPathExtend  = 15;
18
+    private $iPathExtend = 15;
19 19
     private $iColor     = 'black';
20
-    private $iWeight     = 1;
20
+    private $iWeight = 1;
21 21
     private $iArrowSize = ARROW_S2;
22 22
     private $iArrowType = ARROWT_SOLID;
23 23
 
Please login to merge, or discard this patch.
src/image/Progress.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@
 block discarded – undo
13 13
     public $iProgress = -1;
14 14
     public $iPattern  = GANTT_SOLID;
15 15
     public $iColor    = "black";
16
-    public $iFillColor    = 'black';
16
+    public $iFillColor = 'black';
17 17
     public $iDensity  = 98;
18
-    public $iHeight  = 0.65;
18
+    public $iHeight = 0.65;
19 19
 
20 20
     public function Set($aProg)
21 21
     {
Please login to merge, or discard this patch.
src/image/Image.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     private $_bottom_margin = 30;
46 46
     //private $_plotwidth=0,$_plotheight=0;
47 47
     private $_width       = 0;
48
-    private $_height       = 0;
48
+    private $_height = 0;
49 49
     private $_line_weight = 1;
50 50
 
51 51
     protected $expired           = true;
@@ -53,15 +53,15 @@  discard block
 block discarded – undo
53 53
     protected $lasty             = 0;
54 54
     protected $obs_list          = array();
55 55
     protected $font_size         = 12;
56
-    protected $font_family         = FF_DEFAULT;
57
-    protected $font_style         = FS_NORMAL;
56
+    protected $font_family = FF_DEFAULT;
57
+    protected $font_style = FS_NORMAL;
58 58
     protected $font_file         = '';
59 59
     protected $text_halign       = "left";
60 60
     protected $text_valign       = "bottom";
61 61
     protected $use_anti_aliasing = false;
62 62
     protected $quality           = null;
63 63
     protected $colorstack        = array();
64
-    protected $colorstackidx        = 0;
64
+    protected $colorstackidx = 0;
65 65
     protected $canvascolor       = 'white';
66 66
     protected $langconv          = null;
67 67
     protected $iInterlace        = false;
Please login to merge, or discard this patch.
src/util/LinearRegression.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
13 13
     private $ia          = 0;
14 14
     private $icalculated = false;
15 15
     public $iDet         = 0;
16
-    public $iCorr         = 0;
17
-    public $iStdErr         = 0;
16
+    public $iCorr = 0;
17
+    public $iStdErr = 0;
18 18
 
19 19
     public function __construct($aDataX, $aDataY)
20 20
     {
Please login to merge, or discard this patch.
Examples/examples_gantt/ganttmonthyearex1.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,11 +27,11 @@
 block discarded – undo
27 27
 
28 28
 // Data for our example activities
29 29
 $data = array(
30
-    array(0,"Group 1  Johan", "2001-11-23","2002-03-1",FF_FONT1,FS_BOLD,8),
31
-    array(1,"  Label 2", "2001-10-26","2001-11-16"));
30
+    array(0, "Group 1  Johan", "2001-11-23", "2002-03-1", FF_FONT1, FS_BOLD, 8),
31
+    array(1, "  Label 2", "2001-10-26", "2001-11-16"));
32 32
     
33 33
 // Create the bars and add them to the gantt chart
34
-for ($i=0; $i < count($data); ++$i) {
34
+for ($i = 0; $i < count($data); ++$i) {
35 35
     $bar = new GanttBar($data[$i][0], $data[$i][1], $data[$i][2], $data[$i][3], "[50%]", 10);
36 36
     if (count($data[$i]) > 4) {
37 37
         $bar->title->SetFont($data[$i][4], $data[$i][5], $data[$i][6]);
Please login to merge, or discard this patch.
Examples/examples_gantt/gantthgridex1.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -6,10 +6,10 @@  discard block
 block discarded – undo
6 6
 
7 7
 // Some dummy data for some activities
8 8
 $data = array(
9
-    array(0,"Group 1  Johan", "2001-10-23","2001-11-06",FF_FONT1,FS_BOLD,8),
10
-    array(1,"  Label 2", "2001-10-26","2001-11-04"),
11
-    array(3,"Group 2", "2001-11-20","2001-11-28",FF_FONT1,FS_BOLD,8),
12
-    array(4,"  Label 1", "2001-11-20","2001-12-1"));
9
+    array(0, "Group 1  Johan", "2001-10-23", "2001-11-06", FF_FONT1, FS_BOLD, 8),
10
+    array(1, "  Label 2", "2001-10-26", "2001-11-04"),
11
+    array(3, "Group 2", "2001-11-20", "2001-11-28", FF_FONT1, FS_BOLD, 8),
12
+    array(4, "  Label 1", "2001-11-20", "2001-12-1"));
13 13
 
14 14
 // New Gantt Graph
15 15
 $graph = new GanttGraph(500);
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 $graph->title->SetFont(FF_VERDANA, FS_NORMAL, 14);
21 21
 
22 22
 // Specify what headers to show
23
-$graph->ShowHeaders(GANTT_HMONTH|GANTT_HDAY);
23
+$graph->ShowHeaders(GANTT_HMONTH | GANTT_HDAY);
24 24
 $graph->scale->week->SetStyle(WEEKSTYLE_FIRSTDAY);
25 25
 $graph->scale->week->SetFont(FF_FONT0);
26 26
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 $graph->hgrid->SetRowFillColor('[email protected]');
30 30
 
31 31
 
32
-for ($i=0; $i < count($data); ++$i) {
32
+for ($i = 0; $i < count($data); ++$i) {
33 33
     $bar = new GanttBar($data[$i][0], $data[$i][1], $data[$i][2], $data[$i][3], "[5%]", 10);
34 34
     if (count($data[$i]) > 4) {
35 35
         $bar->title->SetFont($data[$i][4], $data[$i][5], $data[$i][6]);
Please login to merge, or discard this patch.
Examples/examples_gantt/ganttconstrainex2.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -8,16 +8,16 @@
 block discarded – undo
8 8
 // The data for the graphs
9 9
 //
10 10
 $data = array(
11
-    array(0,ACTYPE_GROUP,    "Phase 1",        "2001-10-26","2001-11-23",''),
12
-    array(1,ACTYPE_NORMAL,   "  Label 2",      "2001-11-01","2001-11-20",''),
13
-    array(2,ACTYPE_NORMAL,   "  Label 3",      "2001-10-26","2001-11-03",''),
14
-    array(3,ACTYPE_MILESTONE,"  Phase 1 Done", "2001-11-23",'M2') );
11
+    array(0, ACTYPE_GROUP, "Phase 1", "2001-10-26", "2001-11-23", ''),
12
+    array(1, ACTYPE_NORMAL, "  Label 2", "2001-11-01", "2001-11-20", ''),
13
+    array(2, ACTYPE_NORMAL, "  Label 3", "2001-10-26", "2001-11-03", ''),
14
+    array(3, ACTYPE_MILESTONE, "  Phase 1 Done", "2001-11-23", 'M2') );
15 15
 
16 16
 // The constrains between the activities
17
-$constrains = array(array(2,1,CONSTRAIN_ENDSTART),
18
-            array(1,3,CONSTRAIN_STARTSTART));
17
+$constrains = array(array(2, 1, CONSTRAIN_ENDSTART),
18
+            array(1, 3, CONSTRAIN_STARTSTART));
19 19
 
20
-$progress = array(array(1,0.4));
20
+$progress = array(array(1, 0.4));
21 21
 
22 22
 // Create the basic graph
23 23
 $graph = new GanttGraph();
Please login to merge, or discard this patch.
Examples/examples_gantt/ganttcsimex02.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -5,20 +5,20 @@
 block discarded – undo
5 5
 require_once('jpgraph/jpgraph_gantt.php');
6 6
 
7 7
 $data = array(
8
-  array(0,ACTYPE_GROUP,    "Phase 1",        "2001-10-26","2001-11-23",'',
9
-    '#1','Go home'),
10
-  array(1,ACTYPE_NORMAL,   "  Label 2",      "2001-10-26","2001-11-16",'ab,cd',
11
-    '#2','Go home'),
12
-  array(2,ACTYPE_NORMAL,   "  Label 3",      "2001-11-20","2001-11-22",'ek',
13
-    '#3','Go home'),
14
-  array(3,ACTYPE_MILESTONE,"  Phase 1 Done", "2001-11-23",'M2',
15
-    '#4','Go home') );
8
+  array(0, ACTYPE_GROUP, "Phase 1", "2001-10-26", "2001-11-23", '',
9
+    '#1', 'Go home'),
10
+  array(1, ACTYPE_NORMAL, "  Label 2", "2001-10-26", "2001-11-16", 'ab,cd',
11
+    '#2', 'Go home'),
12
+  array(2, ACTYPE_NORMAL, "  Label 3", "2001-11-20", "2001-11-22", 'ek',
13
+    '#3', 'Go home'),
14
+  array(3, ACTYPE_MILESTONE, "  Phase 1 Done", "2001-11-23", 'M2',
15
+    '#4', 'Go home') );
16 16
 
17 17
 // The constrains between the activities
18
-$constrains = array(array(1,2,CONSTRAIN_ENDSTART),
19
-            array(2,3,CONSTRAIN_STARTSTART));
18
+$constrains = array(array(1, 2, CONSTRAIN_ENDSTART),
19
+            array(2, 3, CONSTRAIN_STARTSTART));
20 20
 
21
-$progress = array(array(1,0.4));
21
+$progress = array(array(1, 0.4));
22 22
 
23 23
 $graph = new GanttGraph(500);
24 24
 $graph->title->Set("Example with image map");
Please login to merge, or discard this patch.
Examples/examples_gantt/ganttconstrainex1.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -7,19 +7,19 @@
 block discarded – undo
7 7
 // The data for the graphs
8 8
 //
9 9
 $data = array(
10
-  array(0,ACTYPE_GROUP,    "Phase 1",        "2001-10-26","2001-11-23",''),
11
-  array(1,ACTYPE_NORMAL,   "  Label 2",      "2001-10-26","2001-11-16",''),
12
-  array(2,ACTYPE_NORMAL,   "  Label 3",      "2001-11-20","2001-11-22",''),
13
-  array(3,ACTYPE_NORMAL,   "  Label 4",      "2001-11-20","2001-11-22",''),
14
-  array(4,ACTYPE_MILESTONE,"  Phase 1 Done", "2001-11-23",'M2') );
10
+  array(0, ACTYPE_GROUP, "Phase 1", "2001-10-26", "2001-11-23", ''),
11
+  array(1, ACTYPE_NORMAL, "  Label 2", "2001-10-26", "2001-11-16", ''),
12
+  array(2, ACTYPE_NORMAL, "  Label 3", "2001-11-20", "2001-11-22", ''),
13
+  array(3, ACTYPE_NORMAL, "  Label 4", "2001-11-20", "2001-11-22", ''),
14
+  array(4, ACTYPE_MILESTONE, "  Phase 1 Done", "2001-11-23", 'M2') );
15 15
 
16 16
 // The constrains between the activities
17
-$constrains = array(array(1,2,CONSTRAIN_ENDEND),
18
-            array(2,3,CONSTRAIN_STARTEND),
19
-            array(3,4,CONSTRAIN_ENDSTART),
17
+$constrains = array(array(1, 2, CONSTRAIN_ENDEND),
18
+            array(2, 3, CONSTRAIN_STARTEND),
19
+            array(3, 4, CONSTRAIN_ENDSTART),
20 20
             );
21 21
 
22
-$progress = array(array(1,0.4));
22
+$progress = array(array(1, 0.4));
23 23
 
24 24
 // Create the basic graph
25 25
 $graph = new GanttGraph();
Please login to merge, or discard this patch.