Skip to content

Commit 550acc2

Browse files
committed
refactor: resolves linting errors
1 parent 65f041e commit 550acc2

23 files changed

+26
-26
lines changed

src/Common/Contracts/WithJsonSchema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ interface WithJsonSchema
2121
* @return array<string, mixed> The JSON schema as an associative array
2222
*/
2323
public static function getJsonSchema(): array;
24-
}
24+
}

src/Embeddings/DTO/Embedding.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ public function getDimension(): int
5151
{
5252
return count($this->vector);
5353
}
54-
}
54+
}

src/Files/Contracts/FileInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ interface FileInterface
2121
* @return string The MIME type (e.g., 'image/png', 'audio/mp3')
2222
*/
2323
public function getMimeType(): string;
24-
}
24+
}

src/Files/DTO/InlineFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@ public static function getJsonSchema(): array
8585
'required' => ['mimeType', 'base64Data'],
8686
];
8787
}
88-
}
88+
}

src/Files/DTO/LocalFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@ public static function getJsonSchema(): array
8585
'required' => ['mimeType', 'path'],
8686
];
8787
}
88-
}
88+
}

src/Files/DTO/RemoteFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ public static function getJsonSchema(): array
8686
'required' => ['mimeType', 'url'],
8787
];
8888
}
89-
}
89+
}

src/Messages/DTO/Message.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ public static function getJsonSchema(): array
101101
'required' => ['role', 'parts'],
102102
];
103103
}
104-
}
104+
}

src/Messages/DTO/MessagePart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,4 +250,4 @@ public static function getJsonSchema(): array
250250
'required' => ['type'],
251251
];
252252
}
253-
}
253+
}

src/Messages/DTO/ModelMessage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ public function __construct(array $parts)
3434
* @param string $text The text content
3535
* @return self
3636
*/
37-
public static function fromText(string $text): self
37+
public static function text(string $text): self
3838
{
3939
return new self([MessagePart::text($text)]);
4040
}
41-
}
41+
}

src/Messages/DTO/SystemMessage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ public function __construct(array $parts)
3434
* @param string $text The text content
3535
* @return self
3636
*/
37-
public static function fromText(string $text): self
37+
public static function text(string $text): self
3838
{
3939
return new self([MessagePart::text($text)]);
4040
}
41-
}
41+
}

0 commit comments

Comments
 (0)