@@ 247-251 (lines=5) @@ | ||
244 | $this->formatValue($deviation, $dataType, true), |
|
245 | $this->formatValue($deviationPercent, 'percent', true) |
|
246 | ); |
|
247 | if (!$lessIsBetter) { |
|
248 | $result['isPositive'] = $deviation > 0; |
|
249 | } else { |
|
250 | $result['isPositive'] = !($deviation > 0); |
|
251 | } |
|
252 | } |
|
253 | } else { |
|
254 | if (round(($deviation) * 100, 0) != 0) { |
|
@@ 256-260 (lines=5) @@ | ||
253 | } else { |
|
254 | if (round(($deviation) * 100, 0) != 0) { |
|
255 | $result['deviation'] = $this->formatValue($deviation, $dataType, true); |
|
256 | if (!$lessIsBetter) { |
|
257 | $result['isPositive'] = $deviation > 0; |
|
258 | } else { |
|
259 | $result['isPositive'] = !($deviation > 0); |
|
260 | } |
|
261 | } |
|
262 | } |
|
263 |