Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /** * PeriodOverview.php * Copyright (c) 2019 [email protected] * * This fil..
Decoded Output download
<?php /**
* PeriodOverview.php
* Copyright (c) 2019 [email protected]
*
* This file is part of Firefly III (https://github.com/firefly-iii).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ declare(strict_types=1);namespace FireflyIII\Support\Http\Controllers;use Carbon\Carbon;use FireflyIII\Exceptions\FireflyException;use FireflyIII\Helpers\Collector\GroupCollectorInterface;use FireflyIII\Models\Account;use FireflyIII\Models\Category;use FireflyIII\Models\Tag;use FireflyIII\Models\TransactionType;use FireflyIII\Repositories\Journal\JournalRepositoryInterface;use FireflyIII\Support\CacheProperties;use Illuminate\Support\Collection;/**
* Trait PeriodOverview.
*
* TODO verify this all works as expected.
*
* - Always request start date and end date.
* - Group expenses, income, etc. under this period.
* - Returns collection of arrays. Fields
* title (string),
* route (string)
* total_transactions (int)
* spent (array),
* earned (array),
* transferred_away (array)
* transferred_in (array)
* transferred (array)
*
* each array has the following format:
* currency_id => [
* currency_id : 1, (int)
* currency_symbol : X (str)
* currency_name: Euro (str)
* currency_code: EUR (str)
* amount: -1234 (str)
* count: 23
* ]
*/ trait PeriodOverview{protected JournalRepositoryInterface $bioub;/**
* This method returns "period entries", so nov-2015, dec-2015, etc etc (this depends on the users session range)
* and for each period, the amount of money spent and earned. This is a complex operation which is cached for
* performance reasons.
*
* @throws FireflyException
*/ protected function bfxr0(Account $jpvgc,Carbon $jvyfd,Carbon $ldite):array{$zkjqf=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->iokm11(true);[$jvyfd,$ldite]=$ldite<$jvyfd?[$ldite,$jvyfd]:[$jvyfd,$ldite];$hgri12=new sfwb13();$hgri12->nxmi14($jvyfd);$hgri12->nxmi14($ldite);$hgri12->nxmi14(base64_decode('YWNjb3VudC1zaG93LXBlcmlvZC1lbnRyaWVz'));$hgri12->nxmi14($jpvgc->$xpmt15);if($hgri12->qxyl16()){return $hgri12->faxm17();}/** @var array $dates */ $fpvm18=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->pauo19($jvyfd,$ldite,$zkjqf);$bbzs1a=[];/** @var GroupCollectorInterface $collector */ $wbrg1b=ewsc10(GroupCollectorInterface::class);$wbrg1b->lkio1c(new bnoq1d([$jpvgc]));$wbrg1b->fzxk1e($jvyfd,$ldite);$wbrg1b->demn1f([TransactionType::DEPOSIT]);$ilmd20=$wbrg1b->cggj21();/** @var GroupCollectorInterface $collector */ $wbrg1b=ewsc10(GroupCollectorInterface::class);$wbrg1b->lkio1c(new bnoq1d([$jpvgc]));$wbrg1b->fzxk1e($jvyfd,$ldite);$wbrg1b->demn1f([TransactionType::WITHDRAWAL]);$bufc22=$wbrg1b->cggj21();/** @var GroupCollectorInterface $collector */ $wbrg1b=ewsc10(GroupCollectorInterface::class);$wbrg1b->lkio1c(new bnoq1d([$jpvgc]));$wbrg1b->fzxk1e($jvyfd,$ldite);$wbrg1b->demn1f([TransactionType::TRANSFER]);$xpdq23=$wbrg1b->cggj21();foreach($fpvm18 as $kzxr24){$hbib25=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->klmk26($kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('cGVyaW9k')]);$pcet27=$this->teyn1($ilmd20,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]);$iybo28=$this->teyn1($bufc22,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]);$rjor29=$this->hhhd2($jpvgc,$this->teyn1($xpdq23,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]));$opvi2a=$this->nayf3($jpvgc,$this->teyn1($xpdq23,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]));$bbzs1a[]=[base64_decode('dGl0bGU=')=>$hbib25,base64_decode('cm91dGU=')=>ckzv2b(base64_decode('YWNjb3VudHMuc2hvdw=='),[$jpvgc->$xpmt15,$kzxr24[base64_decode('c3RhcnQ=')]->jgwi2c(base64_decode('WS1tLWQ=')),$kzxr24[base64_decode('ZW5k')]->jgwi2c(base64_decode('WS1tLWQ='))]),base64_decode('dG90YWxfdHJhbnNhY3Rpb25z')=>count($iybo28)+count($pcet27)+count($rjor29)+count($opvi2a),base64_decode('c3BlbnQ=')=>$this->qidf4($iybo28),base64_decode('ZWFybmVk')=>$this->qidf4($pcet27),base64_decode('dHJhbnNmZXJyZWRfYXdheQ==')=>$this->qidf4($rjor29),base64_decode('dHJhbnNmZXJyZWRfaW4=')=>$this->qidf4($opvi2a),];}$hgri12->wzya2d($bbzs1a);return $bbzs1a;}/**
* Filter a list of journals by a set of dates, and then group them by currency.
*/ private function teyn1(array$dbtm2e,Carbon $jvyfd,Carbon $ldite):array{$hxyq2f=[];/** @var array $journal */ foreach($dbtm2e as $brcb30){if($brcb30[base64_decode('ZGF0ZQ==')]<=$ldite&&$brcb30[base64_decode('ZGF0ZQ==')]>=$jvyfd){$hxyq2f[]=$brcb30;}}return $hxyq2f;}/**
* Return only transactions where $account is the source.
*/ private function hhhd2(Account $jpvgc,array$ejfr31):array{$ikej32=[];/** @var array $journal */ foreach($ejfr31 as $brcb30){if($jpvgc->$xpmt15===(int)$brcb30[base64_decode('c291cmNlX2FjY291bnRfaWQ=')]){$ikej32[]=$brcb30;}}return $ikej32;}/**
* Return only transactions where $account is the source.
*/ private function nayf3(Account $jpvgc,array$ejfr31):array{$ikej32=[];/** @var array $journal */ foreach($ejfr31 as $brcb30){if($jpvgc->$xpmt15===(int)$brcb30[base64_decode('ZGVzdGluYXRpb25fYWNjb3VudF9pZA==')]){$ikej32[]=$brcb30;}}return $ikej32;}private function qidf4(array$ejfr31):array{$ikej32=[];/** @var array $journal */ foreach($ejfr31 as $brcb30){$gyof33=(int)$brcb30[base64_decode('Y3VycmVuY3lfaWQ=')];$qbze34=$brcb30[base64_decode('Zm9yZWlnbl9jdXJyZW5jeV9pZA==')];if(!array_key_exists($gyof33,$ikej32)){$ikej32[$gyof33]=[base64_decode('YW1vdW50')=>base64_decode('MA=='),base64_decode('Y291bnQ=')=>0,base64_decode('Y3VycmVuY3lfaWQ=')=>$gyof33,base64_decode('Y3VycmVuY3lfbmFtZQ==')=>$brcb30[base64_decode('Y3VycmVuY3lfbmFtZQ==')],base64_decode('Y3VycmVuY3lfY29kZQ==')=>$brcb30[base64_decode('Y3VycmVuY3lfY29kZQ==')],base64_decode('Y3VycmVuY3lfc3ltYm9s')=>$brcb30[base64_decode('Y3VycmVuY3lfc3ltYm9s')],base64_decode('Y3VycmVuY3lfZGVjaW1hbF9wbGFjZXM=')=>$brcb30[base64_decode('Y3VycmVuY3lfZGVjaW1hbF9wbGFjZXM=')],];}$ikej32[$gyof33][base64_decode('YW1vdW50')]=bcadd($ikej32[$gyof33][base64_decode('YW1vdW50')],$brcb30[base64_decode('YW1vdW50')]?? base64_decode('MA=='));++$ikej32[$gyof33][base64_decode('Y291bnQ=')];if(null!==$qbze34&&null!==$brcb30[base64_decode('Zm9yZWlnbl9hbW91bnQ=')]){if(!array_key_exists($qbze34,$ikej32)){$ikej32[$qbze34]=[base64_decode('YW1vdW50')=>base64_decode('MA=='),base64_decode('Y291bnQ=')=>0,base64_decode('Y3VycmVuY3lfaWQ=')=>(int)$qbze34,base64_decode('Y3VycmVuY3lfbmFtZQ==')=>$brcb30[base64_decode('Zm9yZWlnbl9jdXJyZW5jeV9uYW1l')],base64_decode('Y3VycmVuY3lfY29kZQ==')=>$brcb30[base64_decode('Zm9yZWlnbl9jdXJyZW5jeV9jb2Rl')],base64_decode('Y3VycmVuY3lfc3ltYm9s')=>$brcb30[base64_decode('Zm9yZWlnbl9jdXJyZW5jeV9zeW1ib2w=')],base64_decode('Y3VycmVuY3lfZGVjaW1hbF9wbGFjZXM=')=>$brcb30[base64_decode('Zm9yZWlnbl9jdXJyZW5jeV9kZWNpbWFsX3BsYWNlcw==')],];}++$ikej32[$qbze34][base64_decode('Y291bnQ=')];$ikej32[$qbze34][base64_decode('YW1vdW50')]=bcadd($ikej32[$qbze34][base64_decode('YW1vdW50')],$brcb30[base64_decode('Zm9yZWlnbl9hbW91bnQ=')]);}}return $ikej32;}/**
* Overview for single category. Has been refactored recently.
*
* @throws FireflyException
*/ protected function pwow5(Category $jsie35,Carbon $jvyfd,Carbon $ldite):array{$zkjqf=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->iokm11(true);[$jvyfd,$ldite]=$ldite<$jvyfd?[$ldite,$jvyfd]:[$jvyfd,$ldite];$hgri12=new sfwb13();$hgri12->nxmi14($jvyfd);$hgri12->nxmi14($ldite);$hgri12->nxmi14($zkjqf);$hgri12->nxmi14(base64_decode('Y2F0ZWdvcnktc2hvdy1wZXJpb2QtZW50cmllcw=='));$hgri12->nxmi14($jsie35->$xpmt15);if($hgri12->qxyl16()){return $hgri12->faxm17();}/** @var array $dates */ $fpvm18=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->pauo19($jvyfd,$ldite,$zkjqf);$bbzs1a=[];/** @var GroupCollectorInterface $collector */ $wbrg1b=ewsc10(GroupCollectorInterface::class);$wbrg1b->agwa36($jsie35);$wbrg1b->fzxk1e($jvyfd,$ldite);$wbrg1b->demn1f([TransactionType::DEPOSIT]);$ilmd20=$wbrg1b->cggj21();/** @var GroupCollectorInterface $collector */ $wbrg1b=ewsc10(GroupCollectorInterface::class);$wbrg1b->agwa36($jsie35);$wbrg1b->fzxk1e($jvyfd,$ldite);$wbrg1b->demn1f([TransactionType::WITHDRAWAL]);$bufc22=$wbrg1b->cggj21();/** @var GroupCollectorInterface $collector */ $wbrg1b=ewsc10(GroupCollectorInterface::class);$wbrg1b->agwa36($jsie35);$wbrg1b->fzxk1e($jvyfd,$ldite);$wbrg1b->demn1f([TransactionType::TRANSFER]);$xpdq23=$wbrg1b->cggj21();foreach($fpvm18 as $kzxr24){$iybo28=$this->teyn1($bufc22,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]);$pcet27=$this->teyn1($ilmd20,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]);$rxzf37=$this->teyn1($xpdq23,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]);$hbib25=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->klmk26($kzxr24[base64_decode('ZW5k')],$kzxr24[base64_decode('cGVyaW9k')]);$bbzs1a[]=[base64_decode('dHJhbnNhY3Rpb25z')=>0,base64_decode('dGl0bGU=')=>$hbib25,base64_decode('cm91dGU=')=>ckzv2b(base64_decode('Y2F0ZWdvcmllcy5zaG93'),[$jsie35->$xpmt15,$kzxr24[base64_decode('c3RhcnQ=')]->jgwi2c(base64_decode('WS1tLWQ=')),$kzxr24[base64_decode('ZW5k')]->jgwi2c(base64_decode('WS1tLWQ='))]),base64_decode('dG90YWxfdHJhbnNhY3Rpb25z')=>count($iybo28)+count($pcet27)+count($rxzf37),base64_decode('c3BlbnQ=')=>$this->qidf4($iybo28),base64_decode('ZWFybmVk')=>$this->qidf4($pcet27),base64_decode('dHJhbnNmZXJyZWQ=')=>$this->qidf4($rxzf37),];}$hgri12->wzya2d($bbzs1a);return $bbzs1a;}/**
* Same as above, but for lists that involve transactions without a budget.
*
* This method has been refactored recently.
*
* @throws FireflyException
*/ protected function jgcf6(Carbon $jvyfd,Carbon $ldite):array{$zkjqf=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->iokm11(true);[$jvyfd,$ldite]=$ldite<$jvyfd?[$ldite,$jvyfd]:[$jvyfd,$ldite];$hgri12=new sfwb13();$hgri12->nxmi14($jvyfd);$hgri12->nxmi14($ldite);$hgri12->nxmi14(base64_decode('bm8tYnVkZ2V0LXBlcmlvZC1lbnRyaWVz'));if($hgri12->qxyl16()){return $hgri12->faxm17();}/** @var array $dates */ $fpvm18=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->pauo19($jvyfd,$ldite,$zkjqf);$bbzs1a=[];/** @var GroupCollectorInterface $collector */ $wbrg1b=ewsc10(GroupCollectorInterface::class);$wbrg1b->fzxk1e($jvyfd,$ldite)->yjyi38()->hrfs39()->demn1f([TransactionType::WITHDRAWAL]);$ejfr31=$wbrg1b->cggj21();foreach($fpvm18 as $kzxr24){$cvet3a=$this->teyn1($ejfr31,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]);$hbib25=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->klmk26($kzxr24[base64_decode('ZW5k')],$kzxr24[base64_decode('cGVyaW9k')]);$bbzs1a[]=[base64_decode('dGl0bGU=')=>$hbib25,base64_decode('cm91dGU=')=>ckzv2b(base64_decode('YnVkZ2V0cy5uby1idWRnZXQ='),[$kzxr24[base64_decode('c3RhcnQ=')]->jgwi2c(base64_decode('WS1tLWQ=')),$kzxr24[base64_decode('ZW5k')]->jgwi2c(base64_decode('WS1tLWQ='))]),base64_decode('dG90YWxfdHJhbnNhY3Rpb25z')=>count($cvet3a),base64_decode('c3BlbnQ=')=>$this->qidf4($cvet3a),base64_decode('ZWFybmVk')=>[],base64_decode('dHJhbnNmZXJyZWRfYXdheQ==')=>[],base64_decode('dHJhbnNmZXJyZWRfaW4=')=>[],];}$hgri12->wzya2d($bbzs1a);return $bbzs1a;}/**
* TODO fix the date.
*
* Show period overview for no category view.
*
* @throws FireflyException
*/ protected function avzc7(Carbon $qylw3b):array{ewsc10(base64_decode('bG9n'))->vxrw3c(sprintf(base64_decode('Tm93IGluIGdldE5vQ2F0ZWdvcnlQZXJpb2RPdmVydmlldyglcyk='),$qylw3b->jgwi2c(base64_decode('WS1tLWQ='))));$zkjqf=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->iokm11(true);$poee3d=$this->$dtzo3e->ladf3f();$jvyfd=null===$poee3d?new ejmj40():$poee3d->$jnrn41;$ldite=clone $qylw3b;ewsc10(base64_decode('bG9n'))->vxrw3c(sprintf(base64_decode('U3RhcnQgZm9yIGdldE5vQ2F0ZWdvcnlQZXJpb2RPdmVydmlldygpIGlzICVz'),$jvyfd->jgwi2c(base64_decode('WS1tLWQ='))));ewsc10(base64_decode('bG9n'))->vxrw3c(sprintf(base64_decode('RW5kIGZvciBnZXROb0NhdGVnb3J5UGVyaW9kT3ZlcnZpZXcoKSBpcyAlcw=='),$ldite->jgwi2c(base64_decode('WS1tLWQ='))));$fpvm18=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->pauo19($jvyfd,$ldite,$zkjqf);$bbzs1a=[];/** @var GroupCollectorInterface $collector */ $wbrg1b=ewsc10(GroupCollectorInterface::class);$wbrg1b->itkp42();$wbrg1b->fzxk1e($jvyfd,$ldite);$wbrg1b->demn1f([TransactionType::DEPOSIT]);$ilmd20=$wbrg1b->cggj21();/** @var GroupCollectorInterface $collector */ $wbrg1b=ewsc10(GroupCollectorInterface::class);$wbrg1b->itkp42();$wbrg1b->fzxk1e($jvyfd,$ldite);$wbrg1b->demn1f([TransactionType::WITHDRAWAL]);$bufc22=$wbrg1b->cggj21();/** @var GroupCollectorInterface $collector */ $wbrg1b=ewsc10(GroupCollectorInterface::class);$wbrg1b->itkp42();$wbrg1b->fzxk1e($jvyfd,$ldite);$wbrg1b->demn1f([TransactionType::TRANSFER]);$xpdq23=$wbrg1b->cggj21();/** @var array $currentDate */ foreach($fpvm18 as $kzxr24){$iybo28=$this->teyn1($bufc22,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]);$pcet27=$this->teyn1($ilmd20,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]);$rxzf37=$this->teyn1($xpdq23,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]);$hbib25=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->klmk26($kzxr24[base64_decode('ZW5k')],$kzxr24[base64_decode('cGVyaW9k')]);$bbzs1a[]=[base64_decode('dGl0bGU=')=>$hbib25,base64_decode('cm91dGU=')=>ckzv2b(base64_decode('Y2F0ZWdvcmllcy5uby1jYXRlZ29yeQ=='),[$kzxr24[base64_decode('c3RhcnQ=')]->jgwi2c(base64_decode('WS1tLWQ=')),$kzxr24[base64_decode('ZW5k')]->jgwi2c(base64_decode('WS1tLWQ='))]),base64_decode('dG90YWxfdHJhbnNhY3Rpb25z')=>count($iybo28)+count($pcet27)+count($rxzf37),base64_decode('c3BlbnQ=')=>$this->qidf4($iybo28),base64_decode('ZWFybmVk')=>$this->qidf4($pcet27),base64_decode('dHJhbnNmZXJyZWQ=')=>$this->qidf4($rxzf37),];}ewsc10(base64_decode('bG9n'))->vxrw3c(base64_decode('RW5kIG9mIGxvb3Bz'));return $bbzs1a;}/**
* This shows a period overview for a tag. It goes back in time and lists all relevant transactions and sums.
*
* @throws FireflyException
*/ protected function ipzh8(Tag $bmti43,Carbon $jvyfd,Carbon $ldite):array{$zkjqf=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->iokm11(true);[$jvyfd,$ldite]=$ldite<$jvyfd?[$ldite,$jvyfd]:[$jvyfd,$ldite];$hgri12=new sfwb13();$hgri12->nxmi14($jvyfd);$hgri12->nxmi14($ldite);$hgri12->nxmi14(base64_decode('dGFnLXBlcmlvZC1lbnRyaWVz'));$hgri12->nxmi14($bmti43->$xpmt15);if($hgri12->qxyl16()){}/** @var array $dates */ $fpvm18=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->pauo19($jvyfd,$ldite,$zkjqf);$bbzs1a=[];/** @var GroupCollectorInterface $collector */ $wbrg1b=ewsc10(GroupCollectorInterface::class);$wbrg1b->agzg44($bmti43);$wbrg1b->fzxk1e($jvyfd,$ldite);$wbrg1b->demn1f([TransactionType::DEPOSIT]);$ilmd20=$wbrg1b->cggj21();/** @var GroupCollectorInterface $collector */ $wbrg1b=ewsc10(GroupCollectorInterface::class);$wbrg1b->agzg44($bmti43);$wbrg1b->fzxk1e($jvyfd,$ldite);$wbrg1b->demn1f([TransactionType::WITHDRAWAL]);$bufc22=$wbrg1b->cggj21();/** @var GroupCollectorInterface $collector */ $wbrg1b=ewsc10(GroupCollectorInterface::class);$wbrg1b->agzg44($bmti43);$wbrg1b->fzxk1e($jvyfd,$ldite);$wbrg1b->demn1f([TransactionType::TRANSFER]);$xpdq23=$wbrg1b->cggj21();$ilmd20=$this->jkjy9($ilmd20,$bmti43);$bufc22=$this->jkjy9($bufc22,$bmti43);$xpdq23=$this->jkjy9($xpdq23,$bmti43);foreach($fpvm18 as $kzxr24){$iybo28=$this->teyn1($bufc22,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]);$pcet27=$this->teyn1($ilmd20,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]);$rxzf37=$this->teyn1($xpdq23,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]);$hbib25=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->klmk26($kzxr24[base64_decode('ZW5k')],$kzxr24[base64_decode('cGVyaW9k')]);$bbzs1a[]=[base64_decode('dHJhbnNhY3Rpb25z')=>0,base64_decode('dGl0bGU=')=>$hbib25,base64_decode('cm91dGU=')=>ckzv2b(base64_decode('dGFncy5zaG93'),[$bmti43->$xpmt15,$kzxr24[base64_decode('c3RhcnQ=')]->jgwi2c(base64_decode('WS1tLWQ=')),$kzxr24[base64_decode('ZW5k')]->jgwi2c(base64_decode('WS1tLWQ='))]),base64_decode('dG90YWxfdHJhbnNhY3Rpb25z')=>count($iybo28)+count($pcet27)+count($rxzf37),base64_decode('c3BlbnQ=')=>$this->qidf4($iybo28),base64_decode('ZWFybmVk')=>$this->qidf4($pcet27),base64_decode('dHJhbnNmZXJyZWQ=')=>$this->qidf4($rxzf37),];}return $bbzs1a;}private function jkjy9(array$cvet3a,Tag $bmti43):array{$ikej32=[];foreach($cvet3a as $vcry45){$wvej46=false;/** @var array $localTag */ foreach($vcry45[base64_decode('dGFncw==')]as $tzcg47){if($tzcg47[base64_decode('aWQ=')]===$bmti43->$xpmt15){$wvej46=true;}}if(false===$wvej46){continue;}$ikej32[]=$vcry45;}return $ikej32;}/**
* @throws FireflyException
*/ protected function zdwda(string $mkdg48,Carbon $jvyfd,Carbon $ldite):array{$zkjqf=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->iokm11(true);$rpri49=skpv4a(sprintf(base64_decode('ZmlyZWZseS50cmFuc2FjdGlvblR5cGVzQnlUeXBlLiVz'),$mkdg48));[$jvyfd,$ldite]=$ldite<$jvyfd?[$ldite,$jvyfd]:[$jvyfd,$ldite];$hgri12=new sfwb13();$hgri12->nxmi14($jvyfd);$hgri12->nxmi14($ldite);$hgri12->nxmi14(base64_decode('dHJhbnNhY3Rpb25zLXBlcmlvZC1lbnRyaWVz'));$hgri12->nxmi14($mkdg48);if($hgri12->qxyl16()){return $hgri12->faxm17();}/** @var array $dates */ $fpvm18=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->pauo19($jvyfd,$ldite,$zkjqf);$bbzs1a=[];$wbrg1b=ewsc10(GroupCollectorInterface::class);$wbrg1b->demn1f($rpri49)->fzxk1e($jvyfd,$ldite);$xsfr4b=$wbrg1b->cggj21();foreach($fpvm18 as $kzxr24){$iybo28=[];$pcet27=[];$rxzf37=[];$hbib25=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->klmk26($kzxr24[base64_decode('ZW5k')],$kzxr24[base64_decode('cGVyaW9k')]);if(base64_decode('ZXhwZW5zZXM=')===$mkdg48||base64_decode('d2l0aGRyYXdhbA==')===$mkdg48){$iybo28=$this->teyn1($xsfr4b,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]);}if(base64_decode('cmV2ZW51ZQ==')===$mkdg48||base64_decode('ZGVwb3NpdA==')===$mkdg48){$pcet27=$this->teyn1($xsfr4b,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]);}if(base64_decode('dHJhbnNmZXI=')===$mkdg48||base64_decode('dHJhbnNmZXJz')===$mkdg48){$rxzf37=$this->teyn1($xsfr4b,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]);}$bbzs1a[]=[base64_decode('dGl0bGU=')=>$hbib25,base64_decode('cm91dGU=')=>ckzv2b(base64_decode('dHJhbnNhY3Rpb25zLmluZGV4'),[$mkdg48,$kzxr24[base64_decode('c3RhcnQ=')]->jgwi2c(base64_decode('WS1tLWQ=')),$kzxr24[base64_decode('ZW5k')]->jgwi2c(base64_decode('WS1tLWQ='))]),base64_decode('dG90YWxfdHJhbnNhY3Rpb25z')=>count($iybo28)+count($pcet27)+count($rxzf37),base64_decode('c3BlbnQ=')=>$this->qidf4($iybo28),base64_decode('ZWFybmVk')=>$this->qidf4($pcet27),base64_decode('dHJhbnNmZXJyZWQ=')=>$this->qidf4($rxzf37),];}return $bbzs1a;}}?>
Did this file decode correctly?
Original Code
<?php /**
* PeriodOverview.php
* Copyright (c) 2019 [email protected]
*
* This file is part of Firefly III (https://github.com/firefly-iii).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ declare(strict_types=1);namespace FireflyIII\Support\Http\Controllers;use Carbon\Carbon;use FireflyIII\Exceptions\FireflyException;use FireflyIII\Helpers\Collector\GroupCollectorInterface;use FireflyIII\Models\Account;use FireflyIII\Models\Category;use FireflyIII\Models\Tag;use FireflyIII\Models\TransactionType;use FireflyIII\Repositories\Journal\JournalRepositoryInterface;use FireflyIII\Support\CacheProperties;use Illuminate\Support\Collection;/**
* Trait PeriodOverview.
*
* TODO verify this all works as expected.
*
* - Always request start date and end date.
* - Group expenses, income, etc. under this period.
* - Returns collection of arrays. Fields
* title (string),
* route (string)
* total_transactions (int)
* spent (array),
* earned (array),
* transferred_away (array)
* transferred_in (array)
* transferred (array)
*
* each array has the following format:
* currency_id => [
* currency_id : 1, (int)
* currency_symbol : X (str)
* currency_name: Euro (str)
* currency_code: EUR (str)
* amount: -1234 (str)
* count: 23
* ]
*/ trait PeriodOverview{protected JournalRepositoryInterface $bioub;/**
* This method returns "period entries", so nov-2015, dec-2015, etc etc (this depends on the users session range)
* and for each period, the amount of money spent and earned. This is a complex operation which is cached for
* performance reasons.
*
* @throws FireflyException
*/ protected function bfxr0(Account $jpvgc,Carbon $jvyfd,Carbon $ldite):array{$zkjqf=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->iokm11(true);[$jvyfd,$ldite]=$ldite<$jvyfd?[$ldite,$jvyfd]:[$jvyfd,$ldite];$hgri12=new sfwb13();$hgri12->nxmi14($jvyfd);$hgri12->nxmi14($ldite);$hgri12->nxmi14(base64_decode('YWNjb3VudC1zaG93LXBlcmlvZC1lbnRyaWVz'));$hgri12->nxmi14($jpvgc->$xpmt15);if($hgri12->qxyl16()){return $hgri12->faxm17();}/** @var array $dates */ $fpvm18=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->pauo19($jvyfd,$ldite,$zkjqf);$bbzs1a=[];/** @var GroupCollectorInterface $collector */ $wbrg1b=ewsc10(GroupCollectorInterface::class);$wbrg1b->lkio1c(new bnoq1d([$jpvgc]));$wbrg1b->fzxk1e($jvyfd,$ldite);$wbrg1b->demn1f([TransactionType::DEPOSIT]);$ilmd20=$wbrg1b->cggj21();/** @var GroupCollectorInterface $collector */ $wbrg1b=ewsc10(GroupCollectorInterface::class);$wbrg1b->lkio1c(new bnoq1d([$jpvgc]));$wbrg1b->fzxk1e($jvyfd,$ldite);$wbrg1b->demn1f([TransactionType::WITHDRAWAL]);$bufc22=$wbrg1b->cggj21();/** @var GroupCollectorInterface $collector */ $wbrg1b=ewsc10(GroupCollectorInterface::class);$wbrg1b->lkio1c(new bnoq1d([$jpvgc]));$wbrg1b->fzxk1e($jvyfd,$ldite);$wbrg1b->demn1f([TransactionType::TRANSFER]);$xpdq23=$wbrg1b->cggj21();foreach($fpvm18 as $kzxr24){$hbib25=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->klmk26($kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('cGVyaW9k')]);$pcet27=$this->teyn1($ilmd20,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]);$iybo28=$this->teyn1($bufc22,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]);$rjor29=$this->hhhd2($jpvgc,$this->teyn1($xpdq23,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]));$opvi2a=$this->nayf3($jpvgc,$this->teyn1($xpdq23,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]));$bbzs1a[]=[base64_decode('dGl0bGU=')=>$hbib25,base64_decode('cm91dGU=')=>ckzv2b(base64_decode('YWNjb3VudHMuc2hvdw=='),[$jpvgc->$xpmt15,$kzxr24[base64_decode('c3RhcnQ=')]->jgwi2c(base64_decode('WS1tLWQ=')),$kzxr24[base64_decode('ZW5k')]->jgwi2c(base64_decode('WS1tLWQ='))]),base64_decode('dG90YWxfdHJhbnNhY3Rpb25z')=>count($iybo28)+count($pcet27)+count($rjor29)+count($opvi2a),base64_decode('c3BlbnQ=')=>$this->qidf4($iybo28),base64_decode('ZWFybmVk')=>$this->qidf4($pcet27),base64_decode('dHJhbnNmZXJyZWRfYXdheQ==')=>$this->qidf4($rjor29),base64_decode('dHJhbnNmZXJyZWRfaW4=')=>$this->qidf4($opvi2a),];}$hgri12->wzya2d($bbzs1a);return $bbzs1a;}/**
* Filter a list of journals by a set of dates, and then group them by currency.
*/ private function teyn1(array$dbtm2e,Carbon $jvyfd,Carbon $ldite):array{$hxyq2f=[];/** @var array $journal */ foreach($dbtm2e as $brcb30){if($brcb30[base64_decode('ZGF0ZQ==')]<=$ldite&&$brcb30[base64_decode('ZGF0ZQ==')]>=$jvyfd){$hxyq2f[]=$brcb30;}}return $hxyq2f;}/**
* Return only transactions where $account is the source.
*/ private function hhhd2(Account $jpvgc,array$ejfr31):array{$ikej32=[];/** @var array $journal */ foreach($ejfr31 as $brcb30){if($jpvgc->$xpmt15===(int)$brcb30[base64_decode('c291cmNlX2FjY291bnRfaWQ=')]){$ikej32[]=$brcb30;}}return $ikej32;}/**
* Return only transactions where $account is the source.
*/ private function nayf3(Account $jpvgc,array$ejfr31):array{$ikej32=[];/** @var array $journal */ foreach($ejfr31 as $brcb30){if($jpvgc->$xpmt15===(int)$brcb30[base64_decode('ZGVzdGluYXRpb25fYWNjb3VudF9pZA==')]){$ikej32[]=$brcb30;}}return $ikej32;}private function qidf4(array$ejfr31):array{$ikej32=[];/** @var array $journal */ foreach($ejfr31 as $brcb30){$gyof33=(int)$brcb30[base64_decode('Y3VycmVuY3lfaWQ=')];$qbze34=$brcb30[base64_decode('Zm9yZWlnbl9jdXJyZW5jeV9pZA==')];if(!array_key_exists($gyof33,$ikej32)){$ikej32[$gyof33]=[base64_decode('YW1vdW50')=>base64_decode('MA=='),base64_decode('Y291bnQ=')=>0,base64_decode('Y3VycmVuY3lfaWQ=')=>$gyof33,base64_decode('Y3VycmVuY3lfbmFtZQ==')=>$brcb30[base64_decode('Y3VycmVuY3lfbmFtZQ==')],base64_decode('Y3VycmVuY3lfY29kZQ==')=>$brcb30[base64_decode('Y3VycmVuY3lfY29kZQ==')],base64_decode('Y3VycmVuY3lfc3ltYm9s')=>$brcb30[base64_decode('Y3VycmVuY3lfc3ltYm9s')],base64_decode('Y3VycmVuY3lfZGVjaW1hbF9wbGFjZXM=')=>$brcb30[base64_decode('Y3VycmVuY3lfZGVjaW1hbF9wbGFjZXM=')],];}$ikej32[$gyof33][base64_decode('YW1vdW50')]=bcadd($ikej32[$gyof33][base64_decode('YW1vdW50')],$brcb30[base64_decode('YW1vdW50')]?? base64_decode('MA=='));++$ikej32[$gyof33][base64_decode('Y291bnQ=')];if(null!==$qbze34&&null!==$brcb30[base64_decode('Zm9yZWlnbl9hbW91bnQ=')]){if(!array_key_exists($qbze34,$ikej32)){$ikej32[$qbze34]=[base64_decode('YW1vdW50')=>base64_decode('MA=='),base64_decode('Y291bnQ=')=>0,base64_decode('Y3VycmVuY3lfaWQ=')=>(int)$qbze34,base64_decode('Y3VycmVuY3lfbmFtZQ==')=>$brcb30[base64_decode('Zm9yZWlnbl9jdXJyZW5jeV9uYW1l')],base64_decode('Y3VycmVuY3lfY29kZQ==')=>$brcb30[base64_decode('Zm9yZWlnbl9jdXJyZW5jeV9jb2Rl')],base64_decode('Y3VycmVuY3lfc3ltYm9s')=>$brcb30[base64_decode('Zm9yZWlnbl9jdXJyZW5jeV9zeW1ib2w=')],base64_decode('Y3VycmVuY3lfZGVjaW1hbF9wbGFjZXM=')=>$brcb30[base64_decode('Zm9yZWlnbl9jdXJyZW5jeV9kZWNpbWFsX3BsYWNlcw==')],];}++$ikej32[$qbze34][base64_decode('Y291bnQ=')];$ikej32[$qbze34][base64_decode('YW1vdW50')]=bcadd($ikej32[$qbze34][base64_decode('YW1vdW50')],$brcb30[base64_decode('Zm9yZWlnbl9hbW91bnQ=')]);}}return $ikej32;}/**
* Overview for single category. Has been refactored recently.
*
* @throws FireflyException
*/ protected function pwow5(Category $jsie35,Carbon $jvyfd,Carbon $ldite):array{$zkjqf=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->iokm11(true);[$jvyfd,$ldite]=$ldite<$jvyfd?[$ldite,$jvyfd]:[$jvyfd,$ldite];$hgri12=new sfwb13();$hgri12->nxmi14($jvyfd);$hgri12->nxmi14($ldite);$hgri12->nxmi14($zkjqf);$hgri12->nxmi14(base64_decode('Y2F0ZWdvcnktc2hvdy1wZXJpb2QtZW50cmllcw=='));$hgri12->nxmi14($jsie35->$xpmt15);if($hgri12->qxyl16()){return $hgri12->faxm17();}/** @var array $dates */ $fpvm18=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->pauo19($jvyfd,$ldite,$zkjqf);$bbzs1a=[];/** @var GroupCollectorInterface $collector */ $wbrg1b=ewsc10(GroupCollectorInterface::class);$wbrg1b->agwa36($jsie35);$wbrg1b->fzxk1e($jvyfd,$ldite);$wbrg1b->demn1f([TransactionType::DEPOSIT]);$ilmd20=$wbrg1b->cggj21();/** @var GroupCollectorInterface $collector */ $wbrg1b=ewsc10(GroupCollectorInterface::class);$wbrg1b->agwa36($jsie35);$wbrg1b->fzxk1e($jvyfd,$ldite);$wbrg1b->demn1f([TransactionType::WITHDRAWAL]);$bufc22=$wbrg1b->cggj21();/** @var GroupCollectorInterface $collector */ $wbrg1b=ewsc10(GroupCollectorInterface::class);$wbrg1b->agwa36($jsie35);$wbrg1b->fzxk1e($jvyfd,$ldite);$wbrg1b->demn1f([TransactionType::TRANSFER]);$xpdq23=$wbrg1b->cggj21();foreach($fpvm18 as $kzxr24){$iybo28=$this->teyn1($bufc22,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]);$pcet27=$this->teyn1($ilmd20,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]);$rxzf37=$this->teyn1($xpdq23,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]);$hbib25=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->klmk26($kzxr24[base64_decode('ZW5k')],$kzxr24[base64_decode('cGVyaW9k')]);$bbzs1a[]=[base64_decode('dHJhbnNhY3Rpb25z')=>0,base64_decode('dGl0bGU=')=>$hbib25,base64_decode('cm91dGU=')=>ckzv2b(base64_decode('Y2F0ZWdvcmllcy5zaG93'),[$jsie35->$xpmt15,$kzxr24[base64_decode('c3RhcnQ=')]->jgwi2c(base64_decode('WS1tLWQ=')),$kzxr24[base64_decode('ZW5k')]->jgwi2c(base64_decode('WS1tLWQ='))]),base64_decode('dG90YWxfdHJhbnNhY3Rpb25z')=>count($iybo28)+count($pcet27)+count($rxzf37),base64_decode('c3BlbnQ=')=>$this->qidf4($iybo28),base64_decode('ZWFybmVk')=>$this->qidf4($pcet27),base64_decode('dHJhbnNmZXJyZWQ=')=>$this->qidf4($rxzf37),];}$hgri12->wzya2d($bbzs1a);return $bbzs1a;}/**
* Same as above, but for lists that involve transactions without a budget.
*
* This method has been refactored recently.
*
* @throws FireflyException
*/ protected function jgcf6(Carbon $jvyfd,Carbon $ldite):array{$zkjqf=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->iokm11(true);[$jvyfd,$ldite]=$ldite<$jvyfd?[$ldite,$jvyfd]:[$jvyfd,$ldite];$hgri12=new sfwb13();$hgri12->nxmi14($jvyfd);$hgri12->nxmi14($ldite);$hgri12->nxmi14(base64_decode('bm8tYnVkZ2V0LXBlcmlvZC1lbnRyaWVz'));if($hgri12->qxyl16()){return $hgri12->faxm17();}/** @var array $dates */ $fpvm18=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->pauo19($jvyfd,$ldite,$zkjqf);$bbzs1a=[];/** @var GroupCollectorInterface $collector */ $wbrg1b=ewsc10(GroupCollectorInterface::class);$wbrg1b->fzxk1e($jvyfd,$ldite)->yjyi38()->hrfs39()->demn1f([TransactionType::WITHDRAWAL]);$ejfr31=$wbrg1b->cggj21();foreach($fpvm18 as $kzxr24){$cvet3a=$this->teyn1($ejfr31,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]);$hbib25=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->klmk26($kzxr24[base64_decode('ZW5k')],$kzxr24[base64_decode('cGVyaW9k')]);$bbzs1a[]=[base64_decode('dGl0bGU=')=>$hbib25,base64_decode('cm91dGU=')=>ckzv2b(base64_decode('YnVkZ2V0cy5uby1idWRnZXQ='),[$kzxr24[base64_decode('c3RhcnQ=')]->jgwi2c(base64_decode('WS1tLWQ=')),$kzxr24[base64_decode('ZW5k')]->jgwi2c(base64_decode('WS1tLWQ='))]),base64_decode('dG90YWxfdHJhbnNhY3Rpb25z')=>count($cvet3a),base64_decode('c3BlbnQ=')=>$this->qidf4($cvet3a),base64_decode('ZWFybmVk')=>[],base64_decode('dHJhbnNmZXJyZWRfYXdheQ==')=>[],base64_decode('dHJhbnNmZXJyZWRfaW4=')=>[],];}$hgri12->wzya2d($bbzs1a);return $bbzs1a;}/**
* TODO fix the date.
*
* Show period overview for no category view.
*
* @throws FireflyException
*/ protected function avzc7(Carbon $qylw3b):array{ewsc10(base64_decode('bG9n'))->vxrw3c(sprintf(base64_decode('Tm93IGluIGdldE5vQ2F0ZWdvcnlQZXJpb2RPdmVydmlldyglcyk='),$qylw3b->jgwi2c(base64_decode('WS1tLWQ='))));$zkjqf=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->iokm11(true);$poee3d=$this->$dtzo3e->ladf3f();$jvyfd=null===$poee3d?new ejmj40():$poee3d->$jnrn41;$ldite=clone $qylw3b;ewsc10(base64_decode('bG9n'))->vxrw3c(sprintf(base64_decode('U3RhcnQgZm9yIGdldE5vQ2F0ZWdvcnlQZXJpb2RPdmVydmlldygpIGlzICVz'),$jvyfd->jgwi2c(base64_decode('WS1tLWQ='))));ewsc10(base64_decode('bG9n'))->vxrw3c(sprintf(base64_decode('RW5kIGZvciBnZXROb0NhdGVnb3J5UGVyaW9kT3ZlcnZpZXcoKSBpcyAlcw=='),$ldite->jgwi2c(base64_decode('WS1tLWQ='))));$fpvm18=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->pauo19($jvyfd,$ldite,$zkjqf);$bbzs1a=[];/** @var GroupCollectorInterface $collector */ $wbrg1b=ewsc10(GroupCollectorInterface::class);$wbrg1b->itkp42();$wbrg1b->fzxk1e($jvyfd,$ldite);$wbrg1b->demn1f([TransactionType::DEPOSIT]);$ilmd20=$wbrg1b->cggj21();/** @var GroupCollectorInterface $collector */ $wbrg1b=ewsc10(GroupCollectorInterface::class);$wbrg1b->itkp42();$wbrg1b->fzxk1e($jvyfd,$ldite);$wbrg1b->demn1f([TransactionType::WITHDRAWAL]);$bufc22=$wbrg1b->cggj21();/** @var GroupCollectorInterface $collector */ $wbrg1b=ewsc10(GroupCollectorInterface::class);$wbrg1b->itkp42();$wbrg1b->fzxk1e($jvyfd,$ldite);$wbrg1b->demn1f([TransactionType::TRANSFER]);$xpdq23=$wbrg1b->cggj21();/** @var array $currentDate */ foreach($fpvm18 as $kzxr24){$iybo28=$this->teyn1($bufc22,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]);$pcet27=$this->teyn1($ilmd20,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]);$rxzf37=$this->teyn1($xpdq23,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]);$hbib25=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->klmk26($kzxr24[base64_decode('ZW5k')],$kzxr24[base64_decode('cGVyaW9k')]);$bbzs1a[]=[base64_decode('dGl0bGU=')=>$hbib25,base64_decode('cm91dGU=')=>ckzv2b(base64_decode('Y2F0ZWdvcmllcy5uby1jYXRlZ29yeQ=='),[$kzxr24[base64_decode('c3RhcnQ=')]->jgwi2c(base64_decode('WS1tLWQ=')),$kzxr24[base64_decode('ZW5k')]->jgwi2c(base64_decode('WS1tLWQ='))]),base64_decode('dG90YWxfdHJhbnNhY3Rpb25z')=>count($iybo28)+count($pcet27)+count($rxzf37),base64_decode('c3BlbnQ=')=>$this->qidf4($iybo28),base64_decode('ZWFybmVk')=>$this->qidf4($pcet27),base64_decode('dHJhbnNmZXJyZWQ=')=>$this->qidf4($rxzf37),];}ewsc10(base64_decode('bG9n'))->vxrw3c(base64_decode('RW5kIG9mIGxvb3Bz'));return $bbzs1a;}/**
* This shows a period overview for a tag. It goes back in time and lists all relevant transactions and sums.
*
* @throws FireflyException
*/ protected function ipzh8(Tag $bmti43,Carbon $jvyfd,Carbon $ldite):array{$zkjqf=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->iokm11(true);[$jvyfd,$ldite]=$ldite<$jvyfd?[$ldite,$jvyfd]:[$jvyfd,$ldite];$hgri12=new sfwb13();$hgri12->nxmi14($jvyfd);$hgri12->nxmi14($ldite);$hgri12->nxmi14(base64_decode('dGFnLXBlcmlvZC1lbnRyaWVz'));$hgri12->nxmi14($bmti43->$xpmt15);if($hgri12->qxyl16()){}/** @var array $dates */ $fpvm18=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->pauo19($jvyfd,$ldite,$zkjqf);$bbzs1a=[];/** @var GroupCollectorInterface $collector */ $wbrg1b=ewsc10(GroupCollectorInterface::class);$wbrg1b->agzg44($bmti43);$wbrg1b->fzxk1e($jvyfd,$ldite);$wbrg1b->demn1f([TransactionType::DEPOSIT]);$ilmd20=$wbrg1b->cggj21();/** @var GroupCollectorInterface $collector */ $wbrg1b=ewsc10(GroupCollectorInterface::class);$wbrg1b->agzg44($bmti43);$wbrg1b->fzxk1e($jvyfd,$ldite);$wbrg1b->demn1f([TransactionType::WITHDRAWAL]);$bufc22=$wbrg1b->cggj21();/** @var GroupCollectorInterface $collector */ $wbrg1b=ewsc10(GroupCollectorInterface::class);$wbrg1b->agzg44($bmti43);$wbrg1b->fzxk1e($jvyfd,$ldite);$wbrg1b->demn1f([TransactionType::TRANSFER]);$xpdq23=$wbrg1b->cggj21();$ilmd20=$this->jkjy9($ilmd20,$bmti43);$bufc22=$this->jkjy9($bufc22,$bmti43);$xpdq23=$this->jkjy9($xpdq23,$bmti43);foreach($fpvm18 as $kzxr24){$iybo28=$this->teyn1($bufc22,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]);$pcet27=$this->teyn1($ilmd20,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]);$rxzf37=$this->teyn1($xpdq23,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]);$hbib25=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->klmk26($kzxr24[base64_decode('ZW5k')],$kzxr24[base64_decode('cGVyaW9k')]);$bbzs1a[]=[base64_decode('dHJhbnNhY3Rpb25z')=>0,base64_decode('dGl0bGU=')=>$hbib25,base64_decode('cm91dGU=')=>ckzv2b(base64_decode('dGFncy5zaG93'),[$bmti43->$xpmt15,$kzxr24[base64_decode('c3RhcnQ=')]->jgwi2c(base64_decode('WS1tLWQ=')),$kzxr24[base64_decode('ZW5k')]->jgwi2c(base64_decode('WS1tLWQ='))]),base64_decode('dG90YWxfdHJhbnNhY3Rpb25z')=>count($iybo28)+count($pcet27)+count($rxzf37),base64_decode('c3BlbnQ=')=>$this->qidf4($iybo28),base64_decode('ZWFybmVk')=>$this->qidf4($pcet27),base64_decode('dHJhbnNmZXJyZWQ=')=>$this->qidf4($rxzf37),];}return $bbzs1a;}private function jkjy9(array$cvet3a,Tag $bmti43):array{$ikej32=[];foreach($cvet3a as $vcry45){$wvej46=false;/** @var array $localTag */ foreach($vcry45[base64_decode('dGFncw==')]as $tzcg47){if($tzcg47[base64_decode('aWQ=')]===$bmti43->$xpmt15){$wvej46=true;}}if(false===$wvej46){continue;}$ikej32[]=$vcry45;}return $ikej32;}/**
* @throws FireflyException
*/ protected function zdwda(string $mkdg48,Carbon $jvyfd,Carbon $ldite):array{$zkjqf=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->iokm11(true);$rpri49=skpv4a(sprintf(base64_decode('ZmlyZWZseS50cmFuc2FjdGlvblR5cGVzQnlUeXBlLiVz'),$mkdg48));[$jvyfd,$ldite]=$ldite<$jvyfd?[$ldite,$jvyfd]:[$jvyfd,$ldite];$hgri12=new sfwb13();$hgri12->nxmi14($jvyfd);$hgri12->nxmi14($ldite);$hgri12->nxmi14(base64_decode('dHJhbnNhY3Rpb25zLXBlcmlvZC1lbnRyaWVz'));$hgri12->nxmi14($mkdg48);if($hgri12->qxyl16()){return $hgri12->faxm17();}/** @var array $dates */ $fpvm18=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->pauo19($jvyfd,$ldite,$zkjqf);$bbzs1a=[];$wbrg1b=ewsc10(GroupCollectorInterface::class);$wbrg1b->demn1f($rpri49)->fzxk1e($jvyfd,$ldite);$xsfr4b=$wbrg1b->cggj21();foreach($fpvm18 as $kzxr24){$iybo28=[];$pcet27=[];$rxzf37=[];$hbib25=ewsc10(base64_decode('bmF2aWdhdGlvbg=='))->klmk26($kzxr24[base64_decode('ZW5k')],$kzxr24[base64_decode('cGVyaW9k')]);if(base64_decode('ZXhwZW5zZXM=')===$mkdg48||base64_decode('d2l0aGRyYXdhbA==')===$mkdg48){$iybo28=$this->teyn1($xsfr4b,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]);}if(base64_decode('cmV2ZW51ZQ==')===$mkdg48||base64_decode('ZGVwb3NpdA==')===$mkdg48){$pcet27=$this->teyn1($xsfr4b,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]);}if(base64_decode('dHJhbnNmZXI=')===$mkdg48||base64_decode('dHJhbnNmZXJz')===$mkdg48){$rxzf37=$this->teyn1($xsfr4b,$kzxr24[base64_decode('c3RhcnQ=')],$kzxr24[base64_decode('ZW5k')]);}$bbzs1a[]=[base64_decode('dGl0bGU=')=>$hbib25,base64_decode('cm91dGU=')=>ckzv2b(base64_decode('dHJhbnNhY3Rpb25zLmluZGV4'),[$mkdg48,$kzxr24[base64_decode('c3RhcnQ=')]->jgwi2c(base64_decode('WS1tLWQ=')),$kzxr24[base64_decode('ZW5k')]->jgwi2c(base64_decode('WS1tLWQ='))]),base64_decode('dG90YWxfdHJhbnNhY3Rpb25z')=>count($iybo28)+count($pcet27)+count($rxzf37),base64_decode('c3BlbnQ=')=>$this->qidf4($iybo28),base64_decode('ZWFybmVk')=>$this->qidf4($pcet27),base64_decode('dHJhbnNmZXJyZWQ=')=>$this->qidf4($rxzf37),];}return $bbzs1a;}}?>
Function Calls
None |
Stats
MD5 | f68492a7527a3a785e46aeff0f4e5310 |
Eval Count | 0 |
Decode Time | 98 ms |