Skip to content

Commit 56c6873

Browse files
committed
refactor: corrects formatting issues
1 parent 8a9d2c6 commit 56c6873

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

src/wp-includes/ai-client-utils/class-wp-ai-client-psr7-request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ public function withUri( UriInterface $uri, bool $preserveHost = false ): self {
375375
* @param string|string[] $value Header value(s).
376376
*/
377377
private function set_header_internal( string $name, $value ): void {
378-
$normalized = strtolower( $name );
378+
$normalized = strtolower( $name );
379379
$this->headers[ $normalized ] = array(
380380
'name' => $name,
381381
'values' => is_array( $value ) ? $value : array( $value ),

src/wp-includes/ai-client-utils/class-wp-ai-client-psr7-response.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,9 @@ public function getHeaderLine( string $name ): string {
210210
* @return static
211211
*/
212212
public function withHeader( string $name, $value ): self {
213-
$new = clone $this;
214-
$normalized = strtolower( $name );
215-
$new->headers[ $normalized ] = array(
213+
$new = clone $this;
214+
$normalized = strtolower( $name );
215+
$new->headers[ $normalized ] = array(
216216
'name' => $name,
217217
'values' => is_array( $value ) ? $value : array( $value ),
218218
);

src/wp-includes/class-wp-ai-client-prompt-builder.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,14 @@ class WP_AI_Client_Prompt_Builder {
140140
* @var array<string, bool>
141141
*/
142142
private static array $support_check_methods = array(
143-
'is_supported' => true,
144-
'is_supported_for_text_generation' => true,
145-
'is_supported_for_image_generation' => true,
143+
'is_supported' => true,
144+
'is_supported_for_text_generation' => true,
145+
'is_supported_for_image_generation' => true,
146146
'is_supported_for_text_to_speech_conversion' => true,
147-
'is_supported_for_video_generation' => true,
148-
'is_supported_for_speech_generation' => true,
149-
'is_supported_for_music_generation' => true,
150-
'is_supported_for_embedding_generation' => true,
147+
'is_supported_for_video_generation' => true,
148+
'is_supported_for_speech_generation' => true,
149+
'is_supported_for_music_generation' => true,
150+
'is_supported_for_embedding_generation' => true,
151151
);
152152

153153
/**

tests/phpunit/tests/ai-client/wpAiClientEventDispatcher.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function test_dispatch_fires_action_hook() {
1919
$dispatcher = new WP_AI_Client_Event_Dispatcher();
2020
$event = new WP_AI_Client_Mock_Event();
2121

22-
$hook_fired = false;
22+
$hook_fired = false;
2323
$fired_event = null;
2424

2525
add_action(
@@ -43,8 +43,8 @@ function ( $e ) use ( &$hook_fired, &$fired_event ) {
4343
* @ticket TBD
4444
*/
4545
public function test_dispatch_returns_event_without_listeners() {
46-
$dispatcher = new WP_AI_Client_Event_Dispatcher();
47-
$event = new stdClass();
46+
$dispatcher = new WP_AI_Client_Event_Dispatcher();
47+
$event = new stdClass();
4848
$event->test_value = 'original';
4949

5050
$result = $dispatcher->dispatch( $event );

0 commit comments

Comments
 (0)