style: phpcbf-style WPCS fixes (multi-line arrays, one arg per line, function-keyword spacing)

This commit is contained in:
peptiderepo
2026-04-23 15:03:28 +00:00
parent 238074f257
commit 130f9f719c
6 changed files with 94 additions and 29 deletions

View File

@@ -50,8 +50,14 @@ class PRAutoBlogger_Chief_Editor {
$response = $this->llm->send_chat_completion(
array(
array( 'role' => 'system', 'content' => $system_prompt ),
array( 'role' => 'user', 'content' => $user_prompt ),
array(
'role' => 'system',
'content' => $system_prompt,
),
array(
'role' => 'user',
'content' => $user_prompt,
),
),
$model,
array(
@@ -73,8 +79,12 @@ class PRAutoBlogger_Chief_Editor {
);
$this->cost_tracker->log_api_call(
null, 'review', $this->llm->get_provider_name(),
$response['model'], $response['prompt_tokens'], $response['completion_tokens']
null,
'review',
$this->llm->get_provider_name(),
$response['model'],
$response['prompt_tokens'],
$response['completion_tokens']
);
return $this->parse_review_response( $response['content'] );