Prechecker results: error


Overview

(0 errors, 0 warnings)

This section shows the general problems detected when processing the code [More info]


PHP lint problems

(0 errors, 0 warnings)

This section shows php lint problems in the code detected by php -l [More info]


PHP coding style problems

(51 errors, 11 warnings)

This section shows the coding style problems detected in the code by phpcs [More info]

local/ai_connector/classes/openai/openai_assistants.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
local/ai_connector/classes/openai/openai_audio.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
local/ai_connector/classes/openai/openai_chat.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
local/ai_connector/classes/openai/openai_client.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#63) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $data.
(#83) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $data.
(#132) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $data.
(#151) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $data.
local/ai_connector/classes/openai/openai_embeddings.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
local/ai_connector/classes/openai/openai_files.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
local/ai_connector/classes/openai/openai_fine_tuning.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
local/ai_connector/classes/openai/openai_images.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
local/ai_connector/classes/openai/openai_messages.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
local/ai_connector/classes/openai/openai_models.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
local/ai_connector/classes/openai/openai_moderations.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
local/ai_connector/classes/openai/openai_prompt_calculator.php
(#136) Missing docblock for function gpt_dict_zip
(#148) Missing docblock for function gpt_utf8_encode
(#169) Missing docblock for function gpt_unichr
(#196) Missing docblock for function gpt_bpe
(#275) Missing docblock for function gpt_split
(#294) Missing docblock for function gpt_get_pairs
(#305) Missing docblock for function gpt_index_of
(#375) Missing docblock for function gpt_my_filter
local/ai_connector/classes/openai/openai_runs.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
local/ai_connector/classes/openai/openai_threads.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
local/ai_connector/classes/openai/openai_vector.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
local/ai_connector/classes/privacy/provider.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#19) Incorrect @package tag for file provider.php. Expected local_ai_connector, found local_ai_connect.
(#29) Missing docblock for class provider
(#30) Missing docblock for function get_metadata
local/ai_connector/lang/en/local_ai_connector.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file local_ai_connector.php
(#19) The string key "openaisettings" is not in the correct order, it should be before "pluginname"
(#21) The string key "openaiapikey" is not in the correct order, it should be before "openaisettings_help"
(#25) Unexpected comment found. Auto-fixing will not work after this comment
(#28) The string key "privacy:metadata:ai_connector:image" is not in the correct order, it should be before "privacy:metadata:ai_connector:prompttext"
(#30) Unexpected comment found. Auto-fixing will not work after this comment
(#31) The string key "error:openai_client" is not in the correct order, it should be before "privacy:metadata:ai_connector:image"
(#33) The string key "error:file_not_found" is not in the correct order, it should be before "error:openai_files"
local/ai_connector/settings.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#19) Incorrect @package tag for file settings.php. Expected local_ai_connector, found local_ai_connect.
local/ai_connector/test.php
(#20) Incorrect @package tag for file test.php. Expected local_ai_connector, found local_ai_connect.
(#62) Missing docblock for class LocalAIConnector
(#63) Missing member variable doc comment
(#65) Missing docblock for function __construct
(#69) Missing docblock for function assistants
(#75) Missing docblock for function perform_api_test
(#101) Missing docblock for function audio
(#111) Missing docblock for function chat
(#125) Missing docblock for function embeddings
(#134) Missing docblock for function files
(#140) Missing docblock for function fine_tuning
(#146) Missing docblock for function images
(#155) Missing docblock for function models
(#161) Missing docblock for function moderations
(#169) Missing docblock for function runs
(#176) Missing docblock for function threads
(#182) Missing docblock for function messages
local/ai_connector/version.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file version.php

Javascript coding style problems

(0 errors, 0 warnings)

This section shows the coding style problems detected in the code by eslint [More info]


CSS problems

(0 errors, 0 warnings)

This section shows CSS problems detected by stylelint [More info]


PHPDocs style problems

(3 errors, 0 warnings)

This section shows the phpdocs problems detected in the code by local_moodlecheck [More info]

local/ai_connector/classes/openai/openai_messages.php
(#101) Phpdocs for function openai_messages::retrieve_file has incomplete parameters list
local/ai_connector/classes/openai/openai_prompt_calculator.php
(#39) Phpdocs for function openai_prompt_calculator::encode has incomplete parameters list
(#320) Phpdocs for function openai_prompt_calculator::decode has incomplete parameters list

Update savepoints problems

(0 errors, 0 warnings)

This section shows problems detected with the handling of upgrade savepoints [More info]


Third party library modification problems

(0 errors, 0 warnings)

This section shows problems detected with the modification of third party libraries [More info]


grunt changes

(0 errors, 0 warnings)

This section shows files built by grunt and not commited [More info]


shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 1 warnings)

This section shows problems detected in mustache templates [More info]

local/ai_connector/templates/test/openai.mustache
(#1) Example context missing (@template section not found.)

Gherkin .feature problems

(0 errors, 0 warnings)

This section shows problems detected in behat .feature files [More info]