diff --git a/app/Http/Requests/ReportFormRequest.php b/app/Http/Requests/ReportFormRequest.php deleted file mode 100644 index 146256d309..0000000000 --- a/app/Http/Requests/ReportFormRequest.php +++ /dev/null @@ -1,94 +0,0 @@ -URL = $this->route()->parameter('url'); - - /** @var \FireflyIII\Repositories\Account\AccountRepositoryInterface $repository */ - $repository = app('FireflyIII\Repositories\Account\AccountRepositoryInterface'); - - // split: - $parts = explode(';', $this->URL); - - // try to make a date out of parts 1 and 2: - try { - $this->startDate = new Carbon($parts[1]); - $this->endDate = new Carbon($parts[2]); - } catch (Exception $e) { - Log::error('Could not parse date "' . $parts[1] . '" or "' . $parts[2] . '" for user #' . Auth::user()->id); - abort(404); - } - if ($this->endDate < $this->startDate) { - abort(404); - } - - // get the accounts: - $count = count($parts); - $list = new Collection(); - for ($i = 3; $i < $count; $i++) { - $account = $repository->find($parts[$i]); - if ($account) { - $list->push($account); - } - } - $this->accounts = $list; - - return []; - } - - /** - * @return string - */ - public function getSomething() - { - return 'Hoi'; - } - - -}