Add new rule engine to API commands.

This commit is contained in:
James Cole
2020-08-23 16:26:39 +02:00
parent fecc9f7659
commit ce34e097a2
5 changed files with 41 additions and 68 deletions

View File

@@ -87,10 +87,7 @@ class RuleTriggerRequest extends FormRequest
*/
private function getDate(string $field): ?Carbon
{
/** @var Carbon $result */
$result = null === $this->query($field) ? null : Carbon::createFromFormat('Y-m-d', $this->query($field));
return $result;
return null === $this->query($field) ? null : Carbon::createFromFormat('Y-m-d', $this->query($field));
}
}