Skip to content

Commit b4481a1

Browse files
authored
Merge pull request #20 from glhd/analysis-1bE2xP
Apply fixes from StyleCI
2 parents adc31ea + 2b68777 commit b4481a1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Support/Validation/Rules/AdministrativeAreaCodeRule.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function __construct(Country $country)
2626
/**
2727
* {@inheritdoc}
2828
*/
29-
public function passes($attribute, $value) : bool
29+
public function passes($attribute, $value): bool
3030
{
3131
try {
3232
$value = (string) $value;
@@ -52,7 +52,7 @@ public function message(): string
5252
return trans('laravel-addressing::validation.administrative_area_code', compact('type'));
5353
}
5454

55-
protected function isRequired() : bool
55+
protected function isRequired(): bool
5656
{
5757
return in_array('administrativeArea', $this->country->addressFormat()->getRequiredFields());
5858
}

src/Support/Validation/Rules/AdministrativeAreaNameRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function __construct(Country $country)
2626
/**
2727
* {@inheritdoc}
2828
*/
29-
public function passes($attribute, $value) : bool
29+
public function passes($attribute, $value): bool
3030
{
3131
try {
3232
$value = (string) $value;

src/Support/Validation/Rules/PostalCodeRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function passes($attribute, $value): bool
4949
}
5050

5151
// If we don't have a pattern for this country/area, automatically pass
52-
if ( ! $pattern = $this->pattern()) {
52+
if (! $pattern = $this->pattern()) {
5353
return true;
5454
}
5555

0 commit comments

Comments
 (0)