mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-06 04:34:00 +00:00
Various code optimalisations.
This commit is contained in:
@@ -276,7 +276,7 @@ class ReportController extends Controller
|
||||
*
|
||||
* @return mixed
|
||||
*
|
||||
|
||||
* @throws \Throwable
|
||||
*/
|
||||
public function options(string $reportType)
|
||||
{
|
||||
@@ -426,7 +426,7 @@ class ReportController extends Controller
|
||||
$set = new Collection;
|
||||
$names = $revenue->pluck('name')->toArray();
|
||||
foreach ($expense as $exp) {
|
||||
if (\in_array($exp->name, $names)) {
|
||||
if (in_array($exp->name, $names, true)) {
|
||||
$set->push($exp);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user