Magento Coding Standard (PHPCS) report for hryvinskyi/magento2-email-template-editor ==================================================================================== Package version: 1.4.0 | Magento: 2.4.9 | Tested: 2026-10-13 9 errors, 222 warnings in 63 files Model/TemplateVersion.php 41:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 57:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 73:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 89:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 105:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 121:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 137:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 155:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 171:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 187:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 205:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 221:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 237:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 253:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) Model/Config.php 31:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) Model/TemplateOverride.php 49:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 65:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 81:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 97:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 113:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 131:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 147:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 163:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 179:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 195:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 213:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 229:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 247:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 263:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 279:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 295:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 311:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 327:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 343:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 359:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 375:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 393:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 409:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) Model/TemplatePublisher.php 51:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 81:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 278:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) Model/SampleDataProviderPool.php 23:12 warning $providers parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/TemplateAreaResolver.php 28:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) Model/CustomVariableMerger.php 19:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 48:13 warning mixed> duplicate found in method annotation (Magento2.Annotation.MethodArguments.DuplicateParam) 48:13 warning $base parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 48:13 warning $custom parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Color/Rgba.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) 44:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 61: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) 105:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 121:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 262:28 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 277: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) Model/Color/ColorParser.php 93:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) Model/Color/ColorMixer.php 24:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 137:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 142:13 warning $coordinates parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Css/CssSyntaxScanner.php 19:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 41:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 51:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 59:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) Model/Css/CssStructureParser.php 28:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 80:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 141:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 154:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) Model/CssImportantPromoter.php 58:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) Model/UtilityCssGenerator.php 85:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 87:21 error The use of function md5() is forbidden; use improved hash functions (SHA-256, SHA-512 etc.)() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 331:13 warning $data parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 364:13 warning $elements parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 390:13 warning $utilities parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 416:13 warning $colors parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 455:13 warning $spacingMap parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 505:13 warning $fontSizes parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 516:13 warning $fontFamilies parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 531:13 warning $fontWeights parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 542:13 warning $lineHeights parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 553:13 warning $letterSpacings parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 564:13 warning $radii parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 575:13 warning $shadows parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 586:13 warning $opacities parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 597:13 warning $zIndexes parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 608:13 warning $maxWidths parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 621:13 warning $tokens parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/VariableChooserProvider.php 114:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) Model/Knowledge/WriteAuthorization.php 52:12 warning $resourcesByOriginKind parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Knowledge/XmlKnowledgeProvider.php 68:12 warning $defaultModifiers parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 132:13 warning $definition parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 176:13 warning $affordance parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 216:13 warning $affordance parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Knowledge/ReferenceValueResolver.php 157:13 warning $pool parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Knowledge/CustomVariableKnowledgeProvider.php 93:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 97:13 warning $variable parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Knowledge/ReferenceValueWriter.php 179:13 warning $pool parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Knowledge/Data/EditAffordance.php 42:13 warning $editorOptions parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 60:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 83:19 warning $editorOptions parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 83:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 124:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 145:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 207:28 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) Model/Knowledge/Data/WritabilityVerdict.php 44:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 57:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) Model/Knowledge/Data/ModifierDescriptor.php 48:12 warning $argumentSpec parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 116:13 warning $argumentSpec parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Knowledge/Affordance/ConfigAffordanceResolver.php 72:12 warning $editorTypes parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Knowledge/Affordance/InstructionAffordanceResolver.php 80:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) Model/Knowledge/VariableKnowledgeRegistry.php 62:12 warning $referenceParser parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 301:13 warning $pool parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Knowledge/Config/Converter.php 228:13 warning $affordance parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Knowledge/ModifierRegistry.php 82:13 warning $descriptors parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/Knowledge/ConfigPathWritability.php 83:12 warning $renderedDiffersFromStored parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/LegacyTemplateRepository.php 198:25 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) Model/TemplateLoader.php 359:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 367:13 warning $defaultData parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 399:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 408:13 warning $defaultData parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 615:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 802:13 warning $managedScopes parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 865:16 warning Line exceeds 120 characters; contains 238 characters (Generic.Files.LineLength.TooLong) Model/Theme.php 41:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 57:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 86:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 105:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 121:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 137:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 153:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) Model/CssColorConverter.php 37:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) Model/SampleData/TemplateProviderMapping.php 18:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 22:12 warning $templateGroupMap parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 22:12 warning $groups parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/SampleData/MockVariableBuilderPool.php 21:12 warning $builders parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Model/SampleData/MockVariableBuilder/OrderMockBuilder.php 111:128 warning Line exceeds 120 characters; contains 128 characters (Generic.Files.LineLength.TooLong) 112:127 warning Line exceeds 120 characters; contains 127 characters (Generic.Files.LineLength.TooLong) Model/SampleData/MockVariableBuilder/MarketingMockBuilder.php 80:142 warning Line exceeds 120 characters; contains 142 characters (Generic.Files.LineLength.TooLong) Model/SampleData/SpecificOrderProvider.php 98:172 warning Line exceeds 120 characters; contains 172 characters (Generic.Files.LineLength.TooLong) 173:16 warning The use of function addcslashes() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Model/CssVariableResolver.php 102:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 120:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 124:13 warning $scopeChain parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 159:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 164:13 warning $chain parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 183:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 187:13 warning $chain parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 219:13 warning $nodes parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 239:26 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) 343:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 347:13 warning $chain parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 371:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 375:13 warning $chain parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 446:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 450:13 warning $chain parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Setup/Patch/Data/MigrateThemeJsonToCss.php 140:13 warning $tokens parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Controller/Adminhtml/Theme/Import.php 61:24 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 90:30 warning The use of function pathinfo() is discouraged; use Magento\Framework\Filesystem\Io\File::getPathInfo() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) view/adminhtml/web/template/email-editor/knowledge/variable-inspector.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) view/adminhtml/web/template/email-editor/variable-chooser.html 1:1 warning Avoid using closing slash with void tags, this can lead to unexpected behavior - "" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements) view/adminhtml/web/template/email-editor/template-sidebar.html 1:1 warning Avoid using closing slash with void tags, this can lead to unexpected behavior - "" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements) view/adminhtml/web/template/email-editor/email-editor.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/adminhtml/web/template/email-editor/toolbar.html 1:1 warning Avoid using closing slash with void tags, this can lead to unexpected behavior - "" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements) view/adminhtml/web/template/email-editor/publish-dialog.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) view/adminhtml/web/js/email-editor/markup-formatter.js 1:1 warning Avoid using closing slash with void tags, this can lead to unexpected behavior - "
%name"}}` looks * a translation up by exactly that string, so breaking the line between its two tags changes the key * and the sentence silently stops being translated. A directive spans from `{{` to the first `}}` * after it, quoted or not, because that is where the renderer ends it; everything in that span is * copied through untouched. */ define([], function () { 'use strict'; /** * Break the line between two adjacent tags in markup that holds no directive * * @param {string} markup * @return {string} */ function breakTags(markup) { return markup.replace(/>" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements) Api/ScheduleConflictDetectorInterface.php 35:16 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) Api/TemplateRendererInterface.php 28:12 warning $variables parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 48:12 warning $variables parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Api/TemplateLoaderInterface.php 18:16 warning Line exceeds 120 characters; contains 169 characters (Generic.Files.LineLength.TooLong) 33:15 warning Line exceeds 120 characters; contains 135 characters (Generic.Files.LineLength.TooLong) 34:16 warning Line exceeds 120 characters; contains 239 characters (Generic.Files.LineLength.TooLong) Api/CustomVariableMergerInterface.php 26:12 warning $baseVariables parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Test/Unit/bootstrap.php 33:5 error Use of exit language construct is discouraged. (Magento2.Security.LanguageConstruct.ExitUsage) 69:9 error The use of function eval() is forbidden (Magento2.Security.InsecureFunction.Found) Test/Unit/Model/UtilityCssGeneratorTest.php 40:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) Test/Unit/Model/TemplatePublisherTest.php 227:9 warning Space found after opening bracket of FOREACH loop (Squiz.ControlStructures.ForEachLoopDeclaration.SpaceAfterOpen) 227:9 warning Space found before closing bracket of FOREACH loop (Squiz.ControlStructures.ForEachLoopDeclaration.SpaceBeforeClose) 227:18 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) 242:9 warning Space found after opening bracket of FOREACH loop (Squiz.ControlStructures.ForEachLoopDeclaration.SpaceAfterOpen) 242:9 warning Space found before closing bracket of FOREACH loop (Squiz.ControlStructures.ForEachLoopDeclaration.SpaceBeforeClose) 242:18 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) Test/Unit/Model/UtilityCssGeneratorMemoTest.php 37:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) 43:25 error The use of function md5() is forbidden; use improved hash functions (SHA-256, SHA-512 etc.)() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 56:25 error The use of function md5() is forbidden; use improved hash functions (SHA-256, SHA-512 etc.)() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 76:14 error The use of function md5() is forbidden; use improved hash functions (SHA-256, SHA-512 etc.)() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 76:32 error The use of function md5() is forbidden; use improved hash functions (SHA-256, SHA-512 etc.)() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 89:133 warning Line exceeds 120 characters; contains 133 characters (Generic.Files.LineLength.TooLong) 98:14 error The use of function md5() is forbidden; use improved hash functions (SHA-256, SHA-512 etc.)() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) Test/Unit/Model/Knowledge/CustomVariableIndexTest.php 54:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) Test/Unit/Model/Knowledge/Data/ResolvedValueTest.php 74:126 warning Line exceeds 120 characters; contains 126 characters (Generic.Files.LineLength.TooLong) Test/Unit/Model/Knowledge/VariableKnowledgeRegistryTest.php 538:124 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong) Test/Unit/Model/TemplateLoaderTest.php 174:9 warning Space found after opening bracket of FOREACH loop (Squiz.ControlStructures.ForEachLoopDeclaration.SpaceAfterOpen) 174:9 warning Space found before closing bracket of FOREACH loop (Squiz.ControlStructures.ForEachLoopDeclaration.SpaceBeforeClose) 174:18 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) 194:9 warning Space found after opening bracket of FOREACH loop (Squiz.ControlStructures.ForEachLoopDeclaration.SpaceAfterOpen) 194:9 warning Space found before closing bracket of FOREACH loop (Squiz.ControlStructures.ForEachLoopDeclaration.SpaceBeforeClose) 194:18 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) Test/Js/directive-scanner.test.js 1:1 warning Template directives may not invoke methods. Only scalar array access is allowed. Found "order.shipping_description'; assertLike( referencesOf(occurrences), ['trans:Shipping Method', 'var:order.shipping_description', 'if:', 'var:shipping_msg'], 'references' ); assertLike(variable.modifiers, [], 'modifier calls'); assertSame(variable.modifierText, '', 'modifier text'); assertSame(variable.chainParsed, true, 'chain parsed'); assertSame(variable.overlong, false, 'over-long'); assertSame(variable.modifierStart, text.indexOf(directive) + directive.length, 'modifier start'); assertSame(variable.modifierEnd, variable.modifierStart, 'modifier end'); }); test('the store address block reports its chain and brackets it exactly', function () { var text = fixtures.STORE_ADDRESS_BLOCK, occurrence = onlyOccurrence(text); assertSame(occurrence.reference, 'var:store.getFormattedAddress()', 'reference'); assertSame(occurrence.kind, 'var', 'kind'); assertSame(occurrence.expression, 'store.getFormattedAddress()', 'expression'); assertSame(occurrence.modifierText, '|raw', 'modifier text'); assertLike(occurrence.modifiers, [{name: 'raw', args: []}], 'modifier calls'); assertSame(occurrence.chainParsed, true, 'chain parsed'); assertSame(text.slice(occurrence.modifierStart, occurrence.modifierEnd), '|raw', 'bracketed chain'); assertSame(text.slice(occurrence.start, occurrence.end), '{{var store.getFormattedAddress()|raw" (Magento2.Html.HtmlDirective.HtmlTemplatesProhibitedMethodCall) 1:1 warning Template directives may not invoke methods. Only scalar array access is allowed. Found "order.shipping_description'; assertLike( referencesOf(occurrences), ['trans:Shipping Method', 'var:order.shipping_description', 'if:', 'var:shipping_msg'], 'references' ); assertLike(variable.modifiers, [], 'modifier calls'); assertSame(variable.modifierText, '', 'modifier text'); assertSame(variable.chainParsed, true, 'chain parsed'); assertSame(variable.overlong, false, 'over-long'); assertSame(variable.modifierStart, text.indexOf(directive) + directive.length, 'modifier start'); assertSame(variable.modifierEnd, variable.modifierStart, 'modifier end'); }); test('the store address block reports its chain and brackets it exactly', function () { var text = fixtures.STORE_ADDRESS_BLOCK, occurrence = onlyOccurrence(text); assertSame(occurrence.reference, 'var:store.getFormattedAddress()', 'reference'); assertSame(occurrence.kind, 'var', 'kind'); assertSame(occurrence.expression, 'store.getFormattedAddress()', 'expression'); assertSame(occurrence.modifierText, '|raw', 'modifier text'); assertLike(occurrence.modifiers, [{name: 'raw', args: []}], 'modifier calls'); assertSame(occurrence.chainParsed, true, 'chain parsed'); assertSame(text.slice(occurrence.modifierStart, occurrence.modifierEnd), '|raw', 'bracketed chain'); assertSame(text.slice(occurrence.start, occurrence.end), '{{var store.getFormattedAddress()|raw" (Magento2.Html.HtmlDirective.HtmlTemplatesProhibitedMethodCall) 1:1 warning Template directives may not invoke methods. Only scalar array access is allowed. Found "order.shipping_description'; assertLike( referencesOf(occurrences), ['trans:Shipping Method', 'var:order.shipping_description', 'if:', 'var:shipping_msg'], 'references' ); assertLike(variable.modifiers, [], 'modifier calls'); assertSame(variable.modifierText, '', 'modifier text'); assertSame(variable.chainParsed, true, 'chain parsed'); assertSame(variable.overlong, false, 'over-long'); assertSame(variable.modifierStart, text.indexOf(directive) + directive.length, 'modifier start'); assertSame(variable.modifierEnd, variable.modifierStart, 'modifier end'); }); test('the store address block reports its chain and brackets it exactly', function () { var text = fixtures.STORE_ADDRESS_BLOCK, occurrence = onlyOccurrence(text); assertSame(occurrence.reference, 'var:store.getFormattedAddress()', 'reference'); assertSame(occurrence.kind, 'var', 'kind'); assertSame(occurrence.expression, 'store.getFormattedAddress()', 'expression'); assertSame(occurrence.modifierText, '|raw', 'modifier text'); assertLike(occurrence.modifiers, [{name: 'raw', args: []}], 'modifier calls'); assertSame(occurrence.chainParsed, true, 'chain parsed'); assertSame(text.slice(occurrence.modifierStart, occurrence.modifierEnd), '|raw', 'bracketed chain'); assertSame(text.slice(occurrence.start, occurrence.end), '{{var store.getFormattedAddress()|raw" (Magento2.Html.HtmlDirective.HtmlTemplatesProhibitedMethodCall) 1:1 warning Template directives may not invoke methods. Only scalar array access is allowed. Found "order.shipping_description'; assertLike( referencesOf(occurrences), ['trans:Shipping Method', 'var:order.shipping_description', 'if:', 'var:shipping_msg'], 'references' ); assertLike(variable.modifiers, [], 'modifier calls'); assertSame(variable.modifierText, '', 'modifier text'); assertSame(variable.chainParsed, true, 'chain parsed'); assertSame(variable.overlong, false, 'over-long'); assertSame(variable.modifierStart, text.indexOf(directive) + directive.length, 'modifier start'); assertSame(variable.modifierEnd, variable.modifierStart, 'modifier end'); }); test('the store address block reports its chain and brackets it exactly', function () { var text = fixtures.STORE_ADDRESS_BLOCK, occurrence = onlyOccurrence(text); assertSame(occurrence.reference, 'var:store.getFormattedAddress()', 'reference'); assertSame(occurrence.kind, 'var', 'kind'); assertSame(occurrence.expression, 'store.getFormattedAddress()', 'expression'); assertSame(occurrence.modifierText, '|raw', 'modifier text'); assertLike(occurrence.modifiers, [{name: 'raw', args: []}], 'modifier calls'); assertSame(occurrence.chainParsed, true, 'chain parsed'); assertSame(text.slice(occurrence.modifierStart, occurrence.modifierEnd), '|raw', 'bracketed chain'); assertSame(text.slice(occurrence.start, occurrence.end), '{{var store.getFormattedAddress()|raw" (Magento2.Html.HtmlDirective.HtmlTemplatesProhibitedMethodCall) 1:1 warning Template directives may not invoke methods. Only scalar array access is allowed. Found "order.shipping_description'; assertLike( referencesOf(occurrences), ['trans:Shipping Method', 'var:order.shipping_description', 'if:', 'var:shipping_msg'], 'references' ); assertLike(variable.modifiers, [], 'modifier calls'); assertSame(variable.modifierText, '', 'modifier text'); assertSame(variable.chainParsed, true, 'chain parsed'); assertSame(variable.overlong, false, 'over-long'); assertSame(variable.modifierStart, text.indexOf(directive) + directive.length, 'modifier start'); assertSame(variable.modifierEnd, variable.modifierStart, 'modifier end'); }); test('the store address block reports its chain and brackets it exactly', function () { var text = fixtures.STORE_ADDRESS_BLOCK, occurrence = onlyOccurrence(text); assertSame(occurrence.reference, 'var:store.getFormattedAddress()', 'reference'); assertSame(occurrence.kind, 'var', 'kind'); assertSame(occurrence.expression, 'store.getFormattedAddress()', 'expression'); assertSame(occurrence.modifierText, '|raw', 'modifier text'); assertLike(occurrence.modifiers, [{name: 'raw', args: []}], 'modifier calls'); assertSame(occurrence.chainParsed, true, 'chain parsed'); assertSame(text.slice(occurrence.modifierStart, occurrence.modifierEnd), '|raw', 'bracketed chain'); assertSame(text.slice(occurrence.start, occurrence.end), '{{var store.getFormattedAddress()|raw" (Magento2.Html.HtmlDirective.HtmlTemplatesProhibitedMethodCall) 1:1 warning Template directives may not invoke methods. Only scalar array access is allowed. Found "order.shipping_description'; assertLike( referencesOf(occurrences), ['trans:Shipping Method', 'var:order.shipping_description', 'if:', 'var:shipping_msg'], 'references' ); assertLike(variable.modifiers, [], 'modifier calls'); assertSame(variable.modifierText, '', 'modifier text'); assertSame(variable.chainParsed, true, 'chain parsed'); assertSame(variable.overlong, false, 'over-long'); assertSame(variable.modifierStart, text.indexOf(directive) + directive.length, 'modifier start'); assertSame(variable.modifierEnd, variable.modifierStart, 'modifier end'); }); test('the store address block reports its chain and brackets it exactly', function () { var text = fixtures.STORE_ADDRESS_BLOCK, occurrence = onlyOccurrence(text); assertSame(occurrence.reference, 'var:store.getFormattedAddress()', 'reference'); assertSame(occurrence.kind, 'var', 'kind'); assertSame(occurrence.expression, 'store.getFormattedAddress()', 'expression'); assertSame(occurrence.modifierText, '|raw', 'modifier text'); assertLike(occurrence.modifiers, [{name: 'raw', args: []}], 'modifier calls'); assertSame(occurrence.chainParsed, true, 'chain parsed'); assertSame(text.slice(occurrence.modifierStart, occurrence.modifierEnd), '|raw', 'bracketed chain'); assertSame(text.slice(occurrence.start, occurrence.end), '{{var store.getFormattedAddress()|raw" (Magento2.Html.HtmlDirective.HtmlTemplatesProhibitedMethodCall) 1:1 warning Template directives may not invoke methods. Only scalar array access is allowed. Found "order.shipping_description'; assertLike( referencesOf(occurrences), ['trans:Shipping Method', 'var:order.shipping_description', 'if:', 'var:shipping_msg'], 'references' ); assertLike(variable.modifiers, [], 'modifier calls'); assertSame(variable.modifierText, '', 'modifier text'); assertSame(variable.chainParsed, true, 'chain parsed'); assertSame(variable.overlong, false, 'over-long'); assertSame(variable.modifierStart, text.indexOf(directive) + directive.length, 'modifier start'); assertSame(variable.modifierEnd, variable.modifierStart, 'modifier end'); }); test('the store address block reports its chain and brackets it exactly', function () { var text = fixtures.STORE_ADDRESS_BLOCK, occurrence = onlyOccurrence(text); assertSame(occurrence.reference, 'var:store.getFormattedAddress()', 'reference'); assertSame(occurrence.kind, 'var', 'kind'); assertSame(occurrence.expression, 'store.getFormattedAddress()', 'expression'); assertSame(occurrence.modifierText, '|raw', 'modifier text'); assertLike(occurrence.modifiers, [{name: 'raw', args: []}], 'modifier calls'); assertSame(occurrence.chainParsed, true, 'chain parsed'); assertSame(text.slice(occurrence.modifierStart, occurrence.modifierEnd), '|raw', 'bracketed chain'); assertSame(text.slice(occurrence.start, occurrence.end), '{{var store.getFormattedAddress()|raw" (Magento2.Html.HtmlDirective.HtmlTemplatesProhibitedMethodCall) 1:1 warning Template directives may not invoke methods. Only scalar array access is allowed. Found "order.shipping_description'; assertLike( referencesOf(occurrences), ['trans:Shipping Method', 'var:order.shipping_description', 'if:', 'var:shipping_msg'], 'references' ); assertLike(variable.modifiers, [], 'modifier calls'); assertSame(variable.modifierText, '', 'modifier text'); assertSame(variable.chainParsed, true, 'chain parsed'); assertSame(variable.overlong, false, 'over-long'); assertSame(variable.modifierStart, text.indexOf(directive) + directive.length, 'modifier start'); assertSame(variable.modifierEnd, variable.modifierStart, 'modifier end'); }); test('the store address block reports its chain and brackets it exactly', function () { var text = fixtures.STORE_ADDRESS_BLOCK, occurrence = onlyOccurrence(text); assertSame(occurrence.reference, 'var:store.getFormattedAddress()', 'reference'); assertSame(occurrence.kind, 'var', 'kind'); assertSame(occurrence.expression, 'store.getFormattedAddress()', 'expression'); assertSame(occurrence.modifierText, '|raw', 'modifier text'); assertLike(occurrence.modifiers, [{name: 'raw', args: []}], 'modifier calls'); assertSame(occurrence.chainParsed, true, 'chain parsed'); assertSame(text.slice(occurrence.modifierStart, occurrence.modifierEnd), '|raw', 'bracketed chain'); assertSame(text.slice(occurrence.start, occurrence.end), '{{var store.getFormattedAddress()|raw" (Magento2.Html.HtmlDirective.HtmlTemplatesProhibitedMethodCall) 1:1 warning Template directives may not invoke methods. Only scalar array access is allowed. Found "order.shipping_description'; assertLike( referencesOf(occurrences), ['trans:Shipping Method', 'var:order.shipping_description', 'if:', 'var:shipping_msg'], 'references' ); assertLike(variable.modifiers, [], 'modifier calls'); assertSame(variable.modifierText, '', 'modifier text'); assertSame(variable.chainParsed, true, 'chain parsed'); assertSame(variable.overlong, false, 'over-long'); assertSame(variable.modifierStart, text.indexOf(directive) + directive.length, 'modifier start'); assertSame(variable.modifierEnd, variable.modifierStart, 'modifier end'); }); test('the store address block reports its chain and brackets it exactly', function () { var text = fixtures.STORE_ADDRESS_BLOCK, occurrence = onlyOccurrence(text); assertSame(occurrence.reference, 'var:store.getFormattedAddress()', 'reference'); assertSame(occurrence.kind, 'var', 'kind'); assertSame(occurrence.expression, 'store.getFormattedAddress()', 'expression'); assertSame(occurrence.modifierText, '|raw', 'modifier text'); assertLike(occurrence.modifiers, [{name: 'raw', args: []}], 'modifier calls'); assertSame(occurrence.chainParsed, true, 'chain parsed'); assertSame(text.slice(occurrence.modifierStart, occurrence.modifierEnd), '|raw', 'bracketed chain'); assertSame(text.slice(occurrence.start, occurrence.end), '{{var store.getFormattedAddress()|raw" (Magento2.Html.HtmlDirective.HtmlTemplatesProhibitedMethodCall) 1:1 warning Template directives may not invoke methods. Only scalar array access is allowed. Found "order.shipping_description'; assertLike( referencesOf(occurrences), ['trans:Shipping Method', 'var:order.shipping_description', 'if:', 'var:shipping_msg'], 'references' ); assertLike(variable.modifiers, [], 'modifier calls'); assertSame(variable.modifierText, '', 'modifier text'); assertSame(variable.chainParsed, true, 'chain parsed'); assertSame(variable.overlong, false, 'over-long'); assertSame(variable.modifierStart, text.indexOf(directive) + directive.length, 'modifier start'); assertSame(variable.modifierEnd, variable.modifierStart, 'modifier end'); }); test('the store address block reports its chain and brackets it exactly', function () { var text = fixtures.STORE_ADDRESS_BLOCK, occurrence = onlyOccurrence(text); assertSame(occurrence.reference, 'var:store.getFormattedAddress()', 'reference'); assertSame(occurrence.kind, 'var', 'kind'); assertSame(occurrence.expression, 'store.getFormattedAddress()', 'expression'); assertSame(occurrence.modifierText, '|raw', 'modifier text'); assertLike(occurrence.modifiers, [{name: 'raw', args: []}], 'modifier calls'); assertSame(occurrence.chainParsed, true, 'chain parsed'); assertSame(text.slice(occurrence.modifierStart, occurrence.modifierEnd), '|raw', 'bracketed chain'); assertSame(text.slice(occurrence.start, occurrence.end), '{{var store.getFormattedAddress()|raw" (Magento2.Html.HtmlDirective.HtmlTemplatesProhibitedMethodCall) 1:1 warning Template directives may not invoke methods. Only scalar array access is allowed. Found "order.shipping_description'; assertLike( referencesOf(occurrences), ['trans:Shipping Method', 'var:order.shipping_description', 'if:', 'var:shipping_msg'], 'references' ); assertLike(variable.modifiers, [], 'modifier calls'); assertSame(variable.modifierText, '', 'modifier text'); assertSame(variable.chainParsed, true, 'chain parsed'); assertSame(variable.overlong, false, 'over-long'); assertSame(variable.modifierStart, text.indexOf(directive) + directive.length, 'modifier start'); assertSame(variable.modifierEnd, variable.modifierStart, 'modifier end'); }); test('the store address block reports its chain and brackets it exactly', function () { var text = fixtures.STORE_ADDRESS_BLOCK, occurrence = onlyOccurrence(text); assertSame(occurrence.reference, 'var:store.getFormattedAddress()', 'reference'); assertSame(occurrence.kind, 'var', 'kind'); assertSame(occurrence.expression, 'store.getFormattedAddress()', 'expression'); assertSame(occurrence.modifierText, '|raw', 'modifier text'); assertLike(occurrence.modifiers, [{name: 'raw', args: []}], 'modifier calls'); assertSame(occurrence.chainParsed, true, 'chain parsed'); assertSame(text.slice(occurrence.modifierStart, occurrence.modifierEnd), '|raw', 'bracketed chain'); assertSame(text.slice(occurrence.start, occurrence.end), '{{var store.getFormattedAddress()|raw" (Magento2.Html.HtmlDirective.HtmlTemplatesProhibitedMethodCall) 1:1 warning Template directives may not invoke methods. Only scalar array access is allowed. Found "order.shipping_description'; assertLike( referencesOf(occurrences), ['trans:Shipping Method', 'var:order.shipping_description', 'if:', 'var:shipping_msg'], 'references' ); assertLike(variable.modifiers, [], 'modifier calls'); assertSame(variable.modifierText, '', 'modifier text'); assertSame(variable.chainParsed, true, 'chain parsed'); assertSame(variable.overlong, false, 'over-long'); assertSame(variable.modifierStart, text.indexOf(directive) + directive.length, 'modifier start'); assertSame(variable.modifierEnd, variable.modifierStart, 'modifier end'); }); test('the store address block reports its chain and brackets it exactly', function () { var text = fixtures.STORE_ADDRESS_BLOCK, occurrence = onlyOccurrence(text); assertSame(occurrence.reference, 'var:store.getFormattedAddress()', 'reference'); assertSame(occurrence.kind, 'var', 'kind'); assertSame(occurrence.expression, 'store.getFormattedAddress()', 'expression'); assertSame(occurrence.modifierText, '|raw', 'modifier text'); assertLike(occurrence.modifiers, [{name: 'raw', args: []}], 'modifier calls'); assertSame(occurrence.chainParsed, true, 'chain parsed'); assertSame(text.slice(occurrence.modifierStart, occurrence.modifierEnd), '|raw', 'bracketed chain'); assertSame(text.slice(occurrence.start, occurrence.end), '{{var store.getFormattedAddress()|raw" (Magento2.Html.HtmlDirective.HtmlTemplatesProhibitedMethodCall) 1:1 warning Template directives may not invoke methods. Only scalar array access is allowed. Found "order.shipping_description'; assertLike( referencesOf(occurrences), ['trans:Shipping Method', 'var:order.shipping_description', 'if:', 'var:shipping_msg'], 'references' ); assertLike(variable.modifiers, [], 'modifier calls'); assertSame(variable.modifierText, '', 'modifier text'); assertSame(variable.chainParsed, true, 'chain parsed'); assertSame(variable.overlong, false, 'over-long'); assertSame(variable.modifierStart, text.indexOf(directive) + directive.length, 'modifier start'); assertSame(variable.modifierEnd, variable.modifierStart, 'modifier end'); }); test('the store address block reports its chain and brackets it exactly', function () { var text = fixtures.STORE_ADDRESS_BLOCK, occurrence = onlyOccurrence(text); assertSame(occurrence.reference, 'var:store.getFormattedAddress()', 'reference'); assertSame(occurrence.kind, 'var', 'kind'); assertSame(occurrence.expression, 'store.getFormattedAddress()', 'expression'); assertSame(occurrence.modifierText, '|raw', 'modifier text'); assertLike(occurrence.modifiers, [{name: 'raw', args: []}], 'modifier calls'); assertSame(occurrence.chainParsed, true, 'chain parsed'); assertSame(text.slice(occurrence.modifierStart, occurrence.modifierEnd), '|raw', 'bracketed chain'); assertSame(text.slice(occurrence.start, occurrence.end), '{{var store.getFormattedAddress()|raw" (Magento2.Html.HtmlDirective.HtmlTemplatesProhibitedMethodCall) 1:1 warning Template directives may not invoke methods. Only scalar array access is allowed. Found "order.shipping_description'; assertLike( referencesOf(occurrences), ['trans:Shipping Method', 'var:order.shipping_description', 'if:', 'var:shipping_msg'], 'references' ); assertLike(variable.modifiers, [], 'modifier calls'); assertSame(variable.modifierText, '', 'modifier text'); assertSame(variable.chainParsed, true, 'chain parsed'); assertSame(variable.overlong, false, 'over-long'); assertSame(variable.modifierStart, text.indexOf(directive) + directive.length, 'modifier start'); assertSame(variable.modifierEnd, variable.modifierStart, 'modifier end'); }); test('the store address block reports its chain and brackets it exactly', function () { var text = fixtures.STORE_ADDRESS_BLOCK, occurrence = onlyOccurrence(text); assertSame(occurrence.reference, 'var:store.getFormattedAddress()', 'reference'); assertSame(occurrence.kind, 'var', 'kind'); assertSame(occurrence.expression, 'store.getFormattedAddress()', 'expression'); assertSame(occurrence.modifierText, '|raw', 'modifier text'); assertLike(occurrence.modifiers, [{name: 'raw', args: []}], 'modifier calls'); assertSame(occurrence.chainParsed, true, 'chain parsed'); assertSame(text.slice(occurrence.modifierStart, occurrence.modifierEnd), '|raw', 'bracketed chain'); assertSame(text.slice(occurrence.start, occurrence.end), '{{var store.getFormattedAddress()|raw" (Magento2.Html.HtmlDirective.HtmlTemplatesProhibitedMethodCall) 1:1 warning Template directives may not invoke methods. Only scalar array access is allowed. Found "order.shipping_description'; assertLike( referencesOf(occurrences), ['trans:Shipping Method', 'var:order.shipping_description', 'if:', 'var:shipping_msg'], 'references' ); assertLike(variable.modifiers, [], 'modifier calls'); assertSame(variable.modifierText, '', 'modifier text'); assertSame(variable.chainParsed, true, 'chain parsed'); assertSame(variable.overlong, false, 'over-long'); assertSame(variable.modifierStart, text.indexOf(directive) + directive.length, 'modifier start'); assertSame(variable.modifierEnd, variable.modifierStart, 'modifier end'); }); test('the store address block reports its chain and brackets it exactly', function () { var text = fixtures.STORE_ADDRESS_BLOCK, occurrence = onlyOccurrence(text); assertSame(occurrence.reference, 'var:store.getFormattedAddress()', 'reference'); assertSame(occurrence.kind, 'var', 'kind'); assertSame(occurrence.expression, 'store.getFormattedAddress()', 'expression'); assertSame(occurrence.modifierText, '|raw', 'modifier text'); assertLike(occurrence.modifiers, [{name: 'raw', args: []}], 'modifier calls'); assertSame(occurrence.chainParsed, true, 'chain parsed'); assertSame(text.slice(occurrence.modifierStart, occurrence.modifierEnd), '|raw', 'bracketed chain'); assertSame(text.slice(occurrence.start, occurrence.end), '{{var store.getFormattedAddress()|raw" (Magento2.Html.HtmlDirective.HtmlTemplatesProhibitedMethodCall) 1:1 warning Template directives may not invoke methods. Only scalar array access is allowed. Found "order.shipping_description'; assertLike( referencesOf(occurrences), ['trans:Shipping Method', 'var:order.shipping_description', 'if:', 'var:shipping_msg'], 'references' ); assertLike(variable.modifiers, [], 'modifier calls'); assertSame(variable.modifierText, '', 'modifier text'); assertSame(variable.chainParsed, true, 'chain parsed'); assertSame(variable.overlong, false, 'over-long'); assertSame(variable.modifierStart, text.indexOf(directive) + directive.length, 'modifier start'); assertSame(variable.modifierEnd, variable.modifierStart, 'modifier end'); }); test('the store address block reports its chain and brackets it exactly', function () { var text = fixtures.STORE_ADDRESS_BLOCK, occurrence = onlyOccurrence(text); assertSame(occurrence.reference, 'var:store.getFormattedAddress()', 'reference'); assertSame(occurrence.kind, 'var', 'kind'); assertSame(occurrence.expression, 'store.getFormattedAddress()', 'expression'); assertSame(occurrence.modifierText, '|raw', 'modifier text'); assertLike(occurrence.modifiers, [{name: 'raw', args: []}], 'modifier calls'); assertSame(occurrence.chainParsed, true, 'chain parsed'); assertSame(text.slice(occurrence.modifierStart, occurrence.modifierEnd), '|raw', 'bracketed chain'); assertSame(text.slice(occurrence.start, occurrence.end), '{{var store.getFormattedAddress()|raw" (Magento2.Html.HtmlDirective.HtmlTemplatesProhibitedMethodCall) 1:1 warning Template directives may not invoke methods. Only scalar array access is allowed. Found "order.shipping_description'; assertLike( referencesOf(occurrences), ['trans:Shipping Method', 'var:order.shipping_description', 'if:', 'var:shipping_msg'], 'references' ); assertLike(variable.modifiers, [], 'modifier calls'); assertSame(variable.modifierText, '', 'modifier text'); assertSame(variable.chainParsed, true, 'chain parsed'); assertSame(variable.overlong, false, 'over-long'); assertSame(variable.modifierStart, text.indexOf(directive) + directive.length, 'modifier start'); assertSame(variable.modifierEnd, variable.modifierStart, 'modifier end'); }); test('the store address block reports its chain and brackets it exactly', function () { var text = fixtures.STORE_ADDRESS_BLOCK, occurrence = onlyOccurrence(text); assertSame(occurrence.reference, 'var:store.getFormattedAddress()', 'reference'); assertSame(occurrence.kind, 'var', 'kind'); assertSame(occurrence.expression, 'store.getFormattedAddress()', 'expression'); assertSame(occurrence.modifierText, '|raw', 'modifier text'); assertLike(occurrence.modifiers, [{name: 'raw', args: []}], 'modifier calls'); assertSame(occurrence.chainParsed, true, 'chain parsed'); assertSame(text.slice(occurrence.modifierStart, occurrence.modifierEnd), '|raw', 'bracketed chain'); assertSame(text.slice(occurrence.start, occurrence.end), '{{var store.getFormattedAddress()|raw" (Magento2.Html.HtmlDirective.HtmlTemplatesProhibitedMethodCall) 1:1 warning Template directives may not invoke methods. Only scalar array access is allowed. Found "spaced.path()" (Magento2.Html.HtmlDirective.HtmlTemplatesProhibitedMethodCall) 1:1 warning Template directives may not invoke methods. Only scalar array access is allowed. Found "spaced.path()" (Magento2.Html.HtmlDirective.HtmlTemplatesProhibitedMethodCall) Test/Js/custom-data-skeleton.test.js 1:1 warning Template directives may not invoke methods. Only scalar array access is allowed. Found "a.b()" (Magento2.Html.HtmlDirective.HtmlTemplatesProhibitedMethodCall) Block/Adminhtml/Editor.php 27:12 warning $data parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 115:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 119:13 warning $options parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 119:13 warning $stores parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing)