Skip to content

Commit e159f86

Browse files
Riley19280github-actions[bot]
authored andcommitted
Fix styling
1 parent 9477b90 commit e159f86

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

src/Parsers/EnumParser.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ public function __invoke(string $attribute, FluentSchema $schema, array $validat
1515
[$rule, $args] = $ruleArgs;
1616

1717
if ($rule instanceof EnumRule) {
18-
$enumType = invade($rule)->type; /** @phpstan-ignore property.protected */
19-
18+
$enumType = invade($rule)->type; /** @phpstan-ignore property.protected */
2019
$reflection = new ReflectionClass($enumType);
2120

2221
if (count($reflection->getConstants()) > 0) {

src/Parsers/TypeParser.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class TypeParser implements RuleParser
1313
{
1414
public function __invoke(string $attribute, FluentSchema $schema, array $validationRules, array $nestedRuleset): array|FluentSchema|null
1515
{
16-
foreach($validationRules as $ruleArgs) {
16+
foreach ($validationRules as $ruleArgs) {
1717
[$rule, $args] = $ruleArgs;
1818

1919
$ruleName = is_object($rule) ? get_class($rule) : $rule;
@@ -57,7 +57,7 @@ protected function parseInRule(FluentSchema $schema, mixed $ruleName, ?array $ar
5757
$values = null;
5858

5959
if (is_string($ruleName)) {
60-
$values = array_map(function(mixed $value) {
60+
$values = array_map(function (mixed $value) {
6161
if (is_numeric($value)) {
6262
if (ctype_digit($value)) {
6363
return intval($value);
@@ -72,15 +72,15 @@ protected function parseInRule(FluentSchema $schema, mixed $ruleName, ?array $ar
7272
$values = invade($ruleName)->values; /** @phpstan-ignore property.protected */
7373
}
7474

75-
if (!$values) {
75+
if (! $values) {
7676
return;
7777
}
7878

7979
$isString = true;
8080
$isInt = true;
8181
$isNumeric = true;
8282

83-
foreach($values as $value) {
83+
foreach ($values as $value) {
8484
if (is_string($value)) {
8585
$isInt = false;
8686
$isNumeric = false;
@@ -110,8 +110,7 @@ protected function parseInRule(FluentSchema $schema, mixed $ruleName, ?array $ar
110110

111111
protected function parseEnumRule(FluentSchema $schema, EnumRule $rule): void
112112
{
113-
$enumType = invade($rule)->type; /** @phpstan-ignore property.protected */
114-
113+
$enumType = invade($rule)->type; /** @phpstan-ignore property.protected */
115114
$reflection = new ReflectionClass($enumType);
116115

117116
if (

0 commit comments

Comments
 (0)