From d63d2ffd6ea28d91b3d3ff06fef75daa976680e5 Mon Sep 17 00:00:00 2001 From: Wilmer Date: Thu, 7 Apr 2022 11:35:24 -0400 Subject: [PATCH] Fix style.ci. --- src/Model.php | 2 -- src/ModelType.php | 4 ---- tests/TestSupport/FormModel/PropertyVisibility.php | 2 +- tests/Validator/Attribute/HasLengthRuleTest.php | 6 +++--- 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/Model.php b/src/Model.php index 5503fb6..5b9246d 100644 --- a/src/Model.php +++ b/src/Model.php @@ -6,8 +6,6 @@ use Closure; use InvalidArgumentException; -use ReflectionClass; -use ReflectionNamedType; use Yii\Extension\Model\Contract\ModelContract; use Yii\Extension\Model\Contract\ModelErrorsContract; use Yiisoft\Strings\Inflector; diff --git a/src/ModelType.php b/src/ModelType.php index b3c8556..42170f4 100644 --- a/src/ModelType.php +++ b/src/ModelType.php @@ -8,12 +8,8 @@ use InvalidArgumentException; use ReflectionClass; use ReflectionNamedType; -use ReflectionUnionType; -use Stringable; use Yii\Extension\Model\Contract\ModelContract; -use function array_key_exists; - final class ModelType { private array $attributes; diff --git a/tests/TestSupport/FormModel/PropertyVisibility.php b/tests/TestSupport/FormModel/PropertyVisibility.php index 4619cf1..134e707 100644 --- a/tests/TestSupport/FormModel/PropertyVisibility.php +++ b/tests/TestSupport/FormModel/PropertyVisibility.php @@ -11,7 +11,7 @@ final class PropertyVisibility extends FormModel public string $public = ''; protected string $protected = ''; private string $private = ''; - private static string $static = ''; + private static string $static = ''; public function getName(): string { diff --git a/tests/Validator/Attribute/HasLengthRuleTest.php b/tests/Validator/Attribute/HasLengthRuleTest.php index 4bfb61d..3cc5260 100644 --- a/tests/Validator/Attribute/HasLengthRuleTest.php +++ b/tests/Validator/Attribute/HasLengthRuleTest.php @@ -17,7 +17,7 @@ public function testAttribute(): void $this->assertSame( [ 'hasLengthRule' => [ - 'This value should contain at least {min, number} {min, plural, one{character} other{characters}}.' + 'This value should contain at least {min, number} {min, plural, one{character} other{characters}}.', ], ], FormErrorsAttributes::getAll($formModel) @@ -28,7 +28,7 @@ public function testAttribute(): void $this->assertSame( [ 'hasLengthRule' => [ - 'This value should contain at least {min, number} {min, plural, one{character} other{characters}}.' + 'This value should contain at least {min, number} {min, plural, one{character} other{characters}}.', ], ], FormErrorsAttributes::getAll($formModel) @@ -39,7 +39,7 @@ public function testAttribute(): void $this->assertSame( [ 'hasLengthRule' => [ - 'This value should contain at most {max, number} {max, plural, one{character} other{characters}}.' + 'This value should contain at most {max, number} {max, plural, one{character} other{characters}}.', ], ], FormErrorsAttributes::getAll($formModel)