Switched boolean for bool

This commit is contained in:
Graham Campbell 2015-10-20 20:34:59 +01:00
parent d46007c536
commit 7507a362bd
8 changed files with 11 additions and 11 deletions

View File

@ -78,10 +78,10 @@ final class ReportIncidentCommand
'name' => 'required|string',
'status' => 'required|int',
'message' => 'string',
'visible' => 'boolean',
'visible' => 'bool',
'component_id' => 'int',
'component_status' => 'int',
'notify' => 'boolean',
'notify' => 'bool',
'incident_date' => 'string',
];

View File

@ -49,7 +49,7 @@ final class ReportMaintenanceCommand
public $rules = [
'name' => 'required|string',
'message' => 'string',
'notify' => 'boolean',
'notify' => 'bool',
'timestamp' => 'string',
];

View File

@ -87,10 +87,10 @@ final class UpdateIncidentCommand
'name' => 'string',
'status' => 'int',
'message' => 'string',
'visible' => 'boolean',
'visible' => 'bool',
'component_id' => 'int',
'component_status' => 'int',
'notify' => 'boolean',
'notify' => 'bool',
];
/**

View File

@ -71,7 +71,7 @@ final class AddMetricCommand
'name' => 'required|string',
'suffix' => 'required|string',
'description' => 'string',
'display_chart' => 'boolean',
'display_chart' => 'bool',
'default_value' => 'int',
'calc_type' => 'int',
'display_chart' => 'int',

View File

@ -80,7 +80,7 @@ final class UpdateMetricCommand
'name' => 'string',
'suffix' => 'string',
'description' => 'string',
'display_chart' => 'boolean',
'display_chart' => 'bool',
'default_value' => 'numeric',
'calc_type' => 'int|in:0,1',
'display_chart' => 'int',

View File

@ -105,7 +105,7 @@ class SetupController extends Controller
'settings.app_domain' => 'required',
'settings.app_timezone' => 'required',
'settings.app_locale' => 'required',
'settings.show_support' => 'boolean',
'settings.show_support' => 'bool',
]);
if ($v->passes()) {
@ -131,7 +131,7 @@ class SetupController extends Controller
'settings.app_domain' => 'required',
'settings.app_timezone' => 'required',
'settings.app_locale' => 'required',
'settings.show_support' => 'boolean',
'settings.show_support' => 'bool',
'user.username' => ['required', 'regex:/\A(?!.*[:;]-\))[ -~]+\z/'],
'user.email' => 'email|required',
'user.password' => 'required',

View File

@ -66,7 +66,7 @@ class Incident extends Model implements HasPresenter
'component_id' => 'int',
'name' => 'required',
'status' => 'required|int',
'visible' => 'required|boolean',
'visible' => 'required|bool',
'message' => 'required',
];

View File

@ -73,7 +73,7 @@ class Metric extends Model implements HasPresenter
public $rules = [
'name' => 'required',
'suffix' => 'required',
'display_chart' => 'boolean',
'display_chart' => 'bool',
'default_value' => 'numeric',
'places' => 'numeric|min:0|max:4',
];