Code cleanup before release.

This commit is contained in:
James Cole
2018-03-29 19:01:47 +02:00
parent 40266c6821
commit 170d23d768
76 changed files with 181 additions and 171 deletions

View File

@@ -93,11 +93,8 @@ class FireflyValidator extends Validator
return true;
}
$count = DB::table($parameters[0])->where('user_id', auth()->user()->id)->where($field, $value)->count();
if (1 === $count) {
return true;
}
return false;
return 1 === $count;
}
/**
@@ -234,11 +231,8 @@ class FireflyValidator extends Validator
return true;
}
$count = DB::table($parameters[0])->where($field, $value)->count();
if (1 === $count) {
return true;
}
return false;
return 1 === $count;
}
/**
@@ -323,7 +317,7 @@ class FireflyValidator extends Validator
/** @var TriggerInterface $class */
$class = $classes[$name];
return !($class::willMatchEverything($value));
return !$class::willMatchEverything($value);
}
return false;