Switched from integer to int

This commit is contained in:
Graham Campbell
2015-10-20 20:33:23 +01:00
parent 59967bca9a
commit d46007c536
14 changed files with 27 additions and 27 deletions

View File

@@ -63,10 +63,10 @@ final class AddComponentCommand
public $rules = [
'name' => 'required|string',
'description' => 'string',
'status' => 'required|integer',
'status' => 'required|int',
'link' => 'url',
'order' => 'integer',
'group_id' => 'integer',
'order' => 'int',
'group_id' => 'int',
];
/**

View File

@@ -72,10 +72,10 @@ final class UpdateComponentCommand
public $rules = [
'name' => 'string',
'description' => 'string',
'status' => 'integer',
'status' => 'int',
'link' => 'url',
'order' => 'integer',
'group_id' => 'integer',
'order' => 'int',
'group_id' => 'int',
];
/**

View File

@@ -34,7 +34,7 @@ final class AddComponentGroupCommand
*/
public $rules = [
'name' => 'required|string',
'order' => 'integer',
'order' => 'int',
];
/**

View File

@@ -43,7 +43,7 @@ final class UpdateComponentGroupCommand
*/
public $rules = [
'name' => 'string',
'order' => 'integer',
'order' => 'int',
];
/**

View File

@@ -76,11 +76,11 @@ final class ReportIncidentCommand
*/
public $rules = [
'name' => 'required|string',
'status' => 'required|integer',
'status' => 'required|int',
'message' => 'string',
'visible' => 'boolean',
'component_id' => 'integer',
'component_status' => 'integer',
'component_id' => 'int',
'component_status' => 'int',
'notify' => 'boolean',
'incident_date' => 'string',
];

View File

@@ -85,11 +85,11 @@ final class UpdateIncidentCommand
*/
public $rules = [
'name' => 'string',
'status' => 'integer',
'status' => 'int',
'message' => 'string',
'visible' => 'boolean',
'component_id' => 'integer',
'component_status' => 'integer',
'component_id' => 'int',
'component_status' => 'int',
'notify' => 'boolean',
];

View File

@@ -72,10 +72,10 @@ final class AddMetricCommand
'suffix' => 'required|string',
'description' => 'string',
'display_chart' => 'boolean',
'default_value' => 'integer',
'calc_type' => 'integer',
'display_chart' => 'integer',
'places' => 'integer|between:0,4',
'default_value' => 'int',
'calc_type' => 'int',
'display_chart' => 'int',
'places' => 'int|between:0,4',
];
/**

View File

@@ -42,7 +42,7 @@ final class AddMetricPointCommand
* @var string[]
*/
public $rules = [
'value' => 'integer',
'value' => 'int',
'created_at' => 'string',
];

View File

@@ -82,8 +82,8 @@ final class UpdateMetricCommand
'description' => 'string',
'display_chart' => 'boolean',
'default_value' => 'numeric',
'calc_type' => 'integer|in:0,1',
'display_chart' => 'integer',
'calc_type' => 'int|in:0,1',
'display_chart' => 'int',
'places' => 'numeric|min:0|max:4',
];

View File

@@ -50,7 +50,7 @@ final class UpdateMetricPointCommand
* @var string[]
*/
public $rules = [
'value' => 'integer',
'value' => 'int',
'created_at' => 'string',
];

View File

@@ -49,7 +49,7 @@ final class AddTeamMemberCommand
public $rules = [
'name' => 'required|string',
'password' => 'string',
'level' => 'integer',
'level' => 'int',
];
/**

View File

@@ -70,7 +70,7 @@ class Component extends Model implements HasPresenter
*/
public $rules = [
'name' => 'required|string',
'status' => 'integer|required',
'status' => 'int|required',
'link' => 'url',
];

View File

@@ -43,7 +43,7 @@ class ComponentGroup extends Model
*/
public $rules = [
'name' => 'required|string',
'order' => 'integer',
'order' => 'int',
];
/**

View File

@@ -63,9 +63,9 @@ class Incident extends Model implements HasPresenter
* @var string[]
*/
public $rules = [
'component_id' => 'integer',
'component_id' => 'int',
'name' => 'required',
'status' => 'required|integer',
'status' => 'required|int',
'visible' => 'required|boolean',
'message' => 'required',
];