Closed (fixed)
Project:
Dify
Version:
1.0.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
6 Aug 2025 at 08:07 UTC
Updated:
6 Aug 2025 at 09:36 UTC
Jump to comment: Most recent
[0KRunning with gitlab-runner 18.1.2 (db60bc83)[0;m
[0K on gitlab-runner-69bfbbdf74-5x9z2 s8ex1X2yJ, system ID: r_41HgAzCPtYf2[0;m
[0K[36;1mResolving secrets[0;m[0;m
section_start:1754466968:prepare_executor
[0K[0K[36;1mPreparing the "kubernetes" executor[0;m[0;m
[0K"CPURequest" overwritten with "2"[0;m
[0KUsing Kubernetes namespace: gitlab-runner[0;m
[0KUsing Kubernetes executor with image registry.gitlab.com/drupal-infrastructure/drupalci/drupalci-environments/php-8.3-ubuntu-apache:production ...[0;m
[0KUsing attach strategy to execute scripts...[0;m
[0KUsing effective pull policy of [] for container init-permissions[0;m
[0KUsing effective pull policy of [] for container build[0;m
[0KUsing effective pull policy of [] for container helper[0;m
section_end:1754466968:prepare_executor
[0Ksection_start:1754466968:prepare_script
[0K[0K[36;1mPreparing environment[0;m[0;m
[0KUsing FF_USE_POD_ACTIVE_DEADLINE_SECONDS, the Pod activeDeadlineSeconds will be set to the job timeout: 1h0m0s...[0;m
Waiting for pod gitlab-runner/runner-s8ex1x2yj-project-188299-concurrent-1-r3h9w0u9 to be running, status is Pending
Running on runner-s8ex1x2yj-project-188299-concurrent-1-r3h9w0u9 via gitlab-runner-69bfbbdf74-5x9z2...
section_end:1754466998:prepare_script
[0Ksection_start:1754466998:get_sources
[0K[0K[36;1mGetting source from Git repository[0;m[0;m
[32;1mGitaly correlation ID: 1777397212[0;m
[32;1mFetching changes with git depth set to 20...[0;m
Initialized empty Git repository in /builds/project/dify/.git/
[32;1mCreated fresh repository.[0;m
[32;1mChecking out 873ceb8e as detached HEAD (ref is 1.0.x)...[0;m
[32;1mSkipping Git submodules setup[0;m
section_end:1754466999:get_sources
[0Ksection_start:1754466999:download_artifacts
[0K[0K[36;1mDownloading artifacts[0;m[0;m
[32;1mDownloading artifacts for composer (6125041)...[0;m
Downloading artifacts from coordinator... ok [0;m correlation_id[0;m= host[0;m=drupal-gitlab-job-artifacts.s3.us-west-2.amazonaws.com id[0;m=6125041 responseStatus[0;m=200 OK token[0;m=64_y7CFRw
section_end:1754467007:download_artifacts
[0Ksection_start:1754467007:step_script
[0K[0K[36;1mExecuting "step_script" stage of the job script[0;m[0;m
[32;1m$ cd $CI_PROJECT_DIR && pwd[0;m
/builds/project/dify
[32;1m$ PHPCS_CONFIG_FILE=($(ls {.,}phpcs.xml{.dist,} 2>/dev/null | head -1 || true))[0;m
[32;1m$ if [[ ! "$PHPCS_CONFIG_FILE" ]]; then # collapsed multi-line command[0;m
This project has no (.)phpcs.xml(.dist), getting default from Gitlab Templates assets/phpcs.xml.dist
get-file-via-curl.sh executing curl -OLf https://git.drupalcode.org/project/gitlab_templates/-/raw/default-ref/assets/phpcs.xml.dist
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 648 100 648 0 0 5561 0 --:--:-- --:--:-- --:--:-- 5586
[32;1m$ COLUMNS=120 composer show | grep -E '(codesniffer|coder|coding-standard|variable-analysis)'[0;m
dealerdirect/phpcodesniffer-composer-installer 1.1.2 PHP_CodeSniffer Standards Composer Installer Plugin
drupal/coder 8.3.30 Coder is a library to review Drupal code.
sirbrillig/phpcs-variable-analysis 2.12.0 A PHPCS sniff to detect problems with variables.
slevomat/coding-standard 8.20.0 Slevomat Coding Standard for PHP_CodeSniffer complements Con...
squizlabs/php_codesniffer 3.13.2 PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and ...
[32;1m$ $CI_PROJECT_DIR/vendor/bin/phpcs --version[0;m
PHP_CodeSniffer version 3.13.2 (stable) by Squiz and PHPCSStandards
[32;1m$ $CI_PROJECT_DIR/vendor/bin/phpcs --config-show installed_paths[0;m
Using config file: /builds/project/dify/vendor/squizlabs/php_codesniffer/CodeSniffer.conf
installed_paths: ../../drupal/coder/coder_sniffer,../../sirbrillig/phpcs-variable-analysis,../../slevomat/coding-standard
[32;1m$ $CI_PROJECT_DIR/vendor/bin/phpcs -i[0;m
The installed coding standards are MySource, PEAR, PSR1, PSR2, PSR12, Squiz, Zend, Drupal, DrupalPractice, VariableAnalysis and SlevomatCodingStandard
[32;1m$ $CI_PROJECT_DIR/vendor/bin/phpcs -e | grep -E 'contains.*sniff' || true[0;m
The drupal-contrib-project standard contains 123 sniffs
[32;1m$ echo -e "\e[0Ksection_start:`date +%s`:phpcs_sniffs[collapsed=true]\r\e[0KList of all PHPCS sniffs used in this job"[0;m
[0Ksection_start:1754467008:phpcs_sniffs[collapsed=true]
[0KList of all PHPCS sniffs used in this job
[32;1m$ $CI_PROJECT_DIR/vendor/bin/phpcs -e || true[0;m
The drupal-contrib-project standard contains 123 sniffs
Drupal (81 sniffs)
------------------
Drupal.Arrays.Array
Drupal.Arrays.DisallowLongArraySyntax
Drupal.Attributes.ValidHookName
Drupal.Classes.ClassCreateInstance
Drupal.Classes.ClassDeclaration
Drupal.Classes.ClassFileName
Drupal.Classes.FullyQualifiedNamespace
Drupal.Classes.InterfaceName
Drupal.Classes.PropertyDeclaration
Drupal.Classes.UnusedUseStatement
Drupal.Classes.UseGlobalClass
Drupal.Classes.UseLeadingBackslash
Drupal.Commenting.ClassComment
Drupal.Commenting.DataTypeNamespace
Drupal.Commenting.Deprecated
Drupal.Commenting.DocComment
Drupal.Commenting.DocCommentAlignment
Drupal.Commenting.DocCommentLongArraySyntax
Drupal.Commenting.DocCommentStar
Drupal.Commenting.FileComment
Drupal.Commenting.FunctionComment
Drupal.Commenting.GenderNeutralComment
Drupal.Commenting.HookComment
Drupal.Commenting.InlineComment
Drupal.Commenting.InlineVariableComment
Drupal.Commenting.PostStatementComment
Drupal.Commenting.TodoComment
Drupal.Commenting.VariableComment
Drupal.ControlStructures.CaseSemicolon
Drupal.ControlStructures.ControlSignature
Drupal.ControlStructures.ElseIf
Drupal.ControlStructures.InlineControlStructure
Drupal.CSS.ClassDefinitionNameSpacing
Drupal.CSS.ColourDefinition
Drupal.Files.EndFileNewline
Drupal.Files.FileEncoding
Drupal.Files.LineLength
Drupal.Files.TxtFileLineLength
Drupal.Formatting.MultiLineAssignment
Drupal.Formatting.MultipleStatementAlignment
Drupal.Formatting.SpaceInlineIf
Drupal.Formatting.SpaceUnaryOperator
Drupal.Functions.DiscouragedFunctions
Drupal.Functions.FunctionDeclaration
Drupal.Functions.MultiLineFunctionDeclaration
Drupal.InfoFiles.AutoAddedKeys
Drupal.InfoFiles.ClassFiles
Drupal.InfoFiles.DependenciesArray
Drupal.InfoFiles.DuplicateEntry
Drupal.InfoFiles.Required
Drupal.Methods.MethodDeclaration
Drupal.NamingConventions.ValidClassName
Drupal.NamingConventions.ValidEnumCase
Drupal.NamingConventions.ValidFunctionName
Drupal.NamingConventions.ValidGlobal
Drupal.NamingConventions.ValidVariableName
Drupal.Scope.MethodScope
Drupal.Semantics.ConstantName
Drupal.Semantics.EmptyInstall
Drupal.Semantics.FunctionAlias
Drupal.Semantics.FunctionT
Drupal.Semantics.FunctionTriggerError
Drupal.Semantics.FunctionWatchdog
Drupal.Semantics.InstallHooks
Drupal.Semantics.LStringTranslatable
Drupal.Semantics.PregSecurity
Drupal.Semantics.RemoteAddress
Drupal.Semantics.TInHookMenu
Drupal.Semantics.TInHookSchema
Drupal.Semantics.UnsilencedDeprecation
Drupal.Strings.UnnecessaryStringConcat
Drupal.WhiteSpace.CloseBracketSpacing
Drupal.WhiteSpace.Comma
Drupal.WhiteSpace.EmptyLines
Drupal.WhiteSpace.Namespace
Drupal.WhiteSpace.ObjectOperatorIndent
Drupal.WhiteSpace.ObjectOperatorSpacing
Drupal.WhiteSpace.OpenBracketSpacing
Drupal.WhiteSpace.OpenTagNewline
Drupal.WhiteSpace.ScopeClosingBrace
Drupal.WhiteSpace.ScopeIndent
Generic (16 sniffs)
-------------------
Generic.CodeAnalysis.EmptyPHPStatement
Generic.CodeAnalysis.UselessOverridingMethod
Generic.Files.ByteOrderMark
Generic.Files.LineEndings
Generic.Formatting.DisallowMultipleStatements
Generic.Formatting.SpaceAfterCast
Generic.Functions.FunctionCallArgumentSpacing
Generic.NamingConventions.ConstructorName
Generic.NamingConventions.UpperCaseConstantName
Generic.PHP.DeprecatedFunctions
Generic.PHP.DisallowShortOpenTag
Generic.PHP.LowerCaseKeyword
Generic.PHP.UpperCaseConstant
Generic.Strings.UnnecessaryStringConcat
Generic.WhiteSpace.DisallowTabIndent
Generic.WhiteSpace.LanguageConstructSpacing
PEAR (3 sniffs)
---------------
PEAR.Files.IncludingFile
PEAR.Functions.FunctionCallSignature
PEAR.Functions.ValidDefaultValue
PSR2 (3 sniffs)
---------------
PSR2.Classes.PropertyDeclaration
PSR2.Namespaces.NamespaceDeclaration
PSR2.Namespaces.UseDeclaration
SlevomatCodingStandard (5 sniffs)
---------------------------------
SlevomatCodingStandard.Classes.BackedEnumTypeSpacing
SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator
SlevomatCodingStandard.PHP.ShortList
SlevomatCodingStandard.TypeHints.DeclareStrictTypes
SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue
Squiz (14 sniffs)
-----------------
Squiz.Arrays.ArrayBracketSpacing
Squiz.Arrays.ArrayDeclaration
Squiz.ControlStructures.ForEachLoopDeclaration
Squiz.ControlStructures.ForLoopDeclaration
Squiz.ControlStructures.SwitchDeclaration
Squiz.Functions.FunctionDeclarationArgumentSpacing
Squiz.PHP.LowercasePHPFunctions
Squiz.PHP.NonExecutableCode
Squiz.Strings.ConcatenationSpacing
Squiz.WhiteSpace.FunctionSpacing
Squiz.WhiteSpace.OperatorSpacing
Squiz.WhiteSpace.ScopeKeywordSpacing
Squiz.WhiteSpace.SemicolonSpacing
Squiz.WhiteSpace.SuperfluousWhitespace
Zend (1 sniff)
--------------
Zend.Files.ClosingTag
[32;1m$ echo -e "\e[0Ksection_end:`date +%s`:phpcs_sniffs\r\e[0K"[0;m
[0Ksection_end:1754467008:phpcs_sniffs
[0K
[32;1m$ echo "executing $CI_PROJECT_DIR/vendor/bin/phpcs $DRUPAL_PROJECT_FOLDER -s --report-junit=junit.xml --report-full --report-summary --report-source --basepath=$DRUPAL_PROJECT_FOLDER $_PHPCS_EXTRA"[0;m
executing /builds/project/dify/vendor/bin/phpcs /builds/project/dify/web/modules/custom/dify -s --report-junit=junit.xml --report-full --report-summary --report-source --basepath=/builds/project/dify/web/modules/custom/dify --colors --report-width=120
[32;1m$ $CI_PROJECT_DIR/vendor/bin/phpcs $DRUPAL_PROJECT_FOLDER -s --report-junit=junit.xml --report-full --report-summary --report-source --basepath=$DRUPAL_PROJECT_FOLDER $_PHPCS_EXTRA || EXIT_CODE=$?[0;m
[1mFILE: src/Service/DifyConfigurationService.php[0m
------------------------------------------------------------------------------------------------------------------------
[1mFOUND 8 ERRORS AFFECTING 8 LINES[0m
------------------------------------------------------------------------------------------------------------------------
20 | [31mERROR[0m | [ ] [1mMore than 2 empty lines are not allowed[0m (Drupal.WhiteSpace.EmptyLines.EmptyLines)
27 | [31mERROR[0m | [x] [1mExpected 1 blank line before function; 3 found[0m (Squiz.WhiteSpace.FunctionSpacing.Before)
167 | [31mERROR[0m | [x] [1mInline comments must end in full-stops, exclamation marks, question marks, colons, or closing[0m
| | [1mparentheses[0m (Drupal.Commenting.InlineComment.InvalidEndChar)
172 | [31mERROR[0m | [x] [1mInline comments must end in full-stops, exclamation marks, question marks, colons, or closing[0m
| | [1mparentheses[0m (Drupal.Commenting.InlineComment.InvalidEndChar)
177 | [31mERROR[0m | [x] [1mInline comments must end in full-stops, exclamation marks, question marks, colons, or closing[0m
| | [1mparentheses[0m (Drupal.Commenting.InlineComment.InvalidEndChar)
204 | [31mERROR[0m | [x] [1mExpected 1 blank line after function; 3 found[0m (Squiz.WhiteSpace.FunctionSpacing.AfterLast)
207 | [31mERROR[0m | [ ] [1mMore than 2 empty lines are not allowed[0m (Drupal.WhiteSpace.EmptyLines.EmptyLines)
208 | [31mERROR[0m | [x] [1mThe closing brace for the class must have an empty line before it[0m
| | (Drupal.Classes.ClassDeclaration.CloseBraceAfterBody)
------------------------------------------------------------------------------------------------------------------------
[1mPHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY[0m
------------------------------------------------------------------------------------------------------------------------
[1mFILE: modules/dify_widget_vanilla/dify_widget_vanilla.module[0m
---------------------------------------------------------------------------------------------------------
[1mFOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES[0m
---------------------------------------------------------------------------------------------------------
5 | [33mWARNING[0m | [ ] [1mLine exceeds 80 characters; contains 89 characters[0m (Drupal.Files.LineLength.TooLong)
35 | [31mERROR[0m | [x] [1mExpected 1 newline at end of file; 3 found[0m (Drupal.Files.EndFileNewline.TooMany)
---------------------------------------------------------------------------------------------------------
[1mPHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY[0m
---------------------------------------------------------------------------------------------------------
[1mFILE: modules/dify_widget_vanilla/src/Service/MarkdownService.php[0m
------------------------------------------------------------------------------------------------------------------------
[1mFOUND 16 ERRORS AND 2 WARNINGS AFFECTING 17 LINES[0m
------------------------------------------------------------------------------------------------------------------------
6 | [33mWARNING[0m | [x] [1mUnused use statement[0m (Drupal.Classes.UnusedUseStatement.UnusedUse)
24 | [31mERROR[0m | [x] [1mInline comments must end in full-stops, exclamation marks, question marks, colons, or closing[0m
| | [1mparentheses[0m (Drupal.Commenting.InlineComment.InvalidEndChar)
27 | [31mERROR[0m | [x] [1mTRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"[0m
| | (Generic.PHP.UpperCaseConstant.Found)
31 | [31mERROR[0m | [x] [1mInline comments must end in full-stops, exclamation marks, question marks, colons, or closing[0m
| | [1mparentheses[0m (Drupal.Commenting.InlineComment.InvalidEndChar)
54 | [31mERROR[0m | [x] [1mInline comments must end in full-stops, exclamation marks, question marks, colons, or closing[0m
| | [1mparentheses[0m (Drupal.Commenting.InlineComment.InvalidEndChar)
73 | [31mERROR[0m | [x] [1mTRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"[0m
| | (Generic.PHP.UpperCaseConstant.Found)
78 | [31mERROR[0m | [x] [1mInline comments must end in full-stops, exclamation marks, question marks, colons, or closing[0m
| | [1mparentheses[0m (Drupal.Commenting.InlineComment.InvalidEndChar)
80 | [31mERROR[0m | [x] [1mInline comments must end in full-stops, exclamation marks, question marks, colons, or closing[0m
| | [1mparentheses[0m (Drupal.Commenting.InlineComment.InvalidEndChar)
85 | [31mERROR[0m | [x] [1mInline comments must end in full-stops, exclamation marks, question marks, colons, or closing[0m
| | [1mparentheses[0m (Drupal.Commenting.InlineComment.InvalidEndChar)
91 | [33mWARNING[0m | [ ] [1mLine exceeds 80 characters; contains 81 characters[0m (Drupal.Files.LineLength.TooLong)
91 | [31mERROR[0m | [x] [1mInline comments must end in full-stops, exclamation marks, question marks, colons, or closing[0m
| | [1mparentheses[0m (Drupal.Commenting.InlineComment.InvalidEndChar)
111 | [31mERROR[0m | [x] [1mInline comments must end in full-stops, exclamation marks, question marks, colons, or closing[0m
| | [1mparentheses[0m (Drupal.Commenting.InlineComment.InvalidEndChar)
126 | [31mERROR[0m | [x] [1mInline comments must end in full-stops, exclamation marks, question marks, colons, or closing[0m
| | [1mparentheses[0m (Drupal.Commenting.InlineComment.InvalidEndChar)
129 | [31mERROR[0m | [x] [1mInline comments must end in full-stops, exclamation marks, question marks, colons, or closing[0m
| | [1mparentheses[0m (Drupal.Commenting.InlineComment.InvalidEndChar)
145 | [31mERROR[0m | [x] [1mInline comments must end in full-stops, exclamation marks, question marks, colons, or closing[0m
| | [1mparentheses[0m (Drupal.Commenting.InlineComment.InvalidEndChar)
148 | [31mERROR[0m | [x] [1mExpected 1 space after FUNCTION keyword; 0 found[0m
| | (Drupal.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction)
155 | [31mERROR[0m | [x] [1mInline comments must end in full-stops, exclamation marks, question marks, colons, or closing[0m
| | [1mparentheses[0m (Drupal.Commenting.InlineComment.InvalidEndChar)
157 | [31mERROR[0m | [x] [1mExpected newline after closing brace[0m
| | (Drupal.ControlStructures.ControlSignature.NewlineAfterCloseBrace)
------------------------------------------------------------------------------------------------------------------------
[1mPHPCBF CAN FIX THE 17 MARKED SNIFF VIOLATIONS AUTOMATICALLY[0m
------------------------------------------------------------------------------------------------------------------------
[1mFILE: modules/dify_widget_vanilla/src/Plugin/Block/DifyWidgetVanillaBlock.php[0m
------------------------------------------------------------------------------------------------------------------------
[1mFOUND 8 ERRORS AFFECTING 8 LINES[0m
------------------------------------------------------------------------------------------------------------------------
109 | [31mERROR[0m | [x] [1mExpected 1 blank line after function; 3 found[0m (Squiz.WhiteSpace.FunctionSpacing.After)
112 | [31mERROR[0m | [ ] [1mMore than 2 empty lines are not allowed[0m (Drupal.WhiteSpace.EmptyLines.EmptyLines)
149 | [31mERROR[0m | [x] [1mInline comments must end in full-stops, exclamation marks, question marks, colons, or closing[0m
| | [1mparentheses[0m (Drupal.Commenting.InlineComment.InvalidEndChar)
165 | [31mERROR[0m | [x] [1mExpected newline after closing brace[0m
| | (Drupal.ControlStructures.ControlSignature.NewlineAfterCloseBrace)
365 | [31mERROR[0m | [x] [1mInline comments must end in full-stops, exclamation marks, question marks, colons, or closing[0m
| | [1mparentheses[0m (Drupal.Commenting.InlineComment.InvalidEndChar)
391 | [31mERROR[0m | [x] [1mInline comments must end in full-stops, exclamation marks, question marks, colons, or closing[0m
| | [1mparentheses[0m (Drupal.Commenting.InlineComment.InvalidEndChar)
404 | [31mERROR[0m | [x] [1mInline comments must end in full-stops, exclamation marks, question marks, colons, or closing[0m
| | [1mparentheses[0m (Drupal.Commenting.InlineComment.InvalidEndChar)
407 | [31mERROR[0m | [x] [1mInline comments must end in full-stops, exclamation marks, question marks, colons, or closing[0m
| | [1mparentheses[0m (Drupal.Commenting.InlineComment.InvalidEndChar)
------------------------------------------------------------------------------------------------------------------------
[1mPHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY[0m
------------------------------------------------------------------------------------------------------------------------
[1mFILE: modules/dify_widget_vanilla/src/Form/DifyWidgetVanillaConfigListForm.php[0m
------------------------------------------------------------------------------------------------------------------------
[1mFOUND 3 ERRORS AFFECTING 3 LINES[0m
------------------------------------------------------------------------------------------------------------------------
92 | [31mERROR[0m | [x] [1mArray indentation error, expected 12 spaces but found 14[0m (Drupal.Arrays.Array.ArrayIndentation)
93 | [31mERROR[0m | [x] [1mArray indentation error, expected 12 spaces but found 14[0m (Drupal.Arrays.Array.ArrayIndentation)
135 | [31mERROR[0m | [x] [1mInline comments must end in full-stops, exclamation marks, question marks, colons, or closing[0m
| | [1mparentheses[0m (Drupal.Commenting.InlineComment.InvalidEndChar)
------------------------------------------------------------------------------------------------------------------------
[1mPHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY[0m
------------------------------------------------------------------------------------------------------------------------
[1mFILE: modules/dify_widget_vanilla/src/Form/DifyWidgetVanillaConfigForm.php[0m
------------------------------------------------------------------------------------------------------------------------
[1mFOUND 2 ERRORS AFFECTING 2 LINES[0m
------------------------------------------------------------------------------------------------------------------------
9 | [31mERROR[0m | [x] [1mThere must be one blank line after the last USE statement; 2 found;[0m
| | (PSR2.Namespaces.UseDeclaration.SpaceAfterLastUse)
146 | [31mERROR[0m | [x] [1mExpected newline after closing brace[0m
| | (Drupal.ControlStructures.ControlSignature.NewlineAfterCloseBrace)
------------------------------------------------------------------------------------------------------------------------
[1mPHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY[0m
------------------------------------------------------------------------------------------------------------------------
[1mFILE: modules/dify_widget_vanilla/src/Form/DifyWidgetVanillaConfigDeleteForm.php[0m
------------------------------------------------------------------------------------------------------------------------
[1mFOUND 2 ERRORS AFFECTING 2 LINES[0m
------------------------------------------------------------------------------------------------------------------------
9 | [31mERROR[0m | [x] [1mThere must be one blank line after the last USE statement; 2 found;[0m
| | (PSR2.Namespaces.UseDeclaration.SpaceAfterLastUse)
87 | [31mERROR[0m | [x] [1mExpected newline after closing brace[0m
| | (Drupal.ControlStructures.ControlSignature.NewlineAfterCloseBrace)
------------------------------------------------------------------------------------------------------------------------
[1mPHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY[0m
------------------------------------------------------------------------------------------------------------------------
[1mFILE: modules/dify_widget_vanilla/src/Controller/MarkdownController.php[0m
------------------------------------------------------------------------------------------------------------------------
[1mFOUND 1 ERROR AFFECTING 1 LINE[0m
------------------------------------------------------------------------------------------------------------------------
48 | [31mERROR[0m | [x] [1mTRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"[0m
| | (Generic.PHP.UpperCaseConstant.Found)
------------------------------------------------------------------------------------------------------------------------
[1mPHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY[0m
------------------------------------------------------------------------------------------------------------------------
[1mFILE: modules/dify_widget_official/dify_widget_official.module[0m
------------------------------------------------------------------------------------------------------------------------
[1mFOUND 4 ERRORS AND 2 WARNINGS AFFECTING 6 LINES[0m
------------------------------------------------------------------------------------------------------------------------
12 | [31mERROR[0m | [x] [1mInline comments must end in full-stops, exclamation marks, question marks, colons, or closing[0m
| | [1mparentheses[0m (Drupal.Commenting.InlineComment.InvalidEndChar)
19 | [31mERROR[0m | [x] [1mFunctions must not contain multiple empty lines in a row; found 3 empty lines[0m
| | (Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines)
21 | [31mERROR[0m | [ ] [1mMore than 2 empty lines are not allowed[0m (Drupal.WhiteSpace.EmptyLines.EmptyLines)
22 | [31mERROR[0m | [x] [1mInline comments must end in full-stops, exclamation marks, question marks, colons, or closing[0m
| | [1mparentheses[0m (Drupal.Commenting.InlineComment.InvalidEndChar)
49 | [33mWARNING[0m | [x] [1mA comma should follow the last multiline array item. Found: 'dify_chatbot_config'[0m
| | (Drupal.Arrays.Array.CommaLastItem)
61 | [33mWARNING[0m | [x] [1mA comma should follow the last multiline array item. Found: 'dify_chatbot_script'[0m
| | (Drupal.Arrays.Array.CommaLastItem)
------------------------------------------------------------------------------------------------------------------------
[1mPHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY[0m
------------------------------------------------------------------------------------------------------------------------
[1mFILE: modules/dify_widget_official/src/Form/DifyWidgetOfficialConfigForm.php[0m
------------------------------------------------------------------------------------------------------------------------
[1mFOUND 3 ERRORS AFFECTING 3 LINES[0m
------------------------------------------------------------------------------------------------------------------------
153 | [31mERROR[0m | [x] [1mInline comments must end in full-stops, exclamation marks, question marks, colons, or closing[0m
| | [1mparentheses[0m (Drupal.Commenting.InlineComment.InvalidEndChar)
156 | [31mERROR[0m | [x] [1mInline comments must end in full-stops, exclamation marks, question marks, colons, or closing[0m
| | [1mparentheses[0m (Drupal.Commenting.InlineComment.InvalidEndChar)
170 | [31mERROR[0m | [x] [1mExpected newline after closing brace[0m
| | (Drupal.ControlStructures.ControlSignature.NewlineAfterCloseBrace)
------------------------------------------------------------------------------------------------------------------------
[1mPHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY[0m
------------------------------------------------------------------------------------------------------------------------
[1mFILE: modules/dify_search_api/src/Plugin/search_api/backend/SearchApiDifyBackend.php[0m
------------------------------------------------------------------------------------------------------------------------
[1mFOUND 10 ERRORS AND 2 WARNINGS AFFECTING 12 LINES[0m
------------------------------------------------------------------------------------------------------------------------
7 | [33mWARNING[0m | [x] [1mUnused use statement[0m (Drupal.Classes.UnusedUseStatement.UnusedUse)
55 | [31mERROR[0m | [x] [1mMulti-line function declarations must have a trailing comma after the last parameter[0m
| | (Drupal.Functions.MultiLineFunctionDeclaration.MissingTrailingComma)
166 | [31mERROR[0m | [x] [1mFunctions must not contain multiple empty lines in a row; found 3 empty lines[0m
| | (Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines)
168 | [31mERROR[0m | [ ] [1mMore than 2 empty lines are not allowed[0m (Drupal.WhiteSpace.EmptyLines.EmptyLines)
199 | [31mERROR[0m | [x] [1mFunctions must not contain multiple empty lines in a row; found 3 empty lines[0m
| | (Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines)
201 | [31mERROR[0m | [ ] [1mMore than 2 empty lines are not allowed[0m (Drupal.WhiteSpace.EmptyLines.EmptyLines)
214 | [31mERROR[0m | [x] [1mInline comments must end in full-stops, exclamation marks, question marks, colons, or closing[0m
| | [1mparentheses[0m (Drupal.Commenting.InlineComment.InvalidEndChar)
234 | [31mERROR[0m | [x] [1mInline comments must end in full-stops, exclamation marks, question marks, colons, or closing[0m
| | [1mparentheses[0m (Drupal.Commenting.InlineComment.InvalidEndChar)
253 | [31mERROR[0m | [x] [1mInline comments must end in full-stops, exclamation marks, question marks, colons, or closing[0m
| | [1mparentheses[0m (Drupal.Commenting.InlineComment.InvalidEndChar)
326 | [31mERROR[0m | [x] [1mExpected 1 blank line after function; 3 found[0m (Squiz.WhiteSpace.FunctionSpacing.After)
329 | [31mERROR[0m | [ ] [1mMore than 2 empty lines are not allowed[0m (Drupal.WhiteSpace.EmptyLines.EmptyLines)
363 | [33mWARNING[0m | [ ] [1mLine exceeds 80 characters; contains 84 characters[0m (Drupal.Files.LineLength.TooLong)
------------------------------------------------------------------------------------------------------------------------
[1mPHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY[0m
------------------------------------------------------------------------------------------------------------------------
[1mFILE: modules/dify_augmented_search/src/Service/MarkdownService.php[0m
------------------------------------------------------------------------------------------------------------------------
[1mFOUND 10 ERRORS AFFECTING 9 LINES[0m
------------------------------------------------------------------------------------------------------------------------
7 | [31mERROR[0m | [x] [1mMissing class doc comment[0m (Drupal.Commenting.ClassComment.Missing)
9 | [31mERROR[0m | [ ] [1mMissing member variable doc comment[0m (Drupal.Commenting.VariableComment.Missing)
14 | [31mERROR[0m | [x] [1mTRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"[0m
| | (Generic.PHP.UpperCaseConstant.Found)
21 | [31mERROR[0m | [x] [1mMissing function doc comment[0m (Drupal.Commenting.FunctionComment.Missing)
35 | [31mERROR[0m | [x] [1mMissing function doc comment[0m (Drupal.Commenting.FunctionComment.Missing)
35 | [31mERROR[0m | [x] [1mTRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"[0m
| | (Generic.PHP.UpperCaseConstant.Found)
56 | [31mERROR[0m | [x] [1mMissing function doc comment[0m (Drupal.Commenting.FunctionComment.Missing)
79 | [31mERROR[0m | [x] [1mMissing function doc comment[0m (Drupal.Commenting.FunctionComment.Missing)
82 | [31mERROR[0m | [x] [1mExpected 1 space after FUNCTION keyword; 0 found[0m
| | (Drupal.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction)
90 | [31mERROR[0m | [x] [1mExpected newline after closing brace[0m
| | (Drupal.ControlStructures.ControlSignature.NewlineAfterCloseBrace)
------------------------------------------------------------------------------------------------------------------------
[1mPHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY[0m
------------------------------------------------------------------------------------------------------------------------
[1mFILE: modules/dify_augmented_search/src/Plugin/Block/AugmentedSearchBlock.php[0m
------------------------------------------------------------------------------------------------------------------------
[1mFOUND 5 ERRORS AFFECTING 5 LINES[0m
------------------------------------------------------------------------------------------------------------------------
23 | [31mERROR[0m | [ ] [1mMissing member variable doc comment[0m (Drupal.Commenting.VariableComment.Missing)
30 | [31mERROR[0m | [x] [1mMissing function doc comment[0m (Drupal.Commenting.FunctionComment.Missing)
52 | [31mERROR[0m | [x] [1mMissing function doc comment[0m (Drupal.Commenting.FunctionComment.Missing)
112 | [31mERROR[0m | [x] [1mInline comments must end in full-stops, exclamation marks, question marks, colons, or closing[0m
| | [1mparentheses[0m (Drupal.Commenting.InlineComment.InvalidEndChar)
228 | [31mERROR[0m | [x] [1mInline comments must end in full-stops, exclamation marks, question marks, colons, or closing[0m
| | [1mparentheses[0m (Drupal.Commenting.InlineComment.InvalidEndChar)
------------------------------------------------------------------------------------------------------------------------
[1mPHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY[0m
------------------------------------------------------------------------------------------------------------------------
[1mFILE: modules/dify_augmented_search/src/Controller/MarkdownController.php[0m
------------------------------------------------------------------------------------------------------------------------
[1mFOUND 5 ERRORS AFFECTING 5 LINES[0m
------------------------------------------------------------------------------------------------------------------------
11 | [31mERROR[0m | [x] [1mMissing class doc comment[0m (Drupal.Commenting.ClassComment.Missing)
13 | [31mERROR[0m | [ ] [1mMissing member variable doc comment[0m (Drupal.Commenting.VariableComment.Missing)
19 | [31mERROR[0m | [x] [1mMissing function doc comment[0m (Drupal.Commenting.FunctionComment.Missing)
25 | [31mERROR[0m | [x] [1mMissing function doc comment[0m (Drupal.Commenting.FunctionComment.Missing)
28 | [31mERROR[0m | [x] [1mTRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"[0m
| | (Generic.PHP.UpperCaseConstant.Found)
------------------------------------------------------------------------------------------------------------------------
[1mPHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY[0m
------------------------------------------------------------------------------------------------------------------------
[1mFILE: dify.module[0m
----------------------------------------------------------------------------------------------------
[1mFOUND 5 ERRORS AFFECTING 5 LINES[0m
----------------------------------------------------------------------------------------------------
13 | [31mERROR[0m | [x] [1mExpected 1 newline at end of file; 7 found[0m (Drupal.Files.EndFileNewline.TooMany)
16 | [31mERROR[0m | [ ] [1mMore than 2 empty lines are not allowed[0m (Drupal.WhiteSpace.EmptyLines.EmptyLines)
17 | [31mERROR[0m | [ ] [1mMore than 2 empty lines are not allowed[0m (Drupal.WhiteSpace.EmptyLines.EmptyLines)
18 | [31mERROR[0m | [ ] [1mMore than 2 empty lines are not allowed[0m (Drupal.WhiteSpace.EmptyLines.EmptyLines)
19 | [31mERROR[0m | [ ] [1mMore than 2 empty lines are not allowed[0m (Drupal.WhiteSpace.EmptyLines.EmptyLines)
----------------------------------------------------------------------------------------------------
[1mPHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY[0m
----------------------------------------------------------------------------------------------------
[1mFILE: dify.info.yml[0m
--------------------------------------------------------------------------------------------------
[1mFOUND 1 ERROR AFFECTING 1 LINE[0m
--------------------------------------------------------------------------------------------------
5 | [31mERROR[0m | [x] [1mExpected 1 newline at end of file; 2 found[0m (Drupal.Files.EndFileNewline.TooMany)
--------------------------------------------------------------------------------------------------
[1mPHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY[0m
--------------------------------------------------------------------------------------------------
Time: 407ms; Memory: 8MB
[1mPHP CODE SNIFFER REPORT SUMMARY[0m
---------------------------------------------------------------------------------------------------
[1mFILE ERRORS WARNINGS[0m
---------------------------------------------------------------------------------------------------
dify.info.yml [31m1[0m [33m0[0m
dify.module [31m5[0m [33m0[0m
modules/dify_augmented_search/src/Controller/MarkdownController.php [31m5[0m [33m0[0m
modules/dify_augmented_search/src/Plugin/Block/AugmentedSearchBlock.php [31m5[0m [33m0[0m
modules/dify_augmented_search/src/Service/MarkdownService.php [31m10[0m [33m0[0m
modules/dify_search_api/src/Plugin/search_api/backend/SearchApiDifyBackend.php [31m10[0m [33m2[0m
modules/dify_widget_official/dify_widget_official.module [31m4[0m [33m2[0m
modules/dify_widget_official/src/Form/DifyWidgetOfficialConfigForm.php [31m3[0m [33m0[0m
modules/dify_widget_vanilla/dify_widget_vanilla.module [31m1[0m [33m1[0m
modules/dify_widget_vanilla/src/Controller/MarkdownController.php [31m1[0m [33m0[0m
modules/dify_widget_vanilla/src/Form/DifyWidgetVanillaConfigDeleteForm.php [31m2[0m [33m0[0m
modules/dify_widget_vanilla/src/Form/DifyWidgetVanillaConfigForm.php [31m2[0m [33m0[0m
modules/dify_widget_vanilla/src/Form/DifyWidgetVanillaConfigListForm.php [31m3[0m [33m0[0m
modules/dify_widget_vanilla/src/Plugin/Block/DifyWidgetVanillaBlock.php [31m8[0m [33m0[0m
modules/dify_widget_vanilla/src/Service/MarkdownService.php [31m16[0m [33m2[0m
src/Service/DifyConfigurationService.php [31m8[0m [33m0[0m
---------------------------------------------------------------------------------------------------
[1mA TOTAL OF 84 ERRORS AND 7 WARNINGS WERE FOUND IN 36 FILES[0m
---------------------------------------------------------------------------------------------------
[1mPHPCBF CAN FIX 74 OF THESE SNIFF VIOLATIONS AUTOMATICALLY[0m
---------------------------------------------------------------------------------------------------
[1mPHP CODE SNIFFER VIOLATION SOURCE SUMMARY[0m
-----------------------------------------------------------------------------
[1m SOURCE COUNT
[0m-----------------------------------------------------------------------------
[x] Drupal.Commenting.InlineComment.InvalidEndChar 30
[ ] Drupal.WhiteSpace.EmptyLines.EmptyLines 11
[x] Drupal.Commenting.FunctionComment.Missing 8
[x] Drupal.ControlStructures.ControlSignature.NewlineAfterCloseBrace 6
[x] Generic.PHP.UpperCaseConstant.Found 6
[ ] Drupal.Commenting.VariableComment.Missing 3
[x] Drupal.Files.EndFileNewline.TooMany 3
[ ] Drupal.Files.LineLength.TooLong 3
[x] Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines 3
[x] Drupal.Arrays.Array.ArrayIndentation 2
[x] Drupal.Arrays.Array.CommaLastItem 2
[x] Drupal.Classes.UnusedUseStatement.UnusedUse 2
[x] Drupal.Commenting.ClassComment.Missing 2
[x] Drupal.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction 2
[x] PSR2.Namespaces.UseDeclaration.SpaceAfterLastUse 2
[x] Squiz.WhiteSpace.FunctionSpacing.After 2
[x] Drupal.Classes.ClassDeclaration.CloseBraceAfterBody 1
[x] Drupal.Functions.MultiLineFunctionDeclaration.MissingTrailingComma 1
[x] Squiz.WhiteSpace.FunctionSpacing.AfterLast 1
[x] Squiz.WhiteSpace.FunctionSpacing.Before 1
-----------------------------------------------------------------------------
[1mA TOTAL OF 91 SNIFF VIOLATIONS WERE FOUND IN 20 SOURCES[0m
-----------------------------------------------------------------------------
[1mPHPCBF CAN FIX THE 17 MARKED SOURCES AUTOMATICALLY (74 VIOLATIONS IN TOTAL)[0m
-----------------------------------------------------------------------------
[32;1m$ if [[ $EXIT_CODE == "" ]]; then echo "There are no PHPCS coding standards errors or warnings"; fi[0;m
[32;1m$ echo "Exiting with EXIT_CODE=$EXIT_CODE" && exit $EXIT_CODE[0;m
Exiting with EXIT_CODE=2
section_end:1754467009:step_script
[0Ksection_start:1754467009:upload_artifacts_on_failure
[0K[0K[36;1mUploading artifacts for failed job[0;m[0;m
[32;1mUploading artifacts...[0;m
junit.xml: found 1 matching artifact files and directories[0;m
Uploading artifacts as "archive" to coordinator... 201 Created[0;m correlation_id[0;m=106460700 id[0;m=6125043 responseStatus[0;m=201 Created token[0;m=64_y7CFRw
[32;1mUploading artifacts...[0;m
junit.xml: found 1 matching artifact files and directories[0;m
Uploading artifacts as "junit" to coordinator... 201 Created[0;m correlation_id[0;m=342901853 id[0;m=6125043 responseStatus[0;m=201 Created token[0;m=64_y7CFRw
section_end:1754467010:upload_artifacts_on_failure
[0Ksection_start:1754467010:cleanup_file_variables
[0K[0K[36;1mCleaning up project directory and file based variables[0;m[0;m
section_end:1754467011:cleanup_file_variables
[0K[31;1mERROR: Job failed: command terminated with exit code 2
[0;mStart within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
asterovim commentedComment #4
asterovim commentedfixed with https://git.drupalcode.org/project/dify/-/merge_requests/2/commits
Comment #5
asterovim commentedComment #6
asterovim commented