Magento Coding Standard (PHPCS) report for snowio/magento2-extended-sales-repositories ====================================================================================== Package version: v3.2.0 | Magento: 2.4.9 | Tested: 2026-05-27 3 errors, 136 warnings in 24 files Exception/SnowCreditMemoException.php 10:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 12:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 17:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Plugin/ShipmentRepositoryExtensionPlugin.php 12:57 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 14:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 19:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 35:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Plugin/OrderRepositoryPlugin.php 13:39 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 14:49 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 15:35 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 28: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) 51:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 63:136 warning Line exceeds 120 characters; contains 136 characters (Generic.Files.LineLength.TooLong) 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) 83:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Model/RefundableItemsFilter.php 12:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 14:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 54:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 55:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 81:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 82:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 102:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Model/OrderRelatedData.php 12: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 Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 33:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 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) 52:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 53:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 60:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 61:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 71:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 72:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 79:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 80:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 90:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) 90:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody) Model/AvailableQuantityProvider.php 10:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 12:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 50:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 79:107 warning Short description should not be in multi lines (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Model/OrderRelatedDataRepository.php 20:86 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 22:79 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 24:58 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 26:102 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 26:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) 28:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 34: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) 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) 54:13 warning Expected "if (...) {\n"; found "if(...){\n" (PEAR.ControlStructures.ControlSignature.Found) 54:13 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 54:70 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 172:9 warning Expected "if (...) {\n"; found "if(...){\n" (PEAR.ControlStructures.ControlSignature.Found) 172:9 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 172:66 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 179:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 180:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 196:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Model/ExtendedCreditMemoFactory.php 14:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 42:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 50:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) 72:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 73:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Model/ShipOrderByIncrementId.php 12:51 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 13:57 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 15:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 21:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/ResourceModel/OrderRelatedData.php 9:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 18:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Model/ResourceModel/OrderRelatedData/Collection.php 11:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 20:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Model/CreditmemoByOrderIncrementId.php 93:9 warning Expected "if (...) {\n"; found "if(...) {\n" (PEAR.ControlStructures.ControlSignature.Found) 93:9 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 127:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 137:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 138:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 148:9 warning Expected "foreach (...) {\n"; found "foreach (...){\n" (PEAR.ControlStructures.ControlSignature.Found) 148:53 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 150:13 warning Expected "foreach (...) {\n"; found "foreach (...){\n" (PEAR.ControlStructures.ControlSignature.Found) 150:64 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 160:9 warning Expected "foreach (...) {\n"; found "foreach(...) {\n" (PEAR.ControlStructures.ControlSignature.Found) 160:9 warning Expected 1 space after FOREACH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 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) 180:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/ExtendedCreditMemoManagement.php 9:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 11:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 15:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 19:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 30:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 34:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 44:19 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 44:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) Model/LoadOrderByIncrementIdTrait.php 10:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) rector.php 26:2 warning Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany) registration.php 6:2 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) travis/prepare_phpunit_config.php 7:1 error Use of echo language construct is discouraged. (Magento2.Security.LanguageConstruct.DirectOutput) 9:22 warning The use of function realpath() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getRealPath() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 15:6 warning The use of function is_file() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isFile() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 16:5 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) 20:19 warning The use of function getenv() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 21:1 error Use of echo language construct is discouraged. (Magento2.Security.LanguageConstruct.DirectOutput) 22:17 error The use of function exec() is forbidden; use \Magento\Framework\Shell::execute() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 24:5 warning The use of function var_dump() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 25:5 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) Api/Data/OrderRelatedDataSearchResultsInterface.php 9:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 10:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 15:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 16:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 22:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Api/Data/OrderRelatedDataInterface.php 7:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 17:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 18:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 22:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 23:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 29:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 30:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 34:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 35:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 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) 46:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 47:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 53:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) 53:1 warning The closing brace for the interface must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody) Api/OrderRelatedDataRepositoryInterface.php 25:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 41:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 42:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 42:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 56:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Test/Integration/_files/order.php 291:65 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Test/Integration/Model/ShipmentRepositoryTest.php 13:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 17:61 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found) Test/Integration/Model/CreditmemoByOrderIncrementIdTest.php 47:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) Test/Integration/Model/ShipOrderByIncrementIdTest.php 19:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 27:61 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found) 52:5 warning Function closing brace must go on the next line following the body; found 1 blank lines before brace (PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose)