Skip to content

Commit a84a4ac

Browse files
author
Mohamed Khaled
committed
Remove trailing whitespace from AiProviderRegistry
1 parent 4b09a07 commit a84a4ac

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Providers/AiProviderRegistry.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ public function registerProvider(string $className): void
5151

5252
// Get provider metadata to extract ID
5353
$instance = new $className();
54-
54+
5555
// Check if provider has metadata method
5656
if (!method_exists($instance, 'metadata')) {
5757
throw new InvalidArgumentException(
5858
sprintf('Provider must implement metadata() method: %s', $className)
5959
);
6060
}
61-
61+
6262
$metadata = $instance->metadata();
6363

6464
if (!$metadata instanceof ProviderMetadata) {
@@ -116,7 +116,7 @@ public function isProviderConfigured(string $idOrClassName): bool
116116
{
117117
try {
118118
$this->getProviderInstance($idOrClassName);
119-
119+
120120
// TODO: Call availability() method when ProviderInterface is available
121121
// For now, assume configured if we can instantiate without exception
122122
return true;
@@ -141,17 +141,17 @@ public function findModelsMetadataForSupport(ModelRequirements $modelRequirement
141141
$providerResults = $this->findProviderModelsMetadataForSupport($providerId, $modelRequirements);
142142
if (!empty($providerResults)) {
143143
$providerInstance = $this->getProviderInstance($providerId);
144-
144+
145145
// Validate that provider has metadata method
146146
if (!method_exists($providerInstance, 'metadata')) {
147147
continue;
148148
}
149-
149+
150150
$providerMetadata = $providerInstance->metadata();
151151
if (!$providerMetadata instanceof ProviderMetadata) {
152152
continue;
153153
}
154-
154+
155155
$results[] = new ProviderModelsMetadata(
156156
$providerMetadata,
157157
$providerResults

0 commit comments

Comments
 (0)