@@ -167,10 +167,10 @@ |
||
167 | 167 | |
168 | 168 | // Setup image maps |
169 | 169 | if (!empty($this->csimtargets[$i])) { |
170 | - $this->csimareas .= '<area shape="rect" coords="'. |
|
171 | - round($xl).','.round($ytop).','. |
|
172 | - round($xr).','.round($ybottom).'" '; |
|
173 | - $this->csimareas .= ' href="'.$this->csimtargets[$i].'"'; |
|
170 | + $this->csimareas .= '<area shape="rect" coords="' . |
|
171 | + round($xl) . ',' . round($ytop) . ',' . |
|
172 | + round($xr) . ',' . round($ybottom) . '" '; |
|
173 | + $this->csimareas .= ' href="' . $this->csimtargets[$i] . '"'; |
|
174 | 174 | if (!empty($this->csimalts[$i])) { |
175 | 175 | $sval = $this->csimalts[$i]; |
176 | 176 | $this->csimareas .= " title=\"${sval}\" alt=\"${sval}\" "; |
@@ -340,16 +340,16 @@ |
||
340 | 340 | if ($i < count($this->plots[$j]->csimtargets)) { |
341 | 341 | // Create the client side image map |
342 | 342 | $rpts = $img->ArrRotate($pts); |
343 | - $csimcoord = round($rpts[0]).', '.round($rpts[1]); |
|
343 | + $csimcoord = round($rpts[0]) . ', ' . round($rpts[1]); |
|
344 | 344 | for ($k = 1; $k < 4; ++$k) { |
345 | - $csimcoord .= ', '.round($rpts[2 * $k]).', '.round($rpts[2 * $k + 1]); |
|
345 | + $csimcoord .= ', ' . round($rpts[2 * $k]) . ', ' . round($rpts[2 * $k + 1]); |
|
346 | 346 | } |
347 | 347 | if (!empty($this->plots[$j]->csimtargets[$i])) { |
348 | - $this->csimareas .= '<area shape="poly" coords="'.$csimcoord.'" '; |
|
349 | - $this->csimareas .= ' href="'.$this->plots[$j]->csimtargets[$i].'" '; |
|
348 | + $this->csimareas .= '<area shape="poly" coords="' . $csimcoord . '" '; |
|
349 | + $this->csimareas .= ' href="' . $this->plots[$j]->csimtargets[$i] . '" '; |
|
350 | 350 | |
351 | 351 | if (!empty($this->plots[$j]->csimwintargets[$i])) { |
352 | - $this->csimareas .= ' target="'.$this->plots[$j]->csimwintargets[$i].'" '; |
|
352 | + $this->csimareas .= ' target="' . $this->plots[$j]->csimwintargets[$i] . '" '; |
|
353 | 353 | } |
354 | 354 | |
355 | 355 | $sval = ''; |
@@ -131,16 +131,16 @@ discard block |
||
131 | 131 | $yp = floor($yc - $height * sin($ea) / 2); |
132 | 132 | |
133 | 133 | if ($ea >= M_PI && $ea <= 2 * M_PI * 1.01) { |
134 | - $coords .= ", ${xp}, ".floor($yp + $thick); |
|
134 | + $coords .= ", ${xp}, " . floor($yp + $thick); |
|
135 | 135 | } |
136 | 136 | $coords .= ", ${xp}, ${yp}"; |
137 | 137 | $alt = ''; |
138 | 138 | |
139 | 139 | if (!empty($this->csimtargets[$i])) { |
140 | - $this->csimareas .= "<area shape=\"poly\" coords=\"${coords}\" href=\"".$this->csimtargets[$i].'"'; |
|
140 | + $this->csimareas .= "<area shape=\"poly\" coords=\"${coords}\" href=\"" . $this->csimtargets[$i] . '"'; |
|
141 | 141 | |
142 | 142 | if (!empty($this->csimwintargets[$i])) { |
143 | - $this->csimareas .= ' target="'.$this->csimwintargets[$i].'" '; |
|
143 | + $this->csimareas .= ' target="' . $this->csimwintargets[$i] . '" '; |
|
144 | 144 | } |
145 | 145 | |
146 | 146 | if (!empty($this->csimalts[$i])) { |
@@ -399,7 +399,7 @@ discard block |
||
399 | 399 | $pt[] = $yc; |
400 | 400 | } |
401 | 401 | |
402 | - $img->PushColor($fillcolor.':'.$shadow); |
|
402 | + $img->PushColor($fillcolor . ':' . $shadow); |
|
403 | 403 | $img->FilledPolygon($p); |
404 | 404 | $img->PopColor(); |
405 | 405 |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | $this->scale = new Graph\WindrosePlotScale($this->iData); |
89 | 89 | |
90 | 90 | // default label for free type i agle and a degree sign |
91 | - $this->iLabelFormatString = '%.1f'.Graph\SymChar::Get('degree'); |
|
91 | + $this->iLabelFormatString = '%.1f' . Graph\SymChar::Get('degree'); |
|
92 | 92 | |
93 | 93 | $delta = 2 * M_PI / 16; |
94 | 94 | for ($i = 0, $a = 0; $i < 16; ++$i, $a += $delta) { |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | $xcenter = $x; |
334 | 334 | |
335 | 335 | // Construct format string |
336 | - $fmt = $this->legend->iFormatString.'-'.$this->legend->iFormatString; |
|
336 | + $fmt = $this->legend->iFormatString . '-' . $this->legend->iFormatString; |
|
337 | 337 | |
338 | 338 | // Make sure that the length of each range is enough to cover the |
339 | 339 | // size of the labels |
@@ -152,7 +152,7 @@ |
||
152 | 152 | |
153 | 153 | $plot->Clear(); |
154 | 154 | |
155 | - $plot->SetColor($this->GetNextColor().'@0.4'); |
|
155 | + $plot->SetColor($this->GetNextColor() . '@0.4'); |
|
156 | 156 | $plot->SetWeight(2); |
157 | 157 | |
158 | 158 | break; |
@@ -145,7 +145,7 @@ |
||
145 | 145 | case 'LinePlot': |
146 | 146 | |
147 | 147 | $plot->Clear(); |
148 | - $plot->SetColor($this->GetNextColor().'@0.4'); |
|
148 | + $plot->SetColor($this->GetNextColor() . '@0.4'); |
|
149 | 149 | $plot->SetWeight(2); |
150 | 150 | // $plot->SetBarCenter(); |
151 | 151 | break; |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | if ($classname == 'Graph') { |
56 | 56 | $method_name = 'SetupGraph'; |
57 | 57 | } else { |
58 | - $method_name = 'Setup'.$classname; |
|
58 | + $method_name = 'Setup' . $classname; |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | if (method_exists($this, $method_name)) { |
@@ -106,12 +106,12 @@ discard block |
||
106 | 106 | $color_tmp = $color_list[$this->color_index % $color_count]; |
107 | 107 | $brightness = 1.0 - (int) ($this->color_index / $color_count) * 0.2; |
108 | 108 | $rgb = new RGB(); |
109 | - $color = $color_tmp.':'.$brightness; |
|
109 | + $color = $color_tmp . ':' . $brightness; |
|
110 | 110 | $color = $rgb->Color($color); |
111 | 111 | $alpha = array_pop($color); |
112 | 112 | $color = $rgb->tryHexConversion($color); |
113 | 113 | if ($alpha) { |
114 | - $color .= '@'.$alpha; |
|
114 | + $color .= '@' . $alpha; |
|
115 | 115 | } |
116 | 116 | } |
117 | 117 | } |
@@ -160,7 +160,7 @@ |
||
160 | 160 | case 'LinePlot': |
161 | 161 | |
162 | 162 | $plot->Clear(); |
163 | - $plot->SetColor($this->GetNextColor().'@0.4'); |
|
163 | + $plot->SetColor($this->GetNextColor() . '@0.4'); |
|
164 | 164 | $plot->SetWeight(2); |
165 | 165 | |
166 | 166 | break; |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | } elseif ($this->label_logtype == LOGLABELS_PLAIN) { |
86 | 86 | $this->maj_ticks_label[0] = $start; |
87 | 87 | } else { |
88 | - $this->maj_ticks_label[0] = '10^'.round(log10($start)); |
|
88 | + $this->maj_ticks_label[0] = '10^' . round(log10($start)); |
|
89 | 89 | } |
90 | 90 | } |
91 | 91 | $i = 1; |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | } elseif ($this->label_logtype == 0) { |
114 | 114 | $this->maj_ticks_label[$i] = $nextMajor; |
115 | 115 | } else { |
116 | - $this->maj_ticks_label[$i] = '10^'.round(log10($nextMajor)); |
|
116 | + $this->maj_ticks_label[$i] = '10^' . round(log10($nextMajor)); |
|
117 | 117 | } |
118 | 118 | ++$i; |
119 | 119 | $nextMajor *= 10; |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | } elseif ($this->label_logtype == 0) { |
147 | 147 | $this->maj_ticks_label[0] = $start; |
148 | 148 | } else { |
149 | - $this->maj_ticks_label[0] = '10^'.round(log10($start)); |
|
149 | + $this->maj_ticks_label[0] = '10^' . round(log10($start)); |
|
150 | 150 | } |
151 | 151 | } |
152 | 152 | $i = 1; |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | } elseif ($this->label_logtype == 0) { |
168 | 168 | $this->maj_ticks_label[$i] = $nextMajor; |
169 | 169 | } else { |
170 | - $this->maj_ticks_label[$i] = '10^'.round(log10($nextMajor)); |
|
170 | + $this->maj_ticks_label[$i] = '10^' . round(log10($nextMajor)); |
|
171 | 171 | } |
172 | 172 | ++$i; |
173 | 173 | $nextMajor *= 10; |