@@ -52,8 +52,8 @@ |
||
52 | 52 | // IRules::IS_POST_CODE => External\IsPostCode::class, // too many formats for simple check, use regex |
53 | 53 | // IRules::IS_TELEPHONE => External\IsPhone::class, // too many formats for simple check, use regex |
54 | 54 | // IRules::IS_EU_VAT => External\IsEuVat::class, // too many formats, needs some library for checking |
55 | - IRules::IS_DATE => External\IsDate::class, // too many formats, needs some library for checking |
|
56 | - IRules::IS_DATE_REGEX => External\IsDateRegex::class, // too many formats, needs some library for checking |
|
55 | + IRules::IS_DATE => External\IsDate::class, // too many formats, needs some library for checking |
|
56 | + IRules::IS_DATE_REGEX => External\IsDateRegex::class, // too many formats, needs some library for checking |
|
57 | 57 | IRules::SAFE_EQUALS_BASIC => Safe\HashedBasicEquals::class, |
58 | 58 | IRules::SAFE_EQUALS_FUNC => Safe\HashedFuncEquals::class, |
59 | 59 | IRules::SAFE_EQUALS_PASS => Safe\HashedPassEquals::class, |
@@ -63,9 +63,9 @@ |
||
63 | 63 | public function compareLenProvider(): array |
64 | 64 | { |
65 | 65 | return [ |
66 | - ['yxcvbnm', 8, false, false, true ], |
|
67 | - ['asdfghjk', 8, true, true, true ], |
|
68 | - ['qwertutop', 8, true, false, false], |
|
66 | + ['yxcvbnm', 8, false, false, true], |
|
67 | + ['asdfghjk', 8, true, true, true], |
|
68 | + ['qwertutop', 8, true, false, false], |
|
69 | 69 | ]; |
70 | 70 | } |
71 | 71 | } |
@@ -45,11 +45,11 @@ |
||
45 | 45 | public function stringsProvider(): array |
46 | 46 | { |
47 | 47 | return [ |
48 | - ['[email protected]', true, false], |
|
49 | - ['[email protected]', true, false], |
|
48 | + ['[email protected]', true, false], |
|
49 | + ['[email protected]', true, false], |
|
50 | 50 | ['foo@[email protected]', false, false], |
51 | - ['6', false, false], |
|
52 | - ['bar.example', false, true ], |
|
51 | + ['6', false, false], |
|
52 | + ['bar.example', false, true], |
|
53 | 53 | ['foo.bar.baz.example', false, false], |
54 | 54 | ]; |
55 | 55 | } |
@@ -57,9 +57,9 @@ |
||
57 | 57 | public function compareFormatProvider(): array |
58 | 58 | { |
59 | 59 | return [ |
60 | - [false, true, false, false], |
|
61 | - [123, false, true, false], |
|
62 | - ['abc', false, false, true], |
|
60 | + [false, true, false, false], |
|
61 | + [123, false, true, false], |
|
62 | + ['abc', false, false, true], |
|
63 | 63 | [new \stdClass(), false, false, false], |
64 | 64 | ]; |
65 | 65 | } |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | $this->assertInstanceOf(File\AFileRule::class, $data); |
80 | 80 | $data->setAgainstValue($maxSize); |
81 | 81 | $mock = MockFile::init('foo', 'text0.txt', 'text/plain', |
82 | - '', $fileSize, UPLOAD_ERR_OK ); |
|
82 | + '', $fileSize, UPLOAD_ERR_OK); |
|
83 | 83 | if (!$match) $this->expectException(RuleException::class); |
84 | 84 | $data->validate($mock); |
85 | 85 | } |
@@ -87,10 +87,10 @@ discard block |
||
87 | 87 | public function sizeMatchProvider(): array |
88 | 88 | { |
89 | 89 | return [ |
90 | - ['32', 128, false], |
|
90 | + ['32', 128, false], |
|
91 | 91 | ['10g', 46843, true], |
92 | 92 | ['15m', 84641, true], |
93 | - ['30k', 3534, true], |
|
93 | + ['30k', 3534, true], |
|
94 | 94 | ['30k', 35534, false], |
95 | 95 | ]; |
96 | 96 | } |
@@ -111,11 +111,11 @@ |
||
111 | 111 | public function compareRangesProvider(): array |
112 | 112 | { |
113 | 113 | return [ |
114 | - [2, '8', '4', false, false, ], |
|
115 | - [2, '8', '2', false, true, ], |
|
116 | - [6, '4', '8', true, true, ], |
|
117 | - [10, '2', '10', false, true, ], |
|
118 | - [10, '2', '6', false, false, ], |
|
114 | + [2, '8', '4', false, false, ], |
|
115 | + [2, '8', '2', false, true, ], |
|
116 | + [6, '4', '8', true, true, ], |
|
117 | + [10, '2', '10', false, true, ], |
|
118 | + [10, '2', '6', false, false, ], |
|
119 | 119 | ]; |
120 | 120 | } |
121 | 121 | } |
@@ -136,12 +136,12 @@ |
||
136 | 136 | public function sizeMatchProvider(): array |
137 | 137 | { |
138 | 138 | return [ |
139 | - ['6', '5', true, true, true ], |
|
139 | + ['6', '5', true, true, true], |
|
140 | 140 | ['5', '6', false, false, false], |
141 | - ['5', '5', false, true, false], |
|
142 | - ['6', '6', false, false, true ], |
|
143 | - ['4', '0', false, true, false], |
|
144 | - ['0', '7', false, false, true ], |
|
141 | + ['5', '5', false, true, false], |
|
142 | + ['6', '6', false, false, true], |
|
143 | + ['4', '0', false, true, false], |
|
144 | + ['0', '7', false, false, true], |
|
145 | 145 | ]; |
146 | 146 | } |
147 | 147 | } |