JoseCage/kallun-api

View on GitHub
resources/lang/en/validation.php

Summary

Maintainability
A
0 mins
Test Coverage

Showing 5 of 5 total issues

Define a constant instead of duplicating this literal "numeric" 9 times.
Open

'numeric' => 'The :attribute must be between :min and :max.',
Severity: Critical
Found in resources/lang/en/validation.php by sonar-php

Define a constant instead of duplicating this literal "array" 9 times.
Open

'array' => 'The :attribute must be an array.',
Severity: Critical
Found in resources/lang/en/validation.php by sonar-php

Define a constant instead of duplicating this literal "The selected :attribute is invalid." 3 times.
Open

'exists' => 'The selected :attribute is invalid.',
Severity: Critical
Found in resources/lang/en/validation.php by sonar-php

Define a constant instead of duplicating this literal "The :attribute format is invalid." 3 times.
Open

'not_regex' => 'The :attribute format is invalid.',
Severity: Critical
Found in resources/lang/en/validation.php by sonar-php

Define a constant instead of duplicating this literal "string" 9 times.
Open

'string' => 'The :attribute must be between :min and :max characters.',
Severity: Critical
Found in resources/lang/en/validation.php by sonar-php
Category
Status