Skip to content

Commit

Permalink
Merge pull request #20 from glhd/analysis-1bE2xP
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
inxilpro authored Mar 10, 2020
2 parents adc31ea + 2b68777 commit b4481a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Support/Validation/Rules/AdministrativeAreaCodeRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __construct(Country $country)
/**
* {@inheritdoc}
*/
public function passes($attribute, $value) : bool
public function passes($attribute, $value): bool
{
try {
$value = (string) $value;
Expand All @@ -52,7 +52,7 @@ public function message(): string
return trans('laravel-addressing::validation.administrative_area_code', compact('type'));
}

protected function isRequired() : bool
protected function isRequired(): bool
{
return in_array('administrativeArea', $this->country->addressFormat()->getRequiredFields());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __construct(Country $country)
/**
* {@inheritdoc}
*/
public function passes($attribute, $value) : bool
public function passes($attribute, $value): bool
{
try {
$value = (string) $value;
Expand Down
2 changes: 1 addition & 1 deletion src/Support/Validation/Rules/PostalCodeRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function passes($attribute, $value): bool
}

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

Expand Down

0 comments on commit b4481a1

Please sign in to comment.