Total Complexity | 7 |
Total Lines | 68 |
Duplicated Lines | 0 % |
Coverage | 93.75% |
Changes | 0 |
1 | <?php |
||
12 | class ValidationException extends \Illuminate\Validation\ValidationException |
||
13 | { |
||
14 | /** |
||
15 | * The attribute names which should be renamed |
||
16 | * |
||
17 | * @var array |
||
18 | */ |
||
19 | protected static $attributeMap = [ |
||
20 | 'username' => 'email' |
||
21 | ]; |
||
22 | |||
23 | /** |
||
24 | * The list of attributes which should be hidden |
||
25 | * |
||
26 | * @var array |
||
27 | */ |
||
28 | protected static $attributeHides = [ |
||
29 | 'userId' |
||
30 | ]; |
||
31 | |||
32 | 3 | public static function create(string $message) |
|
37 | } |
||
38 | |||
39 | /** |
||
40 | * Create messages |
||
41 | * |
||
42 | * @param string $message |
||
43 | * |
||
44 | * @return array |
||
45 | */ |
||
46 | 3 | private static function createMessages(string $message): array |
|
62 | } |
||
63 | |||
64 | /** |
||
65 | * Format given messages |
||
66 | * |
||
67 | * @param array $messages |
||
68 | * |
||
69 | * @return array |
||
70 | */ |
||
71 | 3 | private static function formatMessages(array $messages): array |
|
80 | } |
||
81 | } |