mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 13:38:20 +01:00
Switched boolean for bool
This commit is contained in:
parent
d46007c536
commit
7507a362bd
@ -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',
|
||||
];
|
||||
|
||||
|
@ -49,7 +49,7 @@ final class ReportMaintenanceCommand
|
||||
public $rules = [
|
||||
'name' => 'required|string',
|
||||
'message' => 'string',
|
||||
'notify' => 'boolean',
|
||||
'notify' => 'bool',
|
||||
'timestamp' => 'string',
|
||||
];
|
||||
|
||||
|
@ -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',
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -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',
|
||||
|
@ -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',
|
||||
|
@ -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',
|
||||
|
@ -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',
|
||||
];
|
||||
|
||||
|
@ -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',
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user