Magento Coding Standard (PHPCS) report for two-inc/magento2 =========================================================== Package version: 3.0.0 | Magento: 2.4.9 | Tested: 2026-09-21 30 errors, 428 warnings in 92 files Service/Payment/OrderService.php 122:8 warning $request parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 123:8 warning $transactionBuilder parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 124:8 warning $paymentTransactionRepository parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 125:8 warning $orderPaymentRepository parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 126:8 warning $orderRepository parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 128:12 warning $brandRegistry parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 293:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 311:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 352:8 warning $orderId parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 355:13 warning $order parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Service/Fx/RateTableProvider.php 262:13 warning $cacheKey parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 313:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) Service/Invoice/UploadService.php 323:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) 417:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) 421:21 warning The use of function sleep() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Service/Order.php 659:13 warning $taxClassId parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 1169:117 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) 1235:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 1243:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 1377:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 1378:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) Service/Fee/FeeLineProviderPool.php 55:15 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) Service/Order/LifecycleEventDispatcher.php 59:12 warning $order parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 67:12 warning $order parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 75:12 warning $order parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 83:12 warning $order parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 91:13 warning $event parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Service/Order/MinimumOrderGate.php 72:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 81:12 warning $platformMinimum parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 81:12 warning $quote parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 81:12 warning $merchantMinimum parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 120:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 125:8 warning $failClosedOnUnconvertible parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 126:8 warning $floor parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 128:13 warning $quote parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 128:13 warning $minimum parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 174:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 177:13 warning $methodCode parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 177:13 warning $floor parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 257:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 264:12 warning $minimumOrder parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 264:12 warning $currency parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Service/Order/SurchargeCalculator.php 161:21 error The use of function md5() is forbidden; use improved hash functions (SHA-256, SHA-512 etc.)() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 161:25 error The use of function serialize() is forbidden; use \Magento\Framework\Serialize\SerializerInterface::serialize() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 193:73 error The use of function serialize() is forbidden; use \Magento\Framework\Serialize\SerializerInterface::serialize() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 226:129 warning Line exceeds 120 characters; contains 129 characters (Generic.Files.LineLength.TooLong) 616:13 warning $amount parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Service/Order/ComposeOrder.php 235:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) Service/Order/SurchargeTaxCalculator.php 263:13 warning $quote parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Service/Order/MerchantMinimumResolver.php 46:12 warning $platform parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Service/Order/TermSurchargePreview.php 76:12 warning $quote parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 76:12 warning $basis parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Service/RateLimiter.php 212:28 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 265:28 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 267:19 error Silencing errors is discouraged; found: @inet_pton($address... (Generic.PHP.NoSilencedErrors.Discouraged) 281:20 warning $address parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 281:28 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 292:28 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 298:27 error Silencing errors is discouraged; found: @inet_pton($rule... (Generic.PHP.NoSilencedErrors.Discouraged) 300:45 error Silencing errors is discouraged; found: @inet_pton($address... (Generic.PHP.NoSilencedErrors.Discouraged) 311:26 error Silencing errors is discouraged; found: @inet_pton($address... (Generic.PHP.NoSilencedErrors.Discouraged) 312:25 error Silencing errors is discouraged; found: @inet_pton($subnet... (Generic.PHP.NoSilencedErrors.Discouraged) Service/Merchant/RecordRefresher.php 86:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 90:12 warning $identities parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Service/Merchant/FeeRatesProvider.php 95:16 warning Line exceeds 120 characters; contains 164 characters (Generic.Files.LineLength.TooLong) 144:16 warning Line exceeds 120 characters; contains 132 characters (Generic.Files.LineLength.TooLong) 176:16 warning Line exceeds 120 characters; contains 139 characters (Generic.Files.LineLength.TooLong) 222:16 warning Line exceeds 120 characters; contains 132 characters (Generic.Files.LineLength.TooLong) Service/Merchant/ApiKeyStatus.php 286:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 366:28 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) Service/Merchant/RecordProvider.php 204:12 warning $mode parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 290:13 warning $cacheKey parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 372:13 warning $cacheKey parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Service/Merchant/ApiKeyStatusMessage.php 47:12 warning $result parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 73:153 warning Line exceeds 120 characters; contains 153 characters (Generic.Files.LineLength.TooLong) 79:199 warning Line exceeds 120 characters; contains 199 characters (Generic.Files.LineLength.TooLong) 85:244 warning Line exceeds 120 characters; contains 244 characters (Generic.Files.LineLength.TooLong) 91:174 warning Line exceeds 120 characters; contains 174 characters (Generic.Files.LineLength.TooLong) Plugin/Magento/Framework/Cache/Config/BrandCacheTypeLabels.php 31:12 warning $subject parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 44:12 warning $subject parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Plugin/Magento/Quote/Model/Cart/CartTotalRepositoryAppendSurcharge.php 60:12 warning $subject parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Plugin/Magento/Config/Model/Config/Structure/Reader/SynthesiseBrandAdminForm.php 84:21 warning Class properties must have type declaration using @var tag. (Magento2.Commenting.ClassPropertyPHPDocFormatting.MissingVar) 140:139 warning Line exceeds 120 characters; contains 139 characters (Generic.Files.LineLength.TooLong) 212:140 warning Line exceeds 120 characters; contains 140 characters (Generic.Files.LineLength.TooLong) 232:14 warning The use of function is_file() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isFile() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 232:33 warning The use of function is_readable() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isReadable() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 236:21 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 544:16 warning The use of function htmlspecialchars() is discouraged; use \Magento\Framework\Escaper->escapeHtml() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) Plugin/Magento/Checkout/Block/LayoutProcessor/SynthesiseBrandRenderers.php 79:9 warning Line indented incorrectly; expected at least 12 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) Plugin/Config/Structure/HideFieldsUnlessConfigured.php 26:15 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) 28:12 warning $scopeConfig parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 40:12 warning $subject parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Plugin/Config/RefuseUnusableCustomTerm.php 99:13 warning $field parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/BrandOverlayRegistry.php 23:12 warning $overlays parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Webapi/UpstreamEnvelopeTrait.php 32:13 warning $result parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Brand/Loader.php 51:18 warning The use of function is_file() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isFile() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) Model/Brand/Descriptor.php 19:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 42:15 warning Line exceeds 120 characters; contains 217 characters (Generic.Files.LineLength.TooLong) 43:15 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) 44:15 warning Line exceeds 120 characters; contains 132 characters (Generic.Files.LineLength.TooLong) 45:8 warning $surchargeRoundingSteps parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 45:15 warning Line exceeds 120 characters; contains 185 characters (Generic.Files.LineLength.TooLong) 46:8 warning $intentApprovedNotice parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 46:15 warning Line exceeds 120 characters; contains 166 characters (Generic.Files.LineLength.TooLong) 47:8 warning $intentApprovedNoticeEnabled parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 47:15 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) 48:8 warning $aboutUrl parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 48:15 warning Line exceeds 120 characters; contains 150 characters (Generic.Files.LineLength.TooLong) 49:8 warning $checkoutSubtitleFaqUrl parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 49:15 warning Line exceeds 120 characters; contains 185 characters (Generic.Files.LineLength.TooLong) 50:8 warning $intentDeclinedNotice parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 50:15 warning Line exceeds 120 characters; contains 291 characters (Generic.Files.LineLength.TooLong) 52:12 warning $checkoutSubtitle parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Two.php 200:8 warning $paymentData parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 201:8 warning $scopeConfig parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 202:8 warning $logger parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 203:8 warning $urlCookie parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 204:8 warning $composeOrder parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 205:8 warning $composeRefund parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 206:8 warning $composeCapture parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 207:8 warning $historyFactory parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 208:8 warning $orderStatusHistoryRepository parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 210:8 warning $apiAdapter parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 211:8 warning $logRepository parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 212:8 warning $minimumOrderGate parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 213:8 warning $minimumOrderProvider parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 214:8 warning $merchantMinimumResolver parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 215:8 warning $configDataCollectionFactory parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 216:8 warning $apiKeyStatus parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 217:8 warning $surchargeCalculator parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 218:8 warning $feeQuoteGate parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 219:8 warning $lifecycleEvents parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 220:8 warning $buyerCountryResolver parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 221:8 warning $supportedCountriesProvider parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 222:8 warning $settingsProvider parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 223:8 warning $resource parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 225:12 warning $brandRegistry parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 225:12 warning $orderRepository parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 452:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 456:13 warning $traceID parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 467:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 829:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 1092:13 warning $platform parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 1146:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) 1297:13 warning $displayMinimum parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Ui/ConfigProvider.php 131:12 warning $configRepository parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 274:125 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) 332:163 warning Line exceeds 120 characters; contains 163 characters (Generic.Files.LineLength.TooLong) 337:25 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) Model/Ui/CheckoutTileCopy.php 46:27 warning The use of function htmlspecialchars() is discouraged; use \Magento\Framework\Escaper->escapeHtml() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 68:38 warning The use of function parse_url() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 95:302 warning Line exceeds 120 characters; contains 307 characters (Generic.Files.LineLength.TooLong) 96:136 warning Line exceeds 120 characters; contains 150 characters (Generic.Files.LineLength.TooLong) Model/Ui/AnchorOnlyHtmlEscaper.php 86:16 warning The use of function html_entity_decode() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 87:17 warning The use of function html_entity_decode() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 99:16 warning The use of function htmlspecialchars() is discouraged; use \Magento\Framework\Escaper->escapeHtml() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 110:17 warning The use of function html_entity_decode() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 122:33 warning The use of function htmlspecialchars() is discouraged; use \Magento\Framework\Escaper->escapeHtml() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) Model/Config/Comment/MerchantMinimumOrder.php 75:17 warning Line exceeds 120 characters; contains 148 characters (Generic.Files.LineLength.TooLong) 92:161 warning Line exceeds 120 characters; contains 161 characters (Generic.Files.LineLength.TooLong) 130:157 warning Line exceeds 120 characters; contains 157 characters (Generic.Files.LineLength.TooLong) Model/Config/Repository.php 139:12 warning $scopeConfig parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 381:23 warning The use of function getenv() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 397:23 warning The use of function getenv() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 411:6 warning Expected 1 space after asterisk; 0 found (Squiz.Commenting.DocCommentAlignment.NoSpaceAfterStar) 419:17 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 420:24 error "include" statement detected. File manipulations are discouraged. Variables inside are insecure. (Magento2.Security.IncludeFile.FoundIncludeFile) 446:21 warning The use of function getenv() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 467:23 warning The use of function getenv() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 651:131 warning Line exceeds 120 characters; contains 131 characters (Generic.Files.LineLength.TooLong) 960:52 warning The use of function gettype() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Model/Config/StoredRate.php 21:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) Model/Config/AdminScope.php 36:19 warning $scope parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 36:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 79:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 85:28 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) Model/Config/StoredTerm.php 23:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 39:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 55:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) Model/Config/Backend/PaymentTermsCheckboxes.php 64:9 warning Line exceeds 120 characters; contains 128 characters (Generic.Files.LineLength.TooLong) Model/Config/Backend/CustomHeaders.php 64:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 70:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 82:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 99:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 197:13 warning $row parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Config/Backend/DefaultPaymentTerm.php 43:9 warning Line exceeds 120 characters; contains 128 characters (Generic.Files.LineLength.TooLong) Model/Config/Backend/Subtitle.php 61:17 warning The use of function htmlspecialchars() is discouraged; use \Magento\Framework\Escaper->escapeHtml() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 62:17 warning The use of function htmlspecialchars() is discouraged; use \Magento\Framework\Escaper->escapeHtml() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) Model/Config/Backend/SurchargeGrid.php 232:13 warning $groups parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 254:13 warning $groups parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 302:13 warning $groups parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 323:13 warning $postedDays parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 404:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) Model/Config/Backend/ProductButtonEnabled.php 55:58 warning The use of function gettype() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Model/Config/Backend/TrustedProxies.php 54:28 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 57:23 error Silencing errors is discouraged; found: @inet_pton($entry... (Generic.PHP.NoSilencedErrors.Discouraged) 59:55 error Silencing errors is discouraged; found: @inet_ntop($packed... (Generic.PHP.NoSilencedErrors.Discouraged) 63:19 error Silencing errors is discouraged; found: @inet_pton($subnet... (Generic.PHP.NoSilencedErrors.Discouraged) 75:16 error Silencing errors is discouraged; found: @inet_ntop($packed... (Generic.PHP.NoSilencedErrors.Discouraged) Model/Config/Source/SurchargeType.php 25:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) Model/Config/Source/FulfillOrderStatus.php 24:8 warning $configRepository parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 26:12 warning $orderStatusCollection parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Config/Source/SurchargeTaxClass.php 149:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) Model/Total/Creditmemo/OtherCharges.php 273:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody) Model/Provenance.php 121:32 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 123:18 warning The use of function is_file() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isFile() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 130:24 error Silencing errors is discouraged; found: @file_get_contents($gitFile... (Generic.PHP.NoSilencedErrors.Discouraged) 130:25 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 157:17 error Silencing errors is discouraged; found: @realpath($modulePath... (Generic.PHP.NoSilencedErrors.Discouraged) 157:18 warning The use of function realpath() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getRealPath() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 177:32 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 178:25 error Silencing errors is discouraged; found: @file_get_contents($dir... (Generic.PHP.NoSilencedErrors.Discouraged) 178:26 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 212:32 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 215:20 error Silencing errors is discouraged; found: @file_get_contents($dir... (Generic.PHP.NoSilencedErrors.Discouraged) 215:21 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Observer/ExpressAddSucceeded.php 59:26 warning The use of function parse_url() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 60:9 warning The use of function parse_str() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Observer/InvoiceSurchargeRunningTotal.php 13:1 warning There must be one blank line after the last USE statement; 0 found; (PSR2.Namespaces.UseDeclaration.SpaceAfterLastUse) Observer/SalesOrderCancelAfter.php 112:159 warning Line exceeds 120 characters; contains 159 characters (Generic.Files.LineLength.TooLong) Observer/CreditmemoSurchargeRunningTotal.php 13:1 warning There must be one blank line after the last USE statement; 0 found; (PSR2.Namespaces.UseDeclaration.SpaceAfterLastUse) Setup/Recurring.php 50:13 error Silencing errors is discouraged; found: @opcache_reset()... (Generic.PHP.NoSilencedErrors.Discouraged) Setup/Patch/Data/CollapseAddressSearchToggle.php 150:13 warning $code parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Setup/Patch/Data/PendingPaymentStatus.php 38:12 warning $brandRegistry parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Setup/Patch/Data/OrderStatuses.php 38:12 warning $brandRegistry parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 129:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 142:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) etc/module.xml 10:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 11:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 19:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) Controller/Payment/Confirm.php 41:5 warning Expected 5 spaces before asterisk; 4 found (Squiz.Commenting.DocCommentAlignment.SpaceBeforeStar) 131:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) Controller/Payment/Verificationfailed.php 42:12 warning $configRepository parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 42:12 warning $brandRegistry parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Controller/Payment/Cancel.php 43:12 warning $configRepository parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 43:12 warning $brandRegistry parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Controller/Adminhtml/Config/Fees.php 180:15 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) Controller/Adminhtml/Config/RefreshMerchantRecord.php 86:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) 97:191 warning Line exceeds 120 characters; contains 191 characters (Generic.Files.LineLength.TooLong) 107:180 warning Line exceeds 120 characters; contains 180 characters (Generic.Files.LineLength.TooLong) 126:13 warning $message parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Controller/Express/Confirm.php 211:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) view/frontend/templates/product/express-button.phtml 16:62 warning Using escapeHtmlAttr on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 24:65 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 38:66 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) view/frontend/templates/product/promo-message.phtml 10:60 warning Using escapeHtmlAttr on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 17:64 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 19:59 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) view/frontend/web/template/payment/gateway_method.html 1:1 warning Avoid using closing slash with void tags, this can lead to unexpected behavior - "" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements) 1:1 warning Avoid using closing slash with void tags, this can lead to unexpected behavior - "" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements) 1:1 warning Avoid using closing slash with void tags, this can lead to unexpected behavior - "" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements) 1:1 warning Avoid using closing slash with void tags, this can lead to unexpected behavior - "" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements) 1:1 warning Avoid using closing slash with void tags, this can lead to unexpected behavior - "" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements) 1:1 warning Avoid using closing slash with void tags, this can lead to unexpected behavior - "" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements) 1:1 warning Avoid using closing slash with void tags, this can lead to unexpected behavior - "" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements) 1:1 warning Avoid using closing slash with void tags, this can lead to unexpected behavior - "" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements) view/frontend/web/js/model/sole-trader.js 424:1 error PHP syntax error: Unmatched '}' (Generic.PHP.Syntax.PHPSyntax) 424:25 warning Short PHP opening tag used; expected "" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements) Api/CurrencyRatesProviderInterface.php 34:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) Api/Fee/FeeLineProviderInterface.php 43:15 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) Api/ApiResult.php 13:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 27:12 warning $status parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Api/ApiCall.php 14:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) 31:12 warning $method parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Block/Adminhtml/Order/View.php 21:5 warning Expected 5 spaces before asterisk; 4 found (Squiz.Commenting.DocCommentAlignment.SpaceBeforeStar) 37:8 warning $adapter parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 39:8 warning $context parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 40:8 warning $registry parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 41:8 warning $salesConfig parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 42:8 warning $reorderHelper parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 44:12 warning $brandRegistry parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 44:12 warning $apiAdapter parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Block/Adminhtml/System/Config/Button/ErrorCheck.php 40:12 warning $logger parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Block/Adminhtml/System/Config/Field/HealthChecklist.php 244:20 warning $candidates parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 244:28 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 260:13 warning $floor parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Block/Adminhtml/System/Config/Field/SurchargeGrid.php 234:15 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 479:15 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 489:15 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) Block/Adminhtml/System/Config/Field/Version.php 220:32 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 221:25 error Silencing errors is discouraged; found: @file_get_contents($dir... (Generic.PHP.NoSilencedErrors.Discouraged) 221:26 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 262:20 error Silencing errors is discouraged; found: @file_get_contents($dir... (Generic.PHP.NoSilencedErrors.Discouraged) 262:21 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 287:22 error Silencing errors is discouraged; found: @filemtime($modulePath... (Generic.PHP.NoSilencedErrors.Discouraged) 287:23 warning The use of function filemtime() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 297:22 error Silencing errors is discouraged; found: @filemtime($marker... (Generic.PHP.NoSilencedErrors.Discouraged) 297:23 warning The use of function filemtime() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Block/Adminhtml/System/Config/Field/Header.php 23:5 warning Expected 5 spaces before asterisk; 4 found (Squiz.Commenting.DocCommentAlignment.SpaceBeforeStar) 38:8 warning $context parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 38:8 warning $secureRenderer parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 40:12 warning $configRepository parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 40:12 warning $brandRegistry parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Block/Product/PromoMessage.php 91:243 warning Line exceeds 120 characters; contains 243 characters (Generic.Files.LineLength.TooLong)