Magento Coding Standard (PHPCS) report for vishalmehta/module-creator ===================================================================== Package version: 1.0.1 | Magento: 2.4.9 | Tested: 2026-06-03 36 errors, 113 warnings in 33 files Source/app/code/Namespace/Module/Helper/Data.php 3:1 error PHP syntax error: syntax error, unexpected token "<", expecting "{" (Generic.PHP.Syntax.PHPSyntax) 3:12 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 174:30 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 174:30 warning There must be one blank line after the namespace declaration (PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter) 174:90 error Cannot use "null" in namespace as it is reserved since PHP 7 (Magento2.NamingConvention.ReservedWords.ForbiddenAsNameSpace) 177:20 error Cannot use "false" in namespace as it is reserved since PHP 7 (Magento2.NamingConvention.ReservedWords.ForbiddenAsNameSpace) 283:5 error Curly brace syntax for accessing array elements and string offsets has been deprecated in PHP 7.4 and removed in PHP 8.0. Found: PerPage() { return abs( (int)$this->scopeConfig->getValue( self::XML_PATH_ITEMS_PER_PAGE, \Magento\Store\Model\ScopeInterface::SCOPE_STORE ) ); } (PHPCompatibility.Syntax.RemovedCurlyBraceArrayAccess.Removed) Source/app/code/Namespace/Module/Model/Module.php 3:1 error PHP syntax error: syntax error, unexpected token "<", expecting "{" (Generic.PHP.Syntax.PHPSyntax) 3:12 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 13:7 warning Class name "" is not in PascalCase format (Squiz.Classes.ValidClassName.NotCamelCaps) 28:24 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 28:24 warning There must be one blank line after the namespace declaration (PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter) Source/app/code/Namespace/Module/Model/ResourceModel/Module.php 3:1 error PHP syntax error: syntax error, unexpected token "<", expecting "{" (Generic.PHP.Syntax.PHPSyntax) 3:12 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 11:1 warning Duplicate class name "Module" found; first defined in /data/vendor/vishalmehta/module-creator/Source/app/code/Namespace/Module/Model/Module.php on line 13 (Generic.Classes.DuplicateClassName.Found) 11:7 warning Class name "" is not in PascalCase format (Squiz.Classes.ValidClassName.NotCamelCaps) Source/app/code/Namespace/Module/Model/ResourceModel/Module/Grid/Collection.php 3:1 error PHP syntax error: syntax error, unexpected token "<", expecting "{" (Generic.PHP.Syntax.PHPSyntax) 3:12 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 5:6 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 5:6 warning There must be one blank line after the namespace declaration (PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter) 13:27 warning Expected 1 space before "Module"; 0 found (PSR2.Classes.ClassDeclaration.SpaceBeforeName) 13:34 warning Expected 1 space before "Collection"; 0 found (PSR2.Classes.ClassDeclaration.SpaceBeforeName) Source/app/code/Namespace/Module/Model/ResourceModel/Module/Collection.php 3:1 error PHP syntax error: syntax error, unexpected token "<", expecting "{" (Generic.PHP.Syntax.PHPSyntax) 3:12 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 11:1 warning Duplicate class name "Collection" found; first defined in /data/vendor/vishalmehta/module-creator/Source/app/code/Namespace/Module/Model/ResourceModel/Module/Grid/Collection.php on line 13 (Generic.Classes.DuplicateClassName.Found) 47:24 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 47:24 warning There must be one blank line after the namespace declaration (PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter) 47:69 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 47:69 warning There must be one blank line after the namespace declaration (PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter) 47:125 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) Source/app/code/Namespace/Module/Model/DataProvider.php 3:1 error PHP syntax error: syntax error, unexpected token "<", expecting "{" (Generic.PHP.Syntax.PHPSyntax) 3:12 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 5:6 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 5:6 warning There must be one blank line after the namespace declaration (PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter) 41:8 warning $dataPersistor parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 41:8 warning $CollectionFactory parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 42:8 warning $storeManager parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 43:8 warning $meta parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 44:8 warning $data parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 45:8 warning $pool parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 48:12 warning Extra @param found in method annotation (Magento2.Annotation.MethodArguments.ExtraParam) Source/app/code/Namespace/Module/Model/ImageUploader.php 3:1 error PHP syntax error: syntax error, unexpected token "<", expecting "{" (Generic.PHP.Syntax.PHPSyntax) 3:12 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) Source/app/code/Namespace/Module/Model/Source/IsActive.php 3:1 error PHP syntax error: syntax error, unexpected token "<", expecting "{" (Generic.PHP.Syntax.PHPSyntax) 3:12 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 22:35 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 22:35 warning There must be one blank line after the namespace declaration (PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter) Source/app/code/Namespace/Module/Observer/ModuleValidatorObserver.php 3:1 error PHP syntax error: syntax error, unexpected token "<", expecting "{" (Generic.PHP.Syntax.PHPSyntax) 3:12 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 11:1 warning Duplicate class name "Module" found; first defined in /data/vendor/vishalmehta/module-creator/Source/app/code/Namespace/Module/Model/Module.php on line 13 (Generic.Classes.DuplicateClassName.Found) 11:7 warning Class name "ValidatorObserver" is not in PascalCase format (Squiz.Classes.ValidClassName.NotCamelCaps) 11:15 warning Expected 1 space before "ValidatorObserver"; 0 found (PSR2.Classes.ClassDeclaration.SpaceBeforeName) Source/app/code/Namespace/Module/Ui/Component/Listing/Column/EventsActions.php 3:1 error PHP syntax error: syntax error, unexpected token "<", expecting "{" (Generic.PHP.Syntax.PHPSyntax) 3:12 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) Source/app/code/Namespace/Module/Ui/Component/Listing/Column/Stores.php 3:1 error PHP syntax error: syntax error, unexpected token "<", expecting "{" (Generic.PHP.Syntax.PHPSyntax) 3:12 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) Source/app/code/Namespace/Module/Ui/Component/DataProvider.php 3:1 error PHP syntax error: syntax error, unexpected token "<", expecting "{" (Generic.PHP.Syntax.PHPSyntax) 3:12 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 16:1 warning Duplicate class name "DataProvider" found; first defined in /data/vendor/vishalmehta/module-creator/Source/app/code/Namespace/Module/Model/DataProvider.php on line 13 (Generic.Classes.DuplicateClassName.Found) Source/app/code/Namespace/Module/etc/acl.xml 8:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 10:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) Source/app/code/Namespace/Module/Controller/Adminhtml/Index/Index.php 3:1 error PHP syntax error: syntax error, unexpected token "<", expecting "{" (Generic.PHP.Syntax.PHPSyntax) 3:12 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) Source/app/code/Namespace/Module/Controller/Adminhtml/Index/Upload.php 3:1 error PHP syntax error: syntax error, unexpected token "<", expecting "{" (Generic.PHP.Syntax.PHPSyntax) 3:12 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 26:11 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 26:11 warning There must be one blank line after the namespace declaration (PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter) Source/app/code/Namespace/Module/Controller/Adminhtml/Index/NewAction.php 3:1 error PHP syntax error: syntax error, unexpected token "<", expecting "{" (Generic.PHP.Syntax.PHPSyntax) 3:12 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) Source/app/code/Namespace/Module/Controller/Adminhtml/Index/MassEnable.php 3:1 error PHP syntax error: syntax error, unexpected token "<", expecting "{" (Generic.PHP.Syntax.PHPSyntax) 3:12 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 9:6 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) Source/app/code/Namespace/Module/Controller/Adminhtml/Index/MassDisable.php 3:1 error PHP syntax error: syntax error, unexpected token "<", expecting "{" (Generic.PHP.Syntax.PHPSyntax) 3:12 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 9:6 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) Source/app/code/Namespace/Module/Controller/Adminhtml/Index/Delete.php 3:1 error PHP syntax error: syntax error, unexpected token "<", expecting "{" (Generic.PHP.Syntax.PHPSyntax) 3:12 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 5:6 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 5:6 warning There must be one blank line after the namespace declaration (PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter) 31:12 warning Extra @param found in method annotation (Magento2.Annotation.MethodArguments.ExtraParam) Source/app/code/Namespace/Module/Controller/Adminhtml/Index/Edit.php 3:1 error PHP syntax error: syntax error, unexpected token "<", expecting "{" (Generic.PHP.Syntax.PHPSyntax) 3:12 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) Source/app/code/Namespace/Module/Controller/Adminhtml/Index/Save.php 3:1 error PHP syntax error: syntax error, unexpected token "<", expecting "{" (Generic.PHP.Syntax.PHPSyntax) 3:12 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 5:6 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 5:6 warning There must be one blank line after the namespace declaration (PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter) 6:6 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 6:6 warning There must be one blank line after the namespace declaration (PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter) 42:8 warning $resourceConnection parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 42:8 warning $Factory parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 45:12 warning Extra @param found in method annotation (Magento2.Annotation.MethodArguments.ExtraParam) 81:19 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 81:19 warning There must be one blank line after the namespace declaration (PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter) Source/app/code/Namespace/Module/Controller/Adminhtml/Index/MassDelete.php 3:1 error PHP syntax error: syntax error, unexpected token "<", expecting "{" (Generic.PHP.Syntax.PHPSyntax) 3:12 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 9:6 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) Source/app/code/Namespace/Module/Controller/Router.php 3:1 error PHP syntax error: syntax error, unexpected token "<", expecting "{" (Generic.PHP.Syntax.PHPSyntax) 3:12 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 46:8 warning $storeManager parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 46:8 warning $Factory parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 47:8 warning $response parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 50:12 warning Extra @param found in method annotation (Magento2.Annotation.MethodArguments.ExtraParam) 54:11 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 54:11 warning There must be one blank line after the namespace declaration (PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter) 88:124 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong) Source/app/code/Namespace/Module/Controller/Index/Index.php 3:1 error PHP syntax error: syntax error, unexpected token "<", expecting "{" (Generic.PHP.Syntax.PHPSyntax) 3:12 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 10:1 warning Duplicate class name "Index" found; first defined in /data/vendor/vishalmehta/module-creator/Source/app/code/Namespace/Module/Controller/Adminhtml/Index/Index.php on line 13 (Generic.Classes.DuplicateClassName.Found) Source/app/code/Namespace/Module/Controller/Index/View.php 3:1 error PHP syntax error: syntax error, unexpected token "<", expecting "{" (Generic.PHP.Syntax.PHPSyntax) 3:12 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 5:6 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 5:6 warning There must be one blank line after the namespace declaration (PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter) 38:8 warning $resultPageFactory parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 38:8 warning $Factory parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 39:8 warning $registry parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 40:8 warning $filterProvider parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 43:12 warning Extra @param found in method annotation (Magento2.Annotation.MethodArguments.ExtraParam) Source/app/code/Namespace/Module/view/frontend/templates/view.phtml 7:1 error PHP syntax error: syntax error, unexpected token ">" (Generic.PHP.Syntax.PHPSyntax) Source/app/code/Namespace/Module/view/frontend/templates/module.phtml 7:1 error PHP syntax error: syntax error, unexpected token ">" (Generic.PHP.Syntax.PHPSyntax) Source/app/code/Namespace/Module/Block/Adminhtml/Module/Edit/SaveButton.php 3:1 error PHP syntax error: syntax error, unexpected token "<", expecting "{" (Generic.PHP.Syntax.PHPSyntax) 3:12 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) Source/app/code/Namespace/Module/Block/Adminhtml/Module/Edit/GenericButton.php 3:1 error PHP syntax error: syntax error, unexpected token "<", expecting "{" (Generic.PHP.Syntax.PHPSyntax) 3:12 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 33:5 error Curly brace syntax for accessing array elements and string offsets has been deprecated in PHP 7.4 and removed in PHP 8.0. Found: Id() { try { if ($this->context->getRequest()->getParam('_id')) { return $this->context->getRequest()->getParam('_id'); } else { return null; } } catch (NoSuchEntityException $e) { throw new Exception(__('Unable to find requested entity.')); } return null; } (PHPCompatibility.Syntax.RemovedCurlyBraceArrayAccess.Removed) Source/app/code/Namespace/Module/Block/Adminhtml/Module/Edit/DeleteButton.php 3:1 error PHP syntax error: syntax error, unexpected token "<", expecting "{" (Generic.PHP.Syntax.PHPSyntax) 3:12 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) Source/app/code/Namespace/Module/Block/Adminhtml/Module/Edit/BackButton.php 3:1 error PHP syntax error: syntax error, unexpected token "<", expecting "{" (Generic.PHP.Syntax.PHPSyntax) 3:12 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) Source/app/code/Namespace/Module/Block/Module.php 3:1 error PHP syntax error: syntax error, unexpected token "<", expecting "{" (Generic.PHP.Syntax.PHPSyntax) 3:12 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 8:1 warning Duplicate class name "Module" found; first defined in /data/vendor/vishalmehta/module-creator/Source/app/code/Namespace/Module/Model/Module.php on line 13 (Generic.Classes.DuplicateClassName.Found) 8:7 warning Class name "" is not in PascalCase format (Squiz.Classes.ValidClassName.NotCamelCaps) 27:8 warning $dataHelper parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 27:8 warning $CollectionFactory parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 28:8 warning $data parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 31:12 warning Extra @param found in method annotation (Magento2.Annotation.MethodArguments.ExtraParam) 33:11 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 33:11 warning There must be one blank line after the namespace declaration (PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter) 34:11 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 34:11 warning There must be one blank line after the namespace declaration (PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter) Source/app/code/Namespace/Module/Block/View.php 3:1 error PHP syntax error: syntax error, unexpected token "<", expecting "{" (Generic.PHP.Syntax.PHPSyntax) 3:12 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 10:1 warning Duplicate class name "View" found; first defined in /data/vendor/vishalmehta/module-creator/Source/app/code/Namespace/Module/Controller/Index/View.php on line 14 (Generic.Classes.DuplicateClassName.Found) 37:11 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 37:11 warning There must be one blank line after the namespace declaration (PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter) 62:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) 72:42 warning PHP keywords must be lowercase; expected "namespace" but found "Namespace" (Generic.PHP.LowerCaseKeyword.Found) 72:42 warning There must be one blank line after the namespace declaration (PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter) 85:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong)