Magento Coding Standard (PHPCS) report for gtstudio/module-ai-agents ==================================================================== Package version: 1.0.2 | Magento: 2.4.9 | Tested: 2026-05-27 113 warnings in 58 files Query/AiTools/GetListQuery.php 59:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) Query/AiAgent/GetListQuery.php 59:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) Query/AiAgent/GetByCodeQuery.php 18:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Command/AiTools/SaveCommand.php 44:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) Command/AiTools/DeleteByIdCommand.php 45:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) 63:21 warning Opening parenthesis of a multi-line function call must be the last content on the line (PSR2.Methods.FunctionCallSignature.ContentAfterOpenBracket) Command/AiAgent/SaveCommand.php 44:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) Command/AiAgent/DeleteByIdCommand.php 45:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) 63:21 warning Opening parenthesis of a multi-line function call must be the last content on the line (PSR2.Methods.FunctionCallSignature.ContentAfterOpenBracket) Model/AgentExecutionLogModel.php 20:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 22:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/AiAgentSearchResults.php 20:12 warning Possible useless method overriding detected (Generic.CodeAnalysis.UselessOverridingMethod.Found) 30:12 warning Possible useless method overriding detected (Generic.CodeAnalysis.UselessOverridingMethod.Found) Model/Service/AgentExecutionService.php 19:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 98:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) Model/Service/CronInputRenderer.php 22:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 28:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/AiToolsSearchResults.php 20:12 warning Possible useless method overriding detected (Generic.CodeAnalysis.UselessOverridingMethod.Found) 30:12 warning Possible useless method overriding detected (Generic.CodeAnalysis.UselessOverridingMethod.Found) Model/AiToolsSearchResultsFactory.php 36:1 warning Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany) Model/Data/AiAgentData.php 187:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 192:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 197:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 202:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 207:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 212:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/ResourceModel/AgentExecutionLogResource.php 11:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 13:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/ResourceModel/AgentExecutionLog/AgentExecutionLogCollection.php 13:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 15:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/Mapper/ToolMapper.php 25:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/Mapper/ToolPropertyMapper.php 22:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 41:12 warning $propertyData parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Tool/ToolExecutorPool.php 27:12 warning $executors parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Chat/AgentChatHistory.php 20:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/AgentRunner.php 19:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/Cron/AgentCronRunner.php 24:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 32:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 80:13 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 97:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/Cron/ExecutionLogPruner.php 20:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 27:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/Source/AiTools.php 13:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 19:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/Source/PropertyType.php 11:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Console/Command/ValidateToolExecutorsCommand.php 20:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Ui/DataProvider/AgentExecutionLogDataProvider.php 13:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 25:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Ui/DataProvider/AiAgentDataProvider.php 60:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) Ui/Component/Listing/Column/AiToolsBlockActions.php 46:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) 106:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) Ui/Component/Listing/Column/AiAgentBlockActions.php 46:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) 106:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) Mapper/AiToolsDataMapper.php 27:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) Mapper/AiAgentDataMapper.php 27:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) Controller/Adminhtml/AiTools/Delete.php 41:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) Controller/Adminhtml/AiTools/Save.php 64:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) 84:124 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong) Controller/Adminhtml/AiAgent/Execution.php 16:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 23:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Controller/Adminhtml/AiAgent/Delete.php 41:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) Controller/Adminhtml/AiAgent/Save.php 56:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) Controller/Adminhtml/AiAgent/RunNow.php 20:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 29:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) view/adminhtml/templates/aiagent/run_now_modal.phtml 14:33 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 19:44 warning Using escapeHtmlAttr on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 19:130 warning Line exceeds 120 characters; contains 142 characters (Generic.Files.LineLength.TooLong) 21:25 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 27:58 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 30:55 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 36:1 warning Line exceeds 120 characters; contains 150 characters (Generic.Files.LineLength.TooLong) 49:34 warning Using escapeJs on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) Api/ToolExecutorInterface.php 24:12 warning $inputs parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Api/DeleteAiToolsByIdInterface.php 16:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Api/SaveAiAgentInterface.php 17:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Api/GetAiToolsListInterface.php 17:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Api/Data/AiToolsDataFactory.php 8:11 warning Interface should have name that ends with "Interface" suffix. (Magento2.NamingConvention.InterfaceName.WrongInterfaceName) Api/Data/AiAgentDataFactory.php 8:11 warning Interface should have name that ends with "Interface" suffix. (Magento2.NamingConvention.InterfaceName.WrongInterfaceName) Api/Data/AiToolsSearchResultsInterfaceFactory.php 8:11 warning Interface should have name that ends with "Interface" suffix. (Magento2.NamingConvention.InterfaceName.WrongInterfaceName) Api/Data/AiAgentInterface.php 150:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 151:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 155:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 156:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 161:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 162:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 166:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 167:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 172:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 173:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 177:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 178:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Api/Data/AiAgentSearchResultsInterfaceFactory.php 8:11 warning Interface should have name that ends with "Interface" suffix. (Magento2.NamingConvention.InterfaceName.WrongInterfaceName) Api/GetAiAgentListInterface.php 17:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Api/AgentRunInterface.php 19:40 warning Short description should not be in multi lines (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Api/DeleteAiAgentByIdInterface.php 16:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Api/SaveAiToolsInterface.php 17:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Block/Form/AiTools/Delete.php 27:13 warning Opening parenthesis of a multi-line function call must be the last content on the line (PSR2.Methods.FunctionCallSignature.ContentAfterOpenBracket) Block/Form/AiTools/GenericButton.php 30:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) 63:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) Block/Form/AiAgent/Delete.php 27:13 warning Opening parenthesis of a multi-line function call must be the last content on the line (PSR2.Methods.FunctionCallSignature.ContentAfterOpenBracket) Block/Form/AiAgent/GenericButton.php 30:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) 63:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) Block/Form/AiAgent/RunNow.php 12:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 12:12 warning Possible useless method overriding detected (Generic.CodeAnalysis.UselessOverridingMethod.Found) 17:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 18:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Block/Adminhtml/AiAgent/RunNowModal.php 13:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 15:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 15:12 warning Possible useless method overriding detected (Generic.CodeAnalysis.UselessOverridingMethod.Found) 20:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 21:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 28:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 29:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation)