Magento Coding Standard (PHPCS) report for vladflonta/magento2-webapi-log ========================================================================= Package version: 1.0.1 | Magento: 2.4.9 | Tested: 2026-05-27 2 errors, 35 warnings in 5 files Plugin/Rest/Api.php 53:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 54:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 87:17 warning Expected 1 space after SWITCH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 115:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 116:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 117:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 145:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 146:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 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) 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 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) 55:19 error The use of function serialize() is forbidden; use \Magento\Framework\Serialize\SerializerInterface::serialize() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 68:27 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found) 69:19 warning The use of function fopen() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileOpen() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 71:13 error Silencing errors is discouraged; found: @chmod($url... (Generic.PHP.NoSilencedErrors.Discouraged) 71: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) 81:13 warning The use of function flock() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileLock() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 95:9 warning The use of function fwrite() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileWrite() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 98:13 warning The use of function flock() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileLock() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 102:13 warning The use of function fclose() is discouraged; use Magento\Framework\Filesystem\DriverInterface::fileClose() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 106:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 107:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 107:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 108:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified)