Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored and github-actions[bot] committed Jan 5, 2024
1 parent e898c99 commit ae324f5
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Exceptions/InvalidArgument.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class InvalidArgument extends InvalidArgumentException
{
public static function invalidScheme(string $scheme, array $allowedSchemes): static
{
$schemes = implode(', ', array_map(fn($scheme) => "`{$scheme}`", $allowedSchemes));
$schemes = implode(', ', array_map(fn ($scheme) => "`{$scheme}`", $allowedSchemes));

return new static("The scheme `{$scheme}` isn't valid. It should be either {$schemes}.");
}
Expand Down
2 changes: 1 addition & 1 deletion src/SchemeValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function getAllowedSchemes(): array|null
public function setAllowedSchemes(array $allowedSchemes): void
{
$this->allowedSchemes = array_map(
fn($scheme) => static::sanitizeScheme($scheme),
fn ($scheme) => static::sanitizeScheme($scheme),
$allowedSchemes
);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/SchemeTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use Spatie\Url\SchemeValidator;
use Spatie\Url\Exceptions\InvalidArgument;
use Spatie\Url\Scheme;
use Spatie\Url\SchemeValidator;

it('can be instantiated', function () {
$scheme = new Scheme();
Expand Down
2 changes: 1 addition & 1 deletion tests/SchemeValidatorTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Spatie\Url\SchemeValidator;
use Spatie\Url\Exceptions\InvalidArgument;
use Spatie\Url\SchemeValidator;

it('can be instantiated', function () {
$schemeValidator = new SchemeValidator();
Expand Down
2 changes: 1 addition & 1 deletion tests/UrlBuildTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use Spatie\Url\Exceptions\InvalidArgument;
use Spatie\Url\Url;
use Spatie\Url\SchemeValidator;
use Spatie\Url\Url;

it('can build a url with a host', function () {
$url = Url::create()->withHost('spatie.be');
Expand Down
2 changes: 1 addition & 1 deletion tests/UrlParseTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use Spatie\Url\Exceptions\InvalidArgument;
use Spatie\Url\Url;
use Spatie\Url\SchemeValidator;
use Spatie\Url\Url;

it('can parse a scheme', function () {
$url = Url::fromString('https://spatie.be');
Expand Down
2 changes: 1 addition & 1 deletion tests/UrlSchemeTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Spatie\Url\Url;
use Spatie\Url\Exceptions\InvalidArgument;
use Spatie\Url\Url;

it('always allows an empty scheme against default scheme validator', function () {

Expand Down

0 comments on commit ae324f5

Please sign in to comment.