Magento Coding Standard (PHPCS) report for mage-os/module-widgetkit =================================================================== Package version: 2.2.0 | Magento: 2.4.9 | Tested: 2026-09-15 225 errors, 544 warnings in 85 files Model/RichTextDecoder.php 21:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 42:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 50:24 warning The use of function html_entity_decode() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Model/PreviewEnvironment.php 27:9 warning Expected "if (...) {\n"; found "if (...) { " (PEAR.ControlStructures.ControlSignature.Found) 27:28 warning Newline required after opening brace (Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace) 27:48 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 33:13 warning Expected "if (...) {\n"; found "if (...) { " (PEAR.ControlStructures.ControlSignature.Found) 33:25 warning Newline required after opening brace (Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace) 33:87 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 36:17 warning Newline required after opening brace (Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace) 36:65 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 36:65 warning Expected 1 space after closing brace; newline found (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace) 37:21 warning Newline required after opening brace (Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace) 37:46 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) Model/PreviewThemeResolver.php 57:17 warning Expected "if (...) {\n"; found "if (...) { " (PEAR.ControlStructures.ControlSignature.Found) 57:41 warning Newline required after opening brace (Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace) 57:72 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 58:15 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 63:9 warning Expected "if (...) {\n"; found "if (...) { " (PEAR.ControlStructures.ControlSignature.Found) 63:22 warning Newline required after opening brace (Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace) 63:93 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) Model/Css/ModernColorDowngrader.php 214:13 warning $rgba parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 304:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 310:13 warning int duplicate found in method annotation (Magento2.Annotation.MethodArguments.DuplicateParam) 310:13 warning $c1 parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 310:13 warning $c2 parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 326:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 332:13 warning int duplicate found in method annotation (Magento2.Annotation.MethodArguments.DuplicateParam) 332:13 warning $c1 parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 332:13 warning $c2 parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 347:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 355:13 warning float duplicate found in method annotation (Magento2.Annotation.MethodArguments.DuplicateParam) 355:13 warning $comp1 parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 355:13 warning $comp2 parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/PreviewStylesheet.php 66:14 warning The use of function is_file() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isFile() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 76:14 warning The use of function is_file() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isFile() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 76:37 warning The use of function filemtime() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 76:61 warning The use of function filemtime() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 80:52 warning The use of function basename() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 84:23 warning The use of function filemtime() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 183:14 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 184:13 warning The use of function mkdir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::createDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 200:43 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 211:13 warning The use of function file_put_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 270:9 warning The use of function file_put_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Model/WidgetOutput.php 7:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 9:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 15:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 23:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 38:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) Model/Config/Source/LucideIcon.php 38:21 warning The use of function glob() is discouraged; use Magento\Framework\Filesystem\Glob::glob() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 42:25 warning The use of function basename() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Observer/RegisterModuleForHyvaConfig.php 17:8 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) view/adminhtml/templates/product-slider-full-aside.phtml 18:9 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 20:24 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 21:15 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 22:13 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 22:20 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) view/adminhtml/templates/grid-stacked-v2.phtml 12:20 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 13:26 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 16:9 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 17:22 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 18:60 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 19:86 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 20:61 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 22:22 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 23:135 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 26:11 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 27:24 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 28:13 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 28:20 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) view/adminhtml/templates/page/js/require_js.phtml 12:17 warning Short echo tag syntax must be used; expected "escapeHtml() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 89:42 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 108:41 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 112:43 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 127:102 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 136:49 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 136:56 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 145:43 warning Each PHP statement must be on a line by itself (Generic.Formatting.DisallowMultipleStatements.SameLine) 152:37 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 159:37 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 169:5 warning Line indented incorrectly; expected at least 8 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.Incorrect) 176:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 177:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 178:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 179:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) 180:9 warning Line indented incorrectly; expected 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 181:13 warning Line indented incorrectly; expected at least 16 spaces, found 12 (Generic.WhiteSpace.ScopeIndent.Incorrect) 182:13 warning Line indented incorrectly; expected 16 spaces, found 12 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 185:36 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 185:70 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 187:63 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 188:37 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 189:59 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 196:32 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 197:33 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 201:35 warning Each PHP statement must be on a line by itself (Generic.Formatting.DisallowMultipleStatements.SameLine) 208:13 warning Line indented incorrectly; expected 8 spaces, found 12 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 209:9 warning Line indented incorrectly; expected 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 212:37 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 214:59 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 218:35 warning Each PHP statement must be on a line by itself (Generic.Formatting.DisallowMultipleStatements.SameLine) 225:31 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 300:80 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 300:111 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) view/base/templates/widget/hyva/slider.phtml 5:60 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 6:20 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 7:26 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 9:5 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 10:18 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 11:6 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 12:78 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 13:53 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 16:18 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 18:55 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 22:5 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 22:12 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) view/base/templates/widget/hyva/product-grid.phtml 2:60 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 3:20 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 4:26 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 6:5 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 7:18 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 8:6 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 9:78 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 10:53 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 13:18 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 15:55 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 19:5 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 19:12 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) view/base/templates/widget/hyva/tab.phtml 2:60 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 3:20 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 4:26 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 6:5 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 7:18 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 8:6 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 9:78 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 10:53 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 13:18 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 15:55 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 19:5 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 19:12 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) view/base/templates/widget/hyva/grid.phtml 2:60 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 3:20 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 4:26 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 6:5 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 7:18 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 8:6 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 9:78 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 10:53 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 13:18 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 15:55 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 19:5 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 19:12 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) view/base/templates/widget/hyva/accordion/template.phtml 13:11 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 14:11 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 31:30 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 45:18 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 61:19 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 80:31 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 96:80 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 96:111 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) view/base/templates/widget/hyva/banner-hero-left.phtml 3:1 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 5:5 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 5:12 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) view/base/templates/widget/hyva/grid-stacked/template-v3.phtml 16:11 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 17:11 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 32:18 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 34:19 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) view/base/templates/widget/hyva/grid-stacked/template-v2.phtml 15:11 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 16:11 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) view/base/templates/widget/hyva/grid-stacked/template-v1.phtml 11:11 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 12:11 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) view/base/templates/widget/hyva/grid/template.phtml 11:11 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 12:11 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) Block/Widgets/ProductWidget.php 1:1 warning End of line character is invalid; expected "\n" but found "\r\n" (Generic.Files.LineEndings.InvalidEOLChar) Block/Adminhtml/ProductGrid/Item.php 19:174 warning Line exceeds 120 characters; contains 174 characters (Generic.Files.LineLength.TooLong) 35:174 warning Line exceeds 120 characters; contains 174 characters (Generic.Files.LineLength.TooLong) 51:174 warning Line exceeds 120 characters; contains 174 characters (Generic.Files.LineLength.TooLong) Block/Adminhtml/Accordion/Item.php 20:134 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong) Block/Adminhtml/Tab/Item.php 22:134 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong) Block/Adminhtml/Slideshow/Item.php 14:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) 102:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody) Block/Adminhtml/Grid/Item.php 14:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) 41:134 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong) 84:174 warning Line exceeds 120 characters; contains 174 characters (Generic.Files.LineLength.TooLong) 99:174 warning Line exceeds 120 characters; contains 174 characters (Generic.Files.LineLength.TooLong) 115:174 warning Line exceeds 120 characters; contains 174 characters (Generic.Files.LineLength.TooLong) 131:174 warning Line exceeds 120 characters; contains 174 characters (Generic.Files.LineLength.TooLong) 147:174 warning Line exceeds 120 characters; contains 174 characters (Generic.Files.LineLength.TooLong) 163:174 warning Line exceeds 120 characters; contains 174 characters (Generic.Files.LineLength.TooLong) Block/Adminhtml/InformationGrid/Item.php 60:138 warning Line exceeds 120 characters; contains 138 characters (Generic.Files.LineLength.TooLong) 120:21 warning The use of function glob() is discouraged; use Magento\Framework\Filesystem\Glob::glob() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 124:25 warning The use of function basename() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Block/Adminhtml/Marquee/Item.php 33:134 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong) Block/Adminhtml/Slider/Item.php 14:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) 84:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody)