Magento Coding Standard (PHPCS) report for zero1/magento2-webapi-log ==================================================================== Package version: 1.1.1 | Magento: 2.4.9 | Tested: 2026-06-01 2 errors, 53 warnings in 5 files Plugin/Rest/Api.php 48:12 warning @param is not found for one or more params in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 66:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 67:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 100:17 warning Expected 1 space after SWITCH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 106:151 warning Line exceeds 120 characters; contains 151 characters (Generic.Files.LineLength.TooLong) 128:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 129:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 130:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 158:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 159:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 167:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 168:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 173:9 warning Expected "if (...) {\n"; found "if(...){\n" (PEAR.ControlStructures.ControlSignature.Found) 173:9 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 173:54 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 176:9 warning Expected "if (...) {\n"; found "if(...){\n" (PEAR.ControlStructures.ControlSignature.Found) 176:9 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 176:42 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 179:9 warning Expected 1 space after TRY keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 181:31 warning Expected 1 space after FUNCTION keyword; 0 found (Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction) 181:50 warning Expected 1 space before opening brace; found 0 (Squiz.Functions.MultiLineFunctionDeclaration.SpaceBeforeBrace) 199:9 warning Expected 1 space after closing brace; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace) 199:10 warning Expected 1 space after CATCH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 199:29 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) Model/Config.php 13: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 Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 29:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 39:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 40:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 47:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 48:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 55:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 56:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Model/Service/Resolver.php 35:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 36:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 74:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Model/Config/Source/Services.php 49:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 50:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 67:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 68:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Logger/Handler/Debug.php 41:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 42:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 57:19 error The use of function serialize() is forbidden; use \Magento\Framework\Serialize\SerializerInterface::serialize() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 70:27 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found) 71:19 warning The use of function fopen() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileOpen() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 73:13 error Silencing errors is discouraged; found: @chmod($url... (Generic.PHP.NoSilencedErrors.Discouraged) 73:14 warning The use of function chmod() is discouraged; use Magento\Framework\Filesystem\DriverInterface::changePermissions() or Magento\Framework\Filesystem\DriverInterface::changePermissionsRecursively() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 83:13 warning The use of function flock() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileLock() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 97:9 warning The use of function fwrite() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileWrite() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 100:13 warning The use of function flock() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileLock() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 104:13 warning The use of function fclose() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileClose() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 108:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 109:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 109:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 110:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)