Skip to content

Commit 9c1f64f

Browse files
committed
Code style
1 parent 6e4da55 commit 9c1f64f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/PHPFUI/ORM/Validator.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@
129129
* ```php
130130
* class Order extends \PHPFUI\ORM\Validator
131131
* {
132-
* /** @var array<string, string[]> */
133132
* public static array $validators = [
134133
* 'order_date' => ['required', 'maxlength', 'datetime', 'minvalue:2000-01-01', 'maxvalue:2099-12-31'],
135134
* ];
@@ -219,11 +218,13 @@ protected function testIt(bool $condition, string $token, array $values = []) :
219218
{
220219
$a = (int)$condition;
221220
$b = (int)$this->currentNot;
221+
222222
if ($condition xor $this->currentNot)
223223
{
224224
return '';
225225
}
226226
$token = '.validator.' . ($this->currentNot ? 'not.' : '') . $token;
227+
227228
return \PHPFUI\ORM::trans($token, $values);
228229
}
229230

0 commit comments

Comments
 (0)