Skip to content

Commit 9b0274c

Browse files
CS fixes
1 parent 5ae0de5 commit 9b0274c

23 files changed

+79
-79
lines changed

Constraints/BicValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function validate($value, Constraint $constraint)
6868
return;
6969
}
7070

71-
if (!is_scalar($value) && !(\is_object($value) && method_exists($value, '__toString'))) {
71+
if (!\is_scalar($value) && !(\is_object($value) && method_exists($value, '__toString'))) {
7272
throw new UnexpectedValueException($value, 'string');
7373
}
7474

Constraints/CountryValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function validate($value, Constraint $constraint)
3838
return;
3939
}
4040

41-
if (!is_scalar($value) && !(\is_object($value) && method_exists($value, '__toString'))) {
41+
if (!\is_scalar($value) && !(\is_object($value) && method_exists($value, '__toString'))) {
4242
throw new UnexpectedValueException($value, 'string');
4343
}
4444

Constraints/CurrencyValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function validate($value, Constraint $constraint)
3939
return;
4040
}
4141

42-
if (!is_scalar($value) && !(\is_object($value) && method_exists($value, '__toString'))) {
42+
if (!\is_scalar($value) && !(\is_object($value) && method_exists($value, '__toString'))) {
4343
throw new UnexpectedValueException($value, 'string');
4444
}
4545

Constraints/DateTimeValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function validate($value, Constraint $constraint)
4040
return;
4141
}
4242

43-
if (!is_scalar($value) && !(\is_object($value) && method_exists($value, '__toString'))) {
43+
if (!\is_scalar($value) && !(\is_object($value) && method_exists($value, '__toString'))) {
4444
throw new UnexpectedValueException($value, 'string');
4545
}
4646

Constraints/DateValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function validate($value, Constraint $constraint)
5252
return;
5353
}
5454

55-
if (!is_scalar($value) && !(\is_object($value) && method_exists($value, '__toString'))) {
55+
if (!\is_scalar($value) && !(\is_object($value) && method_exists($value, '__toString'))) {
5656
throw new UnexpectedValueException($value, 'string');
5757
}
5858

Constraints/EmailValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function validate($value, Constraint $constraint)
7676
return;
7777
}
7878

79-
if (!is_scalar($value) && !(\is_object($value) && method_exists($value, '__toString'))) {
79+
if (!\is_scalar($value) && !(\is_object($value) && method_exists($value, '__toString'))) {
8080
throw new UnexpectedValueException($value, 'string');
8181
}
8282

Constraints/FileValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function validate($value, Constraint $constraint)
116116
}
117117
}
118118

119-
if (!is_scalar($value) && !$value instanceof FileObject && !(\is_object($value) && method_exists($value, '__toString'))) {
119+
if (!\is_scalar($value) && !$value instanceof FileObject && !(\is_object($value) && method_exists($value, '__toString'))) {
120120
throw new UnexpectedValueException($value, 'string');
121121
}
122122

Constraints/IbanValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public function validate($value, Constraint $constraint)
150150
return;
151151
}
152152

153-
if (!is_scalar($value) && !(\is_object($value) && method_exists($value, '__toString'))) {
153+
if (!\is_scalar($value) && !(\is_object($value) && method_exists($value, '__toString'))) {
154154
throw new UnexpectedValueException($value, 'string');
155155
}
156156

Constraints/IpValidator.php

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function validate($value, Constraint $constraint)
3737
return;
3838
}
3939

40-
if (!is_scalar($value) && !(\is_object($value) && method_exists($value, '__toString'))) {
40+
if (!\is_scalar($value) && !(\is_object($value) && method_exists($value, '__toString'))) {
4141
throw new UnexpectedValueException($value, 'string');
4242
}
4343

@@ -49,48 +49,48 @@ public function validate($value, Constraint $constraint)
4949

5050
switch ($constraint->version) {
5151
case Ip::V4:
52-
$flag = \FILTER_FLAG_IPV4;
53-
break;
52+
$flag = \FILTER_FLAG_IPV4;
53+
break;
5454

5555
case Ip::V6:
56-
$flag = \FILTER_FLAG_IPV6;
57-
break;
56+
$flag = \FILTER_FLAG_IPV6;
57+
break;
5858

5959
case Ip::V4_NO_PRIV:
60-
$flag = \FILTER_FLAG_IPV4 | \FILTER_FLAG_NO_PRIV_RANGE;
61-
break;
60+
$flag = \FILTER_FLAG_IPV4 | \FILTER_FLAG_NO_PRIV_RANGE;
61+
break;
6262

6363
case Ip::V6_NO_PRIV:
64-
$flag = \FILTER_FLAG_IPV6 | \FILTER_FLAG_NO_PRIV_RANGE;
65-
break;
64+
$flag = \FILTER_FLAG_IPV6 | \FILTER_FLAG_NO_PRIV_RANGE;
65+
break;
6666

6767
case Ip::ALL_NO_PRIV:
68-
$flag = \FILTER_FLAG_NO_PRIV_RANGE;
69-
break;
68+
$flag = \FILTER_FLAG_NO_PRIV_RANGE;
69+
break;
7070

7171
case Ip::V4_NO_RES:
72-
$flag = \FILTER_FLAG_IPV4 | \FILTER_FLAG_NO_RES_RANGE;
73-
break;
72+
$flag = \FILTER_FLAG_IPV4 | \FILTER_FLAG_NO_RES_RANGE;
73+
break;
7474

7575
case Ip::V6_NO_RES:
76-
$flag = \FILTER_FLAG_IPV6 | \FILTER_FLAG_NO_RES_RANGE;
77-
break;
76+
$flag = \FILTER_FLAG_IPV6 | \FILTER_FLAG_NO_RES_RANGE;
77+
break;
7878

7979
case Ip::ALL_NO_RES:
80-
$flag = \FILTER_FLAG_NO_RES_RANGE;
81-
break;
80+
$flag = \FILTER_FLAG_NO_RES_RANGE;
81+
break;
8282

8383
case Ip::V4_ONLY_PUBLIC:
84-
$flag = \FILTER_FLAG_IPV4 | \FILTER_FLAG_NO_PRIV_RANGE | \FILTER_FLAG_NO_RES_RANGE;
85-
break;
84+
$flag = \FILTER_FLAG_IPV4 | \FILTER_FLAG_NO_PRIV_RANGE | \FILTER_FLAG_NO_RES_RANGE;
85+
break;
8686

8787
case Ip::V6_ONLY_PUBLIC:
88-
$flag = \FILTER_FLAG_IPV6 | \FILTER_FLAG_NO_PRIV_RANGE | \FILTER_FLAG_NO_RES_RANGE;
89-
break;
88+
$flag = \FILTER_FLAG_IPV6 | \FILTER_FLAG_NO_PRIV_RANGE | \FILTER_FLAG_NO_RES_RANGE;
89+
break;
9090

9191
case Ip::ALL_ONLY_PUBLIC:
92-
$flag = \FILTER_FLAG_NO_PRIV_RANGE | \FILTER_FLAG_NO_RES_RANGE;
93-
break;
92+
$flag = \FILTER_FLAG_NO_PRIV_RANGE | \FILTER_FLAG_NO_RES_RANGE;
93+
break;
9494

9595
default:
9696
$flag = 0;

Constraints/IsbnValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function validate($value, Constraint $constraint)
4040
return;
4141
}
4242

43-
if (!is_scalar($value) && !(\is_object($value) && method_exists($value, '__toString'))) {
43+
if (!\is_scalar($value) && !(\is_object($value) && method_exists($value, '__toString'))) {
4444
throw new UnexpectedValueException($value, 'string');
4545
}
4646

0 commit comments

Comments
 (0)