Magento Coding Standard (PHPCS) report for schumacherfm/magento-twig ==================================================================== Package version: 2.1.5 | Magento: 2.4.9 | Tested: 2026-05-27 29 warnings in 3 files Framework/View/TemplateEngine/Twig.php 23:1 warning There must be one blank line after the last USE statement; 2 found; (PSR2.Namespaces.UseDeclaration.SpaceAfterLastUse) 28:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 46:8 warning Short description duplicates class property name. (Magento2.Commenting.ClassPropertyPHPDocFormatting.AlreadyHaveMeaningfulNameVar) 53:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 68: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) 120:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 121:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 132:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 133:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 135:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 165:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 166:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 166:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 196:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 208:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 223:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody) Plugin/TemplatePlugin.php 11:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 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) Twig/Loader/FilesystemLoader.php 70:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 71:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 80:9 warning Expected "if (...) {\n"; found "if(...) {\n" (PEAR.ControlStructures.ControlSignature.Found) 80:9 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 82:133 warning Line exceeds 120 characters; contains 133 characters (Generic.Files.LineLength.TooLong) 89:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 90:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 112:17 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong) 121:5 warning Function closing brace must go on the next line following the body; found 1 blank lines before brace (PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose) 123:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody)