Magento Coding Standard (PHPCS) report for olegkoval/magento2-regenerate-url-rewrites ===================================================================================== Package version: 1.7.2 | Magento: 2.4.9 | Tested: 2026-05-26 12 errors, 102 warnings in 6 files Helper/Regenerate.php 39: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) 61:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 62:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 69:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 70:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 126:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Model/AbstractRegenerateRewrites.php 81: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) 98:8 warning $storeId parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 98:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 101:12 warning $options parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 106:14 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 106:14 warning Visibility must be declared on method "regenerate" (Squiz.Scope.MethodScope.Missing) 110:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 110:34 warning There must be exactly one blank line between lines short and long descriptions (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 163:13 error Use of echo language construct is discouraged. (Magento2.Security.LanguageConstruct.DirectOutput) 189:9 error Use of echo language construct is discouraged. (Magento2.Security.LanguageConstruct.DirectOutput) 194:13 error Use of echo language construct is discouraged. (Magento2.Security.LanguageConstruct.DirectOutput) 198:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 199:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 210:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 211:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 216:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) 222:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 223:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 295:91 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong) 305:13 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) 328:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 329:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 343:13 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed) 346:26 warning The use of function pathinfo() is discouraged; use Magento\Framework\Filesystem\Io\File::getPathInfo() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 397:117 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) 408:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 420:15 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) Model/RegenerateProductRewrites.php 86:49 error Proxies and interceptors MUST never be explicitly requested in constructors. (Magento2.Classes.DiscouragedDependencies.ConstructorProxyInterceptor) 87:49 error Proxies and interceptors MUST never be explicitly requested in constructors. (Magento2.Classes.DiscouragedDependencies.ConstructorProxyInterceptor) 90: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) 104:12 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 123:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 124:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 181:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 182:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 182:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 219:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 228:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 229:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 233:13 warning The use of function is_null() is discouraged; use strict comparison "=== null"() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 240:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 241:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 245:13 warning The use of function is_null() is discouraged; use strict comparison "=== null"() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 252:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 253:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 257:13 warning The use of function is_null() is discouraged; use strict comparison "=== null"() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) Model/RegenerateCategoryRewrites.php 91:50 error Proxies and interceptors MUST never be explicitly requested in constructors. (Magento2.Classes.DiscouragedDependencies.ConstructorProxyInterceptor) 92:50 error Proxies and interceptors MUST never be explicitly requested in constructors. (Magento2.Classes.DiscouragedDependencies.ConstructorProxyInterceptor) 93:50 error Proxies and interceptors MUST never be explicitly requested in constructors. (Magento2.Classes.DiscouragedDependencies.ConstructorProxyInterceptor) 96: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) 193:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 203:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 286:13 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) 287:65 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found) 329:13 warning The use of function is_null() is discouraged; use strict comparison "=== null"() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 343:13 warning The use of function is_null() is discouraged; use strict comparison "=== null"() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 349:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 354:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) Console/Command/RegenerateUrlRewritesAbstract.php 24:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 25:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 26:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 27:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 28:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 29:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 30:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 31:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 32:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 33:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 34:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 35:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 36:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 37:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 96:36 error Proxies and interceptors MUST never be explicitly requested in constructors. (Magento2.Classes.DiscouragedDependencies.ConstructorProxyInterceptor) 102: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) 155:61 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found) 180:9 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed) 207:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 208:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 251:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 251:20 warning Short description should not be in multi lines (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 257:13 error The use of function shell_exec() is forbidden (Magento2.Security.InsecureFunction.Found) 272:17 error The use of function shell_exec() is forbidden (Magento2.Security.InsecureFunction.Found) 275:17 error The use of function shell_exec() is forbidden (Magento2.Security.InsecureFunction.Found) 278:149 warning Line exceeds 120 characters; contains 149 characters (Generic.Files.LineLength.TooLong) Console/Command/RegenerateUrlRewrites.php 33:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 34:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 118:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 124:9 warning The use of function set_time_limit() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 147:15 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 147:45 warning Newline required after opening brace (Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace) 147:46 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 152:140 warning Line exceeds 120 characters; contains 140 characters (Generic.Files.LineLength.TooLong) 180:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 180:20 warning Short description should not be in multi lines (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 188:13 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) 192:17 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found) 198:129 warning Line exceeds 120 characters; contains 129 characters (Generic.Files.LineLength.TooLong) 280:13 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) 294:13 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) 324:13 warning The use of function is_null() is discouraged; use strict comparison "=== null"() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 326:9 warning Expected 1 space after closing brace; newline found (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace) 328:9 warning Expected "} elseif (...) {\n"; found "}\n // we will re-generate URL only in this specific store (if it exists)\n elseif (...) {\n" (PEAR.ControlStructures.ControlSignature.Found) 330:56 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found) 336:9 warning Expected 1 space after closing brace; newline found (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace) 338:9 warning Expected "} else {\n"; found "}\n // display error if user set some incorrect value\n else {\n" (PEAR.ControlStructures.ControlSignature.Found) 354:1 warning Multi-line function call not indented correctly; expected 12 spaces but found 16 (PSR2.Methods.FunctionCallSignature.Indent) 355:1 warning Multi-line function call not indented correctly; expected 12 spaces but found 16 (PSR2.Methods.FunctionCallSignature.Indent) 360:1 warning Multi-line function call not indented correctly; expected 8 spaces but found 12 (PSR2.Methods.FunctionCallSignature.Indent)