From e8bc3fb8185a000d9407fa64f435ae2e78214f09 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sat, 26 Sep 2015 14:46:25 +0100 Subject: [PATCH] Use integer and between for metric rules --- app/Commands/Metric/AddMetricCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Commands/Metric/AddMetricCommand.php b/app/Commands/Metric/AddMetricCommand.php index ae16c931..e67df2d8 100644 --- a/app/Commands/Metric/AddMetricCommand.php +++ b/app/Commands/Metric/AddMetricCommand.php @@ -72,10 +72,10 @@ class AddMetricCommand 'suffix' => 'required|string', 'description' => 'string', 'display_chart' => 'boolean', - 'default_value' => 'numeric', + 'default_value' => 'integer', 'calc_type' => 'integer', 'display_chart' => 'integer', - 'places' => 'numeric|min:0|max:4', + 'places' => 'integer|between:0,4', ]; /**