From 0cbed4dc4c201a6385f637dcae267a2a0209f6a9 Mon Sep 17 00:00:00 2001 From: Evan Sims Date: Mon, 4 Mar 2024 14:19:15 -0600 Subject: [PATCH] chore: apply updated php-cs-fixer linter rules --- src/Implementations/Psr17/RequestFactories.php | 8 ++++---- src/Implementations/Psr17/ResponseFactories.php | 8 ++++---- src/Implementations/Psr17/StreamFactories.php | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Implementations/Psr17/RequestFactories.php b/src/Implementations/Psr17/RequestFactories.php index 8cb2e0b..d0b0fba 100644 --- a/src/Implementations/Psr17/RequestFactories.php +++ b/src/Implementations/Psr17/RequestFactories.php @@ -33,7 +33,7 @@ public static function add(CandidateEntity $candidate): void */ public static function allCandidates(): CandidatesCollection { - if (self::$extendedCandidates instanceof \PsrDiscovery\Collections\CandidatesCollection) { + if (self::$extendedCandidates instanceof CandidatesCollection) { return self::$extendedCandidates; } @@ -48,7 +48,7 @@ public static function allCandidates(): CandidatesCollection */ public static function candidates(): CandidatesCollection { - if (self::$candidates instanceof \PsrDiscovery\Collections\CandidatesCollection) { + if (self::$candidates instanceof CandidatesCollection) { return self::$candidates; } @@ -134,7 +134,7 @@ public static function candidates(): CandidatesCollection */ public static function discover(): ?RequestFactoryInterface { - if (self::$using instanceof \Psr\Http\Message\RequestFactoryInterface) { + if (self::$using instanceof RequestFactoryInterface) { return self::$using; } @@ -162,7 +162,7 @@ public static function set(CandidatesCollection $candidates): void public static function singleton(): ?RequestFactoryInterface { - if (self::$using instanceof \Psr\Http\Message\RequestFactoryInterface) { + if (self::$using instanceof RequestFactoryInterface) { return self::$using; } diff --git a/src/Implementations/Psr17/ResponseFactories.php b/src/Implementations/Psr17/ResponseFactories.php index 0432ce4..2eb1b51 100644 --- a/src/Implementations/Psr17/ResponseFactories.php +++ b/src/Implementations/Psr17/ResponseFactories.php @@ -33,7 +33,7 @@ public static function add(CandidateEntity $candidate): void */ public static function allCandidates(): CandidatesCollection { - if (self::$extendedCandidates instanceof \PsrDiscovery\Collections\CandidatesCollection) { + if (self::$extendedCandidates instanceof CandidatesCollection) { return self::$extendedCandidates; } @@ -48,7 +48,7 @@ public static function allCandidates(): CandidatesCollection */ public static function candidates(): CandidatesCollection { - if (self::$candidates instanceof \PsrDiscovery\Collections\CandidatesCollection) { + if (self::$candidates instanceof CandidatesCollection) { return self::$candidates; } @@ -134,7 +134,7 @@ public static function candidates(): CandidatesCollection */ public static function discover(): ?ResponseFactoryInterface { - if (self::$using instanceof \Psr\Http\Message\ResponseFactoryInterface) { + if (self::$using instanceof ResponseFactoryInterface) { return self::$using; } @@ -162,7 +162,7 @@ public static function set(CandidatesCollection $candidates): void public static function singleton(): ?ResponseFactoryInterface { - if (self::$using instanceof \Psr\Http\Message\ResponseFactoryInterface) { + if (self::$using instanceof ResponseFactoryInterface) { return self::$using; } diff --git a/src/Implementations/Psr17/StreamFactories.php b/src/Implementations/Psr17/StreamFactories.php index 433d5bc..18c0816 100644 --- a/src/Implementations/Psr17/StreamFactories.php +++ b/src/Implementations/Psr17/StreamFactories.php @@ -33,7 +33,7 @@ public static function add(CandidateEntity $candidate): void */ public static function allCandidates(): CandidatesCollection { - if (self::$extendedCandidates instanceof \PsrDiscovery\Collections\CandidatesCollection) { + if (self::$extendedCandidates instanceof CandidatesCollection) { return self::$extendedCandidates; } @@ -48,7 +48,7 @@ public static function allCandidates(): CandidatesCollection */ public static function candidates(): CandidatesCollection { - if (self::$candidates instanceof \PsrDiscovery\Collections\CandidatesCollection) { + if (self::$candidates instanceof CandidatesCollection) { return self::$candidates; } @@ -134,7 +134,7 @@ public static function candidates(): CandidatesCollection */ public static function discover(): ?StreamFactoryInterface { - if (self::$using instanceof \Psr\Http\Message\StreamFactoryInterface) { + if (self::$using instanceof StreamFactoryInterface) { return self::$using; } @@ -162,7 +162,7 @@ public static function set(CandidatesCollection $candidates): void public static function singleton(): ?StreamFactoryInterface { - if (self::$using instanceof \Psr\Http\Message\StreamFactoryInterface) { + if (self::$using instanceof StreamFactoryInterface) { return self::$using; }