Big refactor to remove the deprecated transaction collector.

This commit is contained in:
James Cole
2019-05-30 12:31:19 +02:00
parent 10a6ff9bf8
commit 8b7e87ae57
117 changed files with 1314 additions and 1208 deletions

View File

@@ -44,7 +44,7 @@ class BudgetList implements BinderInterface
{
if (auth()->check()) {
$list = array_unique(array_map('\intval', explode(',', $value)));
if (0 === \count($list)) {
if (0 === count($list)) {
throw new NotFoundHttpException; // @codeCoverageIgnore
}

View File

@@ -44,7 +44,7 @@ class CategoryList implements BinderInterface
{
if (auth()->check()) {
$list = array_unique(array_map('\intval', explode(',', $value)));
if (0 === \count($list)) {
if (0 === count($list)) {
throw new NotFoundHttpException; // @codeCoverageIgnore
}

View File

@@ -42,7 +42,7 @@ class JournalList implements BinderInterface
{
if (auth()->check()) {
$list = array_unique(array_map('\intval', explode(',', $value)));
if (0 === \count($list)) {
if (0 === count($list)) {
throw new NotFoundHttpException; // @codeCoverageIgnore
}

View File

@@ -49,7 +49,7 @@ class SimpleJournalList implements BinderInterface
{
if (auth()->check()) {
$list = array_unique(array_map('\intval', explode(',', $value)));
if (0 === \count($list)) {
if (0 === count($list)) {
throw new NotFoundHttpException; // @codeCoverageIgnore
}
@@ -95,7 +95,7 @@ class SimpleJournalList implements BinderInterface
}
if ($final->count() > 0) {
if (\count($messages) > 0) {
if (count($messages) > 0) {
session()->flash('info', $messages);
}

View File

@@ -46,7 +46,7 @@ class TagList implements BinderInterface
if (auth()->check()) {
$list = array_unique(array_map('\strtolower', explode(',', $value)));
Log::debug('List of tags is', $list);
if (0 === \count($list)) {
if (0 === count($list)) {
Log::error('Tag list is empty.');
throw new NotFoundHttpException; // @codeCoverageIgnore
}