Magento Coding Standard (PHPCS) report for magebitcom/module-documentation ========================================================================== Package version: v0.0.1 | Magento: 2.4.9 | Tested: 2026-05-27 35 warnings in 8 files ViewModel/Sidebar.php 142:17 warning The use of function pathinfo() is discouraged; use Magento\Framework\Filesystem\Io\File::getPathInfo() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) Model/MarkdownRenderer.php 20:46 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 67:13 warning $context parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 74:23 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 97:57 warning The use of function htmlspecialchars() is discouraged; use \Magento\Framework\Escaper->escapeHtml() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 97:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) Model/DocumentationProvider.php 95:13 warning mixed> duplicate found in method annotation (Magento2.Annotation.MethodArguments.DuplicateParam) 95:13 warning $feature parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 95:13 warning $moduleMeta parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 145:13 warning mixed> duplicate found in method annotation (Magento2.Annotation.MethodArguments.DuplicateParam) 145:13 warning $changelog parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 145:13 warning $moduleMeta parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 162:33 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 178:23 warning The use of function basename() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 248:53 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) 299:21 warning The use of function realpath() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getRealPath() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 317:20 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 357:13 warning $structure parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/FileSystemScanner.php 45:25 warning The use of function basename() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 59:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 73:21 warning The use of function realpath() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getRealPath() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 74:27 warning The use of function realpath() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getRealPath() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 142:13 warning $categories parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 171:21 warning The use of function pathinfo() is discouraged; use Magento\Framework\Filesystem\Io\File::getPathInfo() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) Model/SearchService.php 106:13 warning $structure parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 169:17 warning The use of function pathinfo() is discouraged; use Magento\Framework\Filesystem\Io\File::getPathInfo() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) view/adminhtml/templates/documentation/sidebar.phtml 23:126 warning Line exceeds 120 characters; contains 127 characters (Generic.Files.LineLength.TooLong) 41:180 warning Line exceeds 120 characters; contains 181 characters (Generic.Files.LineLength.TooLong) 58:151 warning Line exceeds 120 characters; contains 152 characters (Generic.Files.LineLength.TooLong) 67:142 warning Line exceeds 120 characters; contains 142 characters (Generic.Files.LineLength.TooLong) 68:156 warning Line exceeds 120 characters; contains 157 characters (Generic.Files.LineLength.TooLong) 70:118 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong) 76:132 warning Line exceeds 120 characters; contains 133 characters (Generic.Files.LineLength.TooLong) Api/SearchServiceInterface.php 27:12 warning $additionalParams parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Api/MarkdownRendererInterface.php 22:12 warning $context parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing)