mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Small optimalizations [skip ci]
This commit is contained in:
@@ -187,17 +187,6 @@ class GoogleChartController extends Controller
|
|||||||
if ($entry[1] != 0 || $entry[2] != 0 || $entry[3] != 0) {
|
if ($entry[1] != 0 || $entry[2] != 0 || $entry[3] != 0) {
|
||||||
$chart->addRow($entry[0], $entry[1], $entry[2], $entry[3]);
|
$chart->addRow($entry[0], $entry[1], $entry[2], $entry[3]);
|
||||||
}
|
}
|
||||||
// if ($entry[2] > 0) {
|
|
||||||
// $left = $entry[1] - $entry[2];
|
|
||||||
// if ($left > 0) {
|
|
||||||
// $chart->addRow($entry[0], $left, null);
|
|
||||||
// } else {
|
|
||||||
// if ($left < 0) {
|
|
||||||
// $chart->addRow($entry[0], null, $left);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$chart->generate();
|
$chart->generate();
|
||||||
|
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
namespace FireflyIII\Support;
|
namespace FireflyIII\Support;
|
||||||
|
|
||||||
use Cache;
|
|
||||||
use FireflyIII\Models\Transaction;
|
use FireflyIII\Models\Transaction;
|
||||||
use FireflyIII\Models\TransactionCurrency;
|
use FireflyIII\Models\TransactionCurrency;
|
||||||
use FireflyIII\Models\TransactionJournal;
|
use FireflyIII\Models\TransactionJournal;
|
||||||
|
@@ -7,4 +7,4 @@ return [
|
|||||||
'mandatoryFields' => 'Mandatory fields',
|
'mandatoryFields' => 'Mandatory fields',
|
||||||
'optionalFields' => 'Optional fields',
|
'optionalFields' => 'Optional fields',
|
||||||
'options' => 'Options'
|
'options' => 'Options'
|
||||||
];
|
];
|
||||||
|
Reference in New Issue
Block a user