summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2018-05-11 09:40:33 (GMT)
committerAlex Pott2018-05-11 09:40:33 (GMT)
commitbe6d515cad09889002e5d55020b6bdce61c2c804 (patch)
treecc305043680f974001112c09244ea3cc12030c9d
parentb8f93d5b610cc5c6ba36d69bd8c1ec3b30ff7b25 (diff)
Issue #2572613 by Malevi4, idebr, pfrenssen, Mile23, RajeevK: Fix 'Drupal.Array.Array.CommaLastItem' coding standard
-rw-r--r--core/includes/common.inc2
-rw-r--r--core/includes/install.core.inc10
-rw-r--r--core/lib/Drupal/Component/Utility/Html.php2
-rw-r--r--core/lib/Drupal/Core/Block/Plugin/Block/Broken.php2
-rw-r--r--core/lib/Drupal/Core/Config/PreExistingConfigException.php2
-rw-r--r--core/lib/Drupal/Core/Config/UnmetDependenciesException.php2
-rw-r--r--core/lib/Drupal/Core/Diff/DiffFormatter.php8
-rw-r--r--core/lib/Drupal/Core/Entity/ContentEntityDeleteForm.php2
-rw-r--r--core/lib/Drupal/Core/Entity/ContentEntityForm.php2
-rw-r--r--core/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php4
-rw-r--r--core/lib/Drupal/Core/Entity/Entity/EntityViewDisplay.php4
-rw-r--r--core/lib/Drupal/Core/Entity/EntityDisplayBase.php2
-rw-r--r--core/lib/Drupal/Core/Entity/Plugin/DataType/Deriver/EntityDeriver.php2
-rw-r--r--core/lib/Drupal/Core/Entity/Routing/DefaultHtmlRouteProvider.php2
-rw-r--r--core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php4
-rw-r--r--core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php6
-rw-r--r--core/lib/Drupal/Core/Extension/module.api.php2
-rw-r--r--core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/LanguageFormatter.php2
-rw-r--r--core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php4
-rw-r--r--core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EmailItem.php2
-rw-r--r--core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php4
-rw-r--r--core/lib/Drupal/Core/Field/Plugin/Field/FieldType/NumericItemBase.php4
-rw-r--r--core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/EntityReferenceAutocompleteWidget.php2
-rw-r--r--core/lib/Drupal/Core/Field/PluginSettingsBase.php2
-rw-r--r--core/lib/Drupal/Core/Form/FormBuilder.php6
-rw-r--r--core/lib/Drupal/Core/Form/form.api.php2
-rw-r--r--core/lib/Drupal/Core/Http/ClientFactory.php2
-rw-r--r--core/lib/Drupal/Core/Installer/Form/SiteSettingsForm.php2
-rw-r--r--core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php2
-rw-r--r--core/lib/Drupal/Core/Lock/DatabaseLockBackend.php6
-rw-r--r--core/lib/Drupal/Core/Render/Element/SystemCompactLink.php2
-rw-r--r--core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php2
-rw-r--r--core/lib/Drupal/Core/Render/RenderCache.php2
-rw-r--r--core/lib/Drupal/Core/Render/Renderer.php2
-rw-r--r--core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/PrimitiveTypeConstraintValidator.php2
-rw-r--r--core/modules/action/src/Form/ActionAdminManageForm.php2
-rw-r--r--core/modules/action/tests/src/Kernel/Migrate/d6/MigrateActionsTest.php2
-rw-r--r--core/modules/action/tests/src/Kernel/Migrate/d7/MigrateActionsTest.php2
-rw-r--r--core/modules/action/tests/src/Kernel/Plugin/Action/EmailActionTest.php2
-rw-r--r--core/modules/aggregator/src/Plugin/aggregator/fetcher/DefaultFetcher.php2
-rw-r--r--core/modules/ban/tests/src/Kernel/Plugin/migrate/source/d7/BlockedIpsTest.php2
-rw-r--r--core/modules/big_pipe/tests/modules/big_pipe_regression_test/src/BigPipeRegressionTestController.php2
-rw-r--r--core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipePlaceholderTestCases.php14
-rw-r--r--core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipeTestController.php2
-rw-r--r--core/modules/block/block.install2
-rw-r--r--core/modules/block/block.post_update.php2
-rw-r--r--core/modules/block/src/BlockListBuilder.php2
-rw-r--r--core/modules/block/tests/modules/block_test/src/Form/FavoriteAnimalTestForm.php2
-rw-r--r--core/modules/block/tests/modules/block_test/src/Form/TestForm.php2
-rw-r--r--core/modules/block/tests/src/Functional/BlockLanguageTest.php2
-rw-r--r--core/modules/block/tests/src/Functional/BlockTest.php6
-rw-r--r--core/modules/block/tests/src/Kernel/Plugin/migrate/source/BlockTest.php6
-rw-r--r--core/modules/block/tests/src/Unit/BlockRepositoryTest.php12
-rw-r--r--core/modules/block_content/src/Controller/BlockContentController.php2
-rw-r--r--core/modules/block_content/src/Plugin/Block/BlockContentBlock.php4
-rw-r--r--core/modules/block_content/src/Plugin/Derivative/BlockContent.php2
-rw-r--r--core/modules/block_content/src/Tests/BlockContentTestBase.php4
-rw-r--r--core/modules/block_content/src/Tests/Views/BlockContentTestBase.php2
-rw-r--r--core/modules/block_content/tests/src/Functional/BlockContentCacheTagsTest.php2
-rw-r--r--core/modules/block_content/tests/src/Functional/BlockContentCreationTest.php10
-rw-r--r--core/modules/block_content/tests/src/Functional/BlockContentSaveTest.php2
-rw-r--r--core/modules/block_content/tests/src/Functional/BlockContentTestBase.php4
-rw-r--r--core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php10
-rw-r--r--core/modules/block_content/tests/src/Functional/BlockContentTypeTest.php2
-rw-r--r--core/modules/block_content/tests/src/Functional/Views/BlockContentTestBase.php2
-rw-r--r--core/modules/book/book.module2
-rw-r--r--core/modules/book/tests/src/Kernel/Migrate/d7/MigrateBookTest.php2
-rw-r--r--core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImageCaption.php2
-rw-r--r--core/modules/ckeditor/src/Plugin/CKEditorPlugin/Language.php2
-rw-r--r--core/modules/ckeditor/src/Plugin/CKEditorPlugin/StylesCombo.php2
-rw-r--r--core/modules/ckeditor/src/Plugin/Editor/CKEditor.php4
-rw-r--r--core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaCss.php2
-rw-r--r--core/modules/ckeditor/tests/src/Kernel/CKEditorPluginManagerTest.php2
-rw-r--r--core/modules/ckeditor/tests/src/Kernel/CKEditorTest.php2
-rw-r--r--core/modules/ckeditor/tests/src/Unit/CKEditorPluginManagerTest.php10
-rw-r--r--core/modules/comment/src/CommentForm.php2
-rw-r--r--core/modules/comment/src/CommentTypeForm.php2
-rw-r--r--core/modules/comment/src/CommentViewsData.php2
-rw-r--r--core/modules/comment/src/Plugin/migrate/source/d6/CommentVariablePerCommentType.php4
-rw-r--r--core/modules/comment/src/Plugin/views/field/StatisticsLastCommentName.php6
-rw-r--r--core/modules/comment/src/Tests/CommentPagerTest.php2
-rw-r--r--core/modules/comment/tests/src/Functional/CommentAdminTest.php4
-rw-r--r--core/modules/comment/tests/src/Functional/CommentCSSTest.php2
-rw-r--r--core/modules/comment/tests/src/Functional/CommentNonNodeTest.php2
-rw-r--r--core/modules/comment/tests/src/Functional/CommentTranslationUITest.php2
-rw-r--r--core/modules/comment/tests/src/Functional/Views/DefaultViewRecentCommentsTest.php2
-rw-r--r--core/modules/comment/tests/src/Kernel/CommentFieldAccessTest.php2
-rw-r--r--core/modules/comment/tests/src/Kernel/CommentValidationTest.php2
-rw-r--r--core/modules/comment/tests/src/Kernel/Views/CommentUserNameTest.php2
-rw-r--r--core/modules/config/src/Form/ConfigSync.php6
-rw-r--r--core/modules/config/tests/config_entity_static_cache_test/src/ConfigOverrider.php2
-rw-r--r--core/modules/config/tests/config_events_test/src/EventSubscriber.php2
-rw-r--r--core/modules/config/tests/src/Functional/ConfigLanguageOverrideWebTest.php2
-rw-r--r--core/modules/config/tests/src/Functional/ConfigSingleImportExportTest.php2
-rw-r--r--core/modules/config_translation/src/ConfigEntityMapper.php2
-rw-r--r--core/modules/config_translation/tests/src/Functional/ConfigTranslationDateFormatUiTest.php2
-rw-r--r--core/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php4
-rw-r--r--core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php2
-rw-r--r--core/modules/config_translation/tests/src/Kernel/Plugin/migrate/source/d6/I18nProfileFieldTest.php4
-rw-r--r--core/modules/config_translation/tests/src/Kernel/Plugin/migrate/source/d6/ProfileFieldTranslationTest.php4
-rw-r--r--core/modules/config_translation/tests/src/Unit/ConfigMapperManagerTest.php2
-rw-r--r--core/modules/contact/tests/drupal-7.contact.database.php2
-rw-r--r--core/modules/contact/tests/src/Functional/ContactPersonalTest.php2
-rw-r--r--core/modules/contact/tests/src/Functional/ContactSitewideTest.php4
-rw-r--r--core/modules/contact/tests/src/Functional/Views/ContactFieldsTest.php2
-rw-r--r--core/modules/contact/tests/src/Kernel/Plugin/migrate/source/d6/ContactSettingsTest.php2
-rw-r--r--core/modules/content_moderation/src/Form/ContentModerationConfigureForm.php4
-rw-r--r--core/modules/content_moderation/src/Plugin/Validation/Constraint/ModerationStateConstraintValidator.php2
-rw-r--r--core/modules/content_moderation/tests/src/Functional/ModerationFormTest.php2
-rw-r--r--core/modules/content_moderation/tests/src/Functional/ViewsModerationStateFilterTest.php4
-rw-r--r--core/modules/content_moderation/tests/src/Kernel/ContentModerationPermissionsTest.php2
-rw-r--r--core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php2
-rw-r--r--core/modules/content_moderation/tests/src/Unit/ContentModerationRouteSubscriberTest.php14
-rw-r--r--core/modules/content_translation/content_translation.admin.inc2
-rw-r--r--core/modules/content_translation/content_translation.install4
-rw-r--r--core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php6
-rw-r--r--core/modules/content_translation/tests/src/Functional/ContentTranslationLanguageChangeTest.php2
-rw-r--r--core/modules/content_translation/tests/src/Functional/ContentTranslationSettingsTest.php2
-rw-r--r--core/modules/content_translation/tests/src/Functional/ContentTranslationUISkipTest.php2
-rw-r--r--core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php6
-rw-r--r--core/modules/content_translation/tests/src/Functional/ContentTranslationUntranslatableFieldsTest.php2
-rw-r--r--core/modules/content_translation/tests/src/Kernel/ContentTranslationConfigImportTest.php2
-rw-r--r--core/modules/contextual/contextual.module2
-rw-r--r--core/modules/contextual/src/Plugin/views/field/ContextualLinks.php4
-rw-r--r--core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php2
-rw-r--r--core/modules/datetime/src/Plugin/Field/FieldType/DateTimeFieldItemList.php8
-rw-r--r--core/modules/datetime/src/Tests/Views/DateTimeHandlerTestBase.php2
-rw-r--r--core/modules/datetime/tests/src/Functional/DateTimeFieldTest.php8
-rw-r--r--core/modules/datetime/tests/src/Kernel/Views/ArgumentDateTimeTest.php2
-rw-r--r--core/modules/datetime/tests/src/Kernel/Views/DateTimeHandlerTestBase.php2
-rw-r--r--core/modules/datetime/tests/src/Kernel/Views/FilterDateTimeTest.php2
-rw-r--r--core/modules/datetime/tests/src/Kernel/Views/SortDateTimeTest.php2
-rw-r--r--core/modules/dblog/dblog.module2
-rw-r--r--core/modules/editor/src/Tests/EditorLoadingTest.php8
-rw-r--r--core/modules/editor/src/Tests/EditorSecurityTest.php10
-rw-r--r--core/modules/editor/src/Tests/EditorUploadImageScaleTest.php4
-rw-r--r--core/modules/editor/src/Tests/QuickEditIntegrationLoadingTest.php6
-rw-r--r--core/modules/editor/tests/src/Kernel/QuickEditIntegrationTest.php2
-rw-r--r--core/modules/editor/tests/src/Unit/EditorXssFilter/StandardTest.php6
-rw-r--r--core/modules/field/src/Tests/EntityReference/EntityReferenceAdminTest.php6
-rw-r--r--core/modules/field/src/Tests/EntityReference/EntityReferenceFileUploadTest.php2
-rw-r--r--core/modules/field/src/Tests/FormTest.php4
-rw-r--r--core/modules/field/src/Tests/Number/NumberFieldTest.php18
-rw-r--r--core/modules/field/src/Tests/String/StringFieldTest.php2
-rw-r--r--core/modules/field/src/Tests/reEnableModuleFieldTest.php2
-rw-r--r--core/modules/field/tests/fixtures/update/drupal-8.views_entity_reference_plugins-2429191.php2
-rw-r--r--core/modules/field/tests/modules/field_test/src/Form/NestedEntityTestForm.php2
-rw-r--r--core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItem.php2
-rw-r--r--core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItemWithPreconfiguredOptions.php2
-rw-r--r--core/modules/field/tests/src/Functional/Boolean/BooleanFieldTest.php2
-rw-r--r--core/modules/field/tests/src/Functional/EntityReference/EntityReferenceXSSTest.php2
-rw-r--r--core/modules/field/tests/src/Functional/EntityReference/Views/SelectionTest.php2
-rw-r--r--core/modules/field/tests/src/Kernel/Boolean/BooleanFormatterTest.php2
-rw-r--r--core/modules/field/tests/src/Kernel/BulkDeleteTest.php8
-rw-r--r--core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php2
-rw-r--r--core/modules/field/tests/src/Kernel/FieldKernelTestBase.php2
-rw-r--r--core/modules/field/tests/src/Kernel/FieldStorageCrudTest.php4
-rw-r--r--core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldFormatterSettingsTest.php2
-rw-r--r--core/modules/field/tests/src/Kernel/Plugin/migrate/source/d6/FieldInstancePerFormDisplayTest.php2
-rw-r--r--core/modules/field/tests/src/Kernel/Plugin/migrate/source/d7/FieldInstancePerFormDisplayTest.php2
-rw-r--r--core/modules/field/tests/src/Kernel/TestItemWithDependenciesTest.php2
-rw-r--r--core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php6
-rw-r--r--core/modules/field_ui/src/Element/FieldUiTable.php2
-rw-r--r--core/modules/field_ui/src/FieldConfigListBuilder.php4
-rw-r--r--core/modules/field_ui/src/FieldUiPermissions.php4
-rw-r--r--core/modules/field_ui/src/Form/EntityDisplayFormBase.php6
-rw-r--r--core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php4
-rw-r--r--core/modules/field_ui/src/Form/FieldConfigEditForm.php2
-rw-r--r--core/modules/field_ui/src/Form/FieldStorageConfigEditForm.php2
-rw-r--r--core/modules/field_ui/src/Tests/ManageDisplayTest.php2
-rw-r--r--core/modules/field_ui/src/Tests/ManageFieldsTest.php4
-rw-r--r--core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php8
-rw-r--r--core/modules/field_ui/tests/src/Kernel/EntityFormDisplayTest.php6
-rw-r--r--core/modules/file/src/Tests/FileFieldWidgetTest.php2
-rw-r--r--core/modules/file/src/Tests/SaveUploadFormTest.php14
-rw-r--r--core/modules/file/src/Tests/SaveUploadTest.php10
-rw-r--r--core/modules/file/tests/fixtures/update/drupal-8.file_formatters_update_2677990.php2
-rw-r--r--core/modules/file/tests/src/Kernel/AccessTest.php2
-rw-r--r--core/modules/file/tests/src/Kernel/FileItemValidationTest.php8
-rw-r--r--core/modules/file/tests/src/Kernel/UsageTest.php4
-rw-r--r--core/modules/file/tests/src/Kernel/Views/FileViewsFieldAccessTest.php2
-rw-r--r--core/modules/file/tests/src/Unit/Plugin/migrate/cckfield/d6/FileCckTest.php2
-rw-r--r--core/modules/file/tests/src/Unit/Plugin/migrate/cckfield/d7/FileCckTest.php2
-rw-r--r--core/modules/file/tests/src/Unit/Plugin/migrate/field/d6/FileFieldTest.php2
-rw-r--r--core/modules/file/tests/src/Unit/Plugin/migrate/field/d7/FileFieldTest.php2
-rw-r--r--core/modules/filter/filter.module2
-rw-r--r--core/modules/filter/src/FilterPermissions.php2
-rw-r--r--core/modules/filter/src/FilterProcessResult.php2
-rw-r--r--core/modules/filter/src/Plugin/Filter/FilterHtml.php2
-rw-r--r--core/modules/filter/tests/src/Kernel/FilterAPITest.php10
-rw-r--r--core/modules/filter/tests/src/Kernel/FilterKernelTest.php16
-rw-r--r--core/modules/filter/tests/src/Unit/FilterUninstallValidatorTest.php2
-rw-r--r--core/modules/forum/forum.views.inc2
-rw-r--r--core/modules/forum/src/Form/Overview.php2
-rw-r--r--core/modules/forum/src/ForumManager.php4
-rw-r--r--core/modules/forum/src/ForumSettingsForm.php2
-rw-r--r--core/modules/forum/src/ForumUninstallValidator.php2
-rw-r--r--core/modules/forum/tests/src/Functional/Views/ForumIntegrationTest.php6
-rw-r--r--core/modules/hal/tests/fixtures/update/drupal-8.rest-hal_update_8301.phpbin4891 -> 4892 bytes
-rw-r--r--core/modules/hal/tests/src/Functional/EntityResource/Comment/CommentHalJsonTestBase.php4
-rw-r--r--core/modules/hal/tests/src/Functional/EntityResource/EntityTest/EntityTestHalJsonAnonTest.php2
-rw-r--r--core/modules/hal/tests/src/Functional/EntityResource/Feed/FeedHalJsonTestBase.php6
-rw-r--r--core/modules/hal/tests/src/Functional/EntityResource/File/FileUploadHalJsonTestBase.php2
-rw-r--r--core/modules/hal/tests/src/Functional/EntityResource/Media/MediaHalJsonAnonTest.php2
-rw-r--r--core/modules/hal/tests/src/Functional/EntityResource/Node/NodeHalJsonAnonTest.php4
-rw-r--r--core/modules/hal/tests/src/Kernel/EntityTranslationNormalizeTest.php4
-rw-r--r--core/modules/hal/tests/src/Kernel/HalLinkManagerTest.php12
-rw-r--r--core/modules/hal/tests/src/Kernel/NormalizeTest.php2
-rw-r--r--core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatter.php2
-rw-r--r--core/modules/image/tests/src/Functional/ImageFieldDefaultImagesTest.php4
-rw-r--r--core/modules/image/tests/src/Functional/ImageFieldValidateTest.php12
-rw-r--r--core/modules/image/tests/src/Kernel/ImageImportTest.php2
-rw-r--r--core/modules/image/tests/src/Kernel/ImageThemeFunctionTest.php2
-rw-r--r--core/modules/language/src/Form/LanguageFormBase.php4
-rw-r--r--core/modules/language/src/Form/NegotiationConfigureForm.php2
-rw-r--r--core/modules/language/tests/src/Functional/LanguageConfigurationElementTest.php6
-rw-r--r--core/modules/language/tests/src/Functional/LanguageNegotiationContentEntityTest.php4
-rw-r--r--core/modules/language/tests/src/Functional/LanguageUrlRewritingTest.php2
-rw-r--r--core/modules/language/tests/src/Kernel/EntityUrlLanguageTest.php4
-rw-r--r--core/modules/language/tests/src/Kernel/Views/FilterLanguageTest.php2
-rw-r--r--core/modules/link/src/Plugin/Field/FieldType/LinkItem.php2
-rw-r--r--core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php2
-rw-r--r--core/modules/link/src/Tests/Views/LinkViewsTokensTest.php2
-rw-r--r--core/modules/locale/locale.batch.inc2
-rw-r--r--core/modules/locale/tests/src/Functional/LocaleConfigTranslationImportTest.php6
-rw-r--r--core/modules/locale/tests/src/Functional/LocaleFileSystemFormTest.php2
-rw-r--r--core/modules/locale/tests/src/Functional/LocaleUpdateInterfaceTest.php2
-rw-r--r--core/modules/menu_ui/tests/src/FunctionalJavascript/MenuUiJavascriptTest.php4
-rw-r--r--core/modules/migrate/tests/src/Functional/process/DownloadFunctionalTest.php2
-rw-r--r--core/modules/migrate/tests/src/Kernel/MigrateConfigRollbackTest.php8
-rw-r--r--core/modules/migrate/tests/src/Kernel/MigrateRollbackEntityConfigTest.php6
-rw-r--r--core/modules/migrate/tests/src/Kernel/Plugin/MigrationTest.php4
-rw-r--r--core/modules/migrate/tests/src/Kernel/process/FileCopyTest.php12
-rw-r--r--core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php2
-rw-r--r--core/modules/migrate/tests/src/Unit/MigrateSqlIdMapEnsureTablesTest.php4
-rw-r--r--core/modules/migrate/tests/src/Unit/process/CallbackTest.php4
-rw-r--r--core/modules/migrate/tests/src/Unit/process/FormatDateTest.php2
-rw-r--r--core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/d8/ConfigTest.php2
-rw-r--r--core/modules/migrate_drupal/tests/src/Unit/source/d6/VariableTranslationTest.php2
-rw-r--r--core/modules/migrate_drupal/tests/src/Unit/source/d6/i18nVariableTest.php2
-rw-r--r--core/modules/node/node.admin.inc2
-rw-r--r--core/modules/node/node.api.php4
-rw-r--r--core/modules/node/node.module4
-rw-r--r--core/modules/node/src/Form/NodePreviewForm.php2
-rw-r--r--core/modules/node/src/NodeForm.php2
-rw-r--r--core/modules/node/src/NodeTypeListBuilder.php2
-rw-r--r--core/modules/node/src/NodeViewBuilder.php2
-rw-r--r--core/modules/node/src/NodeViewsData.php2
-rw-r--r--core/modules/node/src/Plugin/Search/NodeSearch.php4
-rw-r--r--core/modules/node/src/Plugin/views/wizard/Node.php2
-rw-r--r--core/modules/node/src/Tests/NodeRevisionsTest.php2
-rw-r--r--core/modules/node/src/Tests/NodeTestBase.php2
-rw-r--r--core/modules/node/src/Tests/NodeTypeTest.php2
-rw-r--r--core/modules/node/src/Tests/PagePreviewTest.php2
-rw-r--r--core/modules/node/tests/src/Functional/NodeAccessFieldTest.php2
-rw-r--r--core/modules/node/tests/src/Functional/NodeAccessMenuLinkTest.php2
-rw-r--r--core/modules/node/tests/src/Functional/NodeAccessRebuildNodeGrantsTest.php2
-rw-r--r--core/modules/node/tests/src/Functional/NodePreviewAnonymousTest.php2
-rw-r--r--core/modules/node/tests/src/Functional/NodeRevisionsAllTest.php6
-rw-r--r--core/modules/node/tests/src/Functional/NodeTestBase.php2
-rw-r--r--core/modules/node/tests/src/Functional/NodeTranslationUITest.php2
-rw-r--r--core/modules/node/tests/src/Functional/NodeViewTest.php2
-rw-r--r--core/modules/node/tests/src/Functional/Views/FrontPageTest.php2
-rw-r--r--core/modules/node/tests/src/Functional/Views/NodeLanguageTest.php2
-rw-r--r--core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeBundleSettingsTest.php2
-rw-r--r--core/modules/options/tests/src/Kernel/Views/OptionsListFilterTest.php6
-rw-r--r--core/modules/page_cache/tests/src/Functional/PageCacheTest.php2
-rw-r--r--core/modules/path/src/Form/PathFormBase.php2
-rw-r--r--core/modules/path/tests/src/Kernel/PathNoCanonicalLinkTest.php2
-rw-r--r--core/modules/quickedit/src/QuickEditController.php4
-rw-r--r--core/modules/quickedit/src/Tests/QuickEditLoadingTest.php6
-rw-r--r--core/modules/quickedit/tests/src/Kernel/MetadataGeneratorTest.php2
-rw-r--r--core/modules/quickedit/tests/src/Kernel/QuickEditTestBase.php2
-rw-r--r--core/modules/rdf/tests/src/Functional/UserAttributesTest.php2
-rw-r--r--core/modules/responsive_image/src/ResponsiveImageStyleForm.php2
-rw-r--r--core/modules/responsive_image/src/Tests/ResponsiveImageFieldDisplayTest.php2
-rw-r--r--core/modules/responsive_image/src/Tests/ResponsiveImageFieldUiTest.php2
-rw-r--r--core/modules/responsive_image/tests/src/Unit/ResponsiveImageStyleConfigEntityUnitTest.php2
-rw-r--r--core/modules/rest/rest.post_update.php2
-rw-r--r--core/modules/rest/src/Entity/RestResourceConfig.php2
-rw-r--r--core/modules/rest/src/Tests/RESTTestBase.php2
-rw-r--r--core/modules/rest/tests/fixtures/update/drupal-8.rest-rest_update_8201.php2
-rw-r--r--core/modules/rest/tests/fixtures/update/drupal-8.rest-rest_update_8203.php2
-rw-r--r--core/modules/rest/tests/src/Functional/EntityResource/EntityTest/EntityTestResourceTestBase.php12
-rw-r--r--core/modules/rest/tests/src/Functional/EntityResource/EntityTest/EntityTestTextItemNormalizerTest.php2
-rw-r--r--core/modules/rest/tests/src/Functional/EntityResource/Feed/FeedResourceTestBase.php60
-rw-r--r--core/modules/rest/tests/src/Functional/EntityResource/Term/TermResourceTestBase.php8
-rw-r--r--core/modules/rest/tests/src/Functional/ResourceTest.php2
-rw-r--r--core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php2
-rw-r--r--core/modules/rest/tests/src/Kernel/Entity/ConfigDependenciesTest.php6
-rw-r--r--core/modules/search/search.module2
-rw-r--r--core/modules/search/src/SearchPageListBuilder.php6
-rw-r--r--core/modules/search/src/Tests/SearchPageCacheTagsTest.php2
-rw-r--r--core/modules/search/tests/src/Kernel/SearchMatchTest.php2
-rw-r--r--core/modules/shortcut/tests/src/Functional/ShortcutTranslationUITest.php2
-rw-r--r--core/modules/shortcut/tests/src/Kernel/Plugin/migrate/source/d7/ShortcutTest.php2
-rw-r--r--core/modules/simpletest/src/Form/SimpletestResultsForm.php2
-rw-r--r--core/modules/simpletest/src/Tests/KernelTestBaseTest.php4
-rw-r--r--core/modules/simpletest/src/Tests/MissingCheckedRequirementsTest.php2
-rw-r--r--core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php2
-rw-r--r--core/modules/simpletest/src/WebTestBase.php4
-rw-r--r--core/modules/statistics/src/Plugin/Block/StatisticsPopularBlock.php2
-rw-r--r--core/modules/statistics/tests/src/Functional/StatisticsAttachedTest.php2
-rw-r--r--core/modules/system/src/Controller/DbUpdateController.php2
-rw-r--r--core/modules/system/src/Form/PrepareModulesEntityUninstallForm.php2
-rw-r--r--core/modules/system/src/Form/RegionalForm.php4
-rw-r--r--core/modules/system/src/Form/RssFeedsForm.php6
-rw-r--r--core/modules/system/src/Form/ThemeSettingsForm.php4
-rw-r--r--core/modules/system/src/Tests/Ajax/DialogTest.php4
-rw-r--r--core/modules/system/src/Tests/Common/SimpleTestErrorCollectorTest.php2
-rw-r--r--core/modules/system/src/Tests/Path/UrlAliasFixtures.php10
-rw-r--r--core/modules/system/src/Tests/Session/SessionTest.php2
-rw-r--r--core/modules/system/src/Tests/System/HtaccessTest.php4
-rw-r--r--core/modules/system/src/Tests/Theme/FunctionsTest.php4
-rw-r--r--core/modules/system/src/Tests/Theme/TwigTransTest.php4
-rw-r--r--core/modules/system/system.api.php2
-rw-r--r--core/modules/system/system.install4
-rw-r--r--core/modules/system/tests/fixtures/update/drupal-8.block-context-manager-2354889.php2
-rw-r--r--core/modules/system/tests/fixtures/update/drupal-8.local-actions-tasks-into-blocks-507488.php4
-rw-r--r--core/modules/system/tests/fixtures/update/drupal-8.page-title-into-block-2476947.php4
-rw-r--r--core/modules/system/tests/fixtures/update/drupal-8.seven-secondary-local-tasks-block-2569529.php2
-rw-r--r--core/modules/system/tests/fixtures/update/drupal-8.site-branding-into-block-2005546.php4
-rw-r--r--core/modules/system/tests/fixtures/update/drupal-8.stable-base-theme-2575421.php2
-rw-r--r--core/modules/system/tests/fixtures/update/drupal-8.update-test-block-disabled-2513534.php2
-rw-r--r--core/modules/system/tests/modules/ajax_test/src/Controller/AjaxTestController.php8
-rw-r--r--core/modules/system/tests/modules/ajax_test/src/Form/AjaxTestDialogForm.php2
-rw-r--r--core/modules/system/tests/modules/batch_test/src/Controller/BatchTestController.php4
-rw-r--r--core/modules/system/tests/modules/database_test/database_test.install8
-rw-r--r--core/modules/system/tests/modules/early_rendering_controller_test/src/EarlyRenderingTestController.php2
-rw-r--r--core/modules/system/tests/modules/entity_test/entity_test.module2
-rw-r--r--core/modules/system/tests/modules/entity_test/src/Plugin/Field/FieldWidget/ShapeOnlyColorEditableWidget.php2
-rw-r--r--core/modules/system/tests/modules/error_test/src/Controller/ErrorTestController.php2
-rw-r--r--core/modules/system/tests/modules/form_test/src/Form/FormTestMachineNameForm.php4
-rw-r--r--core/modules/system/tests/modules/js_webassert_test/src/Form/JsWebAssertTestForm.php2
-rw-r--r--core/modules/system/tests/modules/menu_test/src/TestControllers.php6
-rw-r--r--core/modules/system/tests/modules/pager_test/src/Controller/PagerTestController.php2
-rw-r--r--core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockMenuBlockDeriver.php2
-rw-r--r--core/modules/system/tests/modules/twig_extension_test/src/TwigExtensionTestController.php4
-rw-r--r--core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php2
-rw-r--r--core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php2
-rw-r--r--core/modules/system/tests/src/Functional/Entity/Update/MoveRevisionMetadataFieldsUpdateTest.php4
-rw-r--r--core/modules/system/tests/src/Functional/FileTransfer/FileTransferTest.php6
-rw-r--r--core/modules/system/tests/src/Functional/Form/LanguageSelectElementTest.php2
-rw-r--r--core/modules/system/tests/src/Functional/Render/AjaxPageStateTest.php6
-rw-r--r--core/modules/system/tests/src/Functional/Update/RecalculatedDependencyTest.php2
-rw-r--r--core/modules/system/tests/src/Kernel/Block/SystemMenuBlockTest.php8
-rw-r--r--core/modules/system/tests/src/Kernel/Form/ProgrammaticTest.php2
-rw-r--r--core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php8
-rw-r--r--core/modules/system/tests/src/Unit/Menu/MenuLinkTreeTest.php6
-rw-r--r--core/modules/taxonomy/src/Plugin/EntityReferenceSelection/TermSelection.php2
-rw-r--r--core/modules/taxonomy/src/Plugin/migrate/source/d7/Vocabulary.php2
-rw-r--r--core/modules/taxonomy/src/TermViewsData.php4
-rw-r--r--core/modules/taxonomy/src/Tests/TermAutocompleteTest.php2
-rw-r--r--core/modules/taxonomy/src/VocabularyListBuilder.php2
-rw-r--r--core/modules/taxonomy/tests/src/Functional/Views/TaxonomyIndexTidUiTest.php2
-rw-r--r--core/modules/taxonomy/tests/src/Functional/VocabularyCrudTest.php2
-rw-r--r--core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTest.php2
-rw-r--r--core/modules/telephone/src/Plugin/Field/FieldType/TelephoneItem.php2
-rw-r--r--core/modules/telephone/tests/src/Functional/TelephoneFieldTest.php2
-rw-r--r--core/modules/text/src/Plugin/Field/FieldType/TextItem.php2
-rw-r--r--core/modules/text/src/Tests/TextFieldTest.php8
-rw-r--r--core/modules/text/tests/src/Kernel/TextWithSummaryItemTest.php2
-rw-r--r--core/modules/text/tests/src/Unit/Migrate/TextCckTest.php4
-rw-r--r--core/modules/text/tests/src/Unit/Migrate/d6/TextFieldTest.php4
-rw-r--r--core/modules/text/tests/src/Unit/Plugin/migrate/cckfield/TextCckTest.php4
-rw-r--r--core/modules/text/tests/src/Unit/Plugin/migrate/field/d6/TextFieldTest.php4
-rw-r--r--core/modules/tour/src/Tests/TourTest.php2
-rw-r--r--core/modules/tour/tests/src/Functional/TourTest.php4
-rw-r--r--core/modules/tracker/tests/src/Functional/Views/TrackerUserUidTest.php2
-rw-r--r--core/modules/tracker/tests/src/Kernel/Plugin/migrate/source/d7/TrackerNodeTest.php2
-rw-r--r--core/modules/tracker/tests/src/Kernel/Plugin/migrate/source/d7/TrackerUserTest.php2
-rw-r--r--core/modules/tracker/tracker.views.inc2
-rw-r--r--core/modules/update/src/Controller/UpdateController.php2
-rw-r--r--core/modules/update/src/UpdateSettingsForm.php2
-rw-r--r--core/modules/update/update.authorize.inc2
-rw-r--r--core/modules/update/update.report.inc4
-rw-r--r--core/modules/user/src/AccountForm.php4
-rw-r--r--core/modules/user/src/AccountSettingsForm.php4
-rw-r--r--core/modules/user/src/Entity/User.php2
-rw-r--r--core/modules/user/src/Plugin/views/wizard/Users.php2
-rw-r--r--core/modules/user/src/UserViewsData.php2
-rw-r--r--core/modules/user/tests/fixtures/update/drupal-8.user-email-token-2587275.php2
-rw-r--r--core/modules/user/tests/src/Functional/UserAdminTest.php4
-rw-r--r--core/modules/user/tests/src/Functional/UserMailNotifyTest.php2
-rw-r--r--core/modules/user/tests/src/Functional/Views/HandlerFilterUserNameTest.php6
-rw-r--r--core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php6
-rw-r--r--core/modules/user/tests/src/Kernel/Plugin/migrate/source/ProfileFieldTest.php4
-rw-r--r--core/modules/user/tests/src/Unit/PermissionAccessCheckTest.php2
-rw-r--r--core/modules/user/tests/src/Unit/PermissionHandlerTest.php2
-rw-r--r--core/modules/user/tests/src/Unit/Views/Argument/RolesRidTest.php2
-rw-r--r--core/modules/user/user.module4
-rw-r--r--core/modules/views/src/Entity/View.php2
-rw-r--r--core/modules/views/src/EntityViewsData.php2
-rw-r--r--core/modules/views/src/Form/ViewsExposedForm.php2
-rw-r--r--core/modules/views/src/Plugin/Derivative/DefaultWizardDeriver.php2
-rw-r--r--core/modules/views/src/Plugin/Derivative/ViewsExposedFilterBlock.php4
-rw-r--r--core/modules/views/src/Plugin/views/PluginBase.php2
-rw-r--r--core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php4
-rw-r--r--core/modules/views/src/Plugin/views/display/DisplayPluginBase.php8
-rw-r--r--core/modules/views/src/Plugin/views/display/Page.php4
-rw-r--r--core/modules/views/src/Plugin/views/field/EntityField.php4
-rw-r--r--core/modules/views/src/Plugin/views/field/FieldPluginBase.php4
-rw-r--r--core/modules/views/src/Plugin/views/field/PrerenderList.php4
-rw-r--r--core/modules/views/src/Plugin/views/filter/FilterPluginBase.php4
-rw-r--r--core/modules/views/src/Plugin/views/filter/NumericFilter.php2
-rw-r--r--core/modules/views/src/Plugin/views/filter/StringFilter.php2
-rw-r--r--core/modules/views/src/Plugin/views/join/JoinPluginBase.php2
-rw-r--r--core/modules/views/src/Plugin/views/query/Sql.php6
-rw-r--r--core/modules/views/src/Plugin/views/relationship/EntityReverse.php4
-rw-r--r--core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php2
-rw-r--r--core/modules/views/src/Tests/FieldApiDataTest.php6
-rw-r--r--core/modules/views/src/Tests/ViewTestData.php2
-rw-r--r--core/modules/views/tests/modules/views_test_data/src/Plugin/views/query/QueryTest.php2
-rw-r--r--core/modules/views/tests/modules/views_test_data/views_test_data.install2
-rw-r--r--core/modules/views/tests/src/Functional/DefaultViewsTest.php2
-rw-r--r--core/modules/views/tests/src/Functional/Entity/FieldEntityTest.php2
-rw-r--r--core/modules/views/tests/src/Functional/Entity/FilterEntityBundleTest.php2
-rw-r--r--core/modules/views/tests/src/Functional/GlossaryTest.php2
-rw-r--r--core/modules/views/tests/src/Functional/Handler/AreaTest.php4
-rw-r--r--core/modules/views/tests/src/Functional/Handler/FieldWebTest.php12
-rw-r--r--core/modules/views/tests/src/Functional/Plugin/ArgumentDefaultTest.php4
-rw-r--r--core/modules/views/tests/src/Functional/Plugin/CacheWebTest.php6
-rw-r--r--core/modules/views/tests/src/Functional/Plugin/ContextualFiltersBlockContextTest.php2
-rw-r--r--core/modules/views/tests/src/Functional/Plugin/DisplayTest.php2
-rw-r--r--core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php10
-rw-r--r--core/modules/views/tests/src/Functional/Plugin/PagerTest.php2
-rw-r--r--core/modules/views/tests/src/Functional/Plugin/ViewsBulkTest.php4
-rw-r--r--core/modules/views/tests/src/Functional/Update/ArgumentPlaceholderUpdatePathTest.php2
-rw-r--r--core/modules/views/tests/src/Functional/Update/BulkFormUpdateTest.php2
-rw-r--r--core/modules/views/tests/src/Kernel/Entity/ViewEntityDependenciesTest.php20
-rw-r--r--core/modules/views/tests/src/Kernel/Handler/AreaEmptyTest.php4
-rw-r--r--core/modules/views/tests/src/Kernel/Handler/FieldCounterTest.php2
-rw-r--r--core/modules/views/tests/src/Kernel/Handler/FieldFieldTest.php6
-rw-r--r--core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php2
-rw-r--r--core/modules/views/tests/src/Kernel/Handler/SortTranslationTest.php2
-rw-r--r--core/modules/views/tests/src/Kernel/Plugin/ArgumentValidatorTest.php4
-rw-r--r--core/modules/views/tests/src/Kernel/Plugin/BlockDependenciesTest.php4
-rw-r--r--core/modules/views/tests/src/Kernel/Plugin/CacheTest.php12
-rw-r--r--core/modules/views/tests/src/Kernel/Plugin/Display/ViewsMenuLinkTest.php2
-rw-r--r--core/modules/views/tests/src/Kernel/Plugin/FieldOrLanguageJoinTest.php6
-rw-r--r--core/modules/views/tests/src/Kernel/Plugin/JoinTest.php10
-rw-r--r--core/modules/views/tests/src/Kernel/Plugin/RelationshipJoinTestBase.php6
-rw-r--r--core/modules/views/tests/src/Kernel/Plugin/RelationshipTest.php8
-rw-r--r--core/modules/views/tests/src/Kernel/Plugin/ViewsBlockTest.php4
-rw-r--r--core/modules/views/tests/src/Kernel/ViewStorageTest.php14
-rw-r--r--core/modules/views/tests/src/Unit/EntityViewsDataTest.php6
-rw-r--r--core/modules/views/tests/src/Unit/Plugin/Derivative/ViewsLocalTaskTest.php2
-rw-r--r--core/modules/views/tests/src/Unit/Plugin/HandlerBaseTest.php2
-rw-r--r--core/modules/views/tests/src/Unit/Plugin/area/ViewTest.php2
-rw-r--r--core/modules/views/tests/src/Unit/Plugin/field/FieldTest.php12
-rw-r--r--core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php2
-rw-r--r--core/modules/views/tests/src/Unit/Plugin/views/field/EntityOperationsUnitTest.php4
-rw-r--r--core/modules/views/tests/src/Unit/Plugin/views/query/SqliteDateSqlTest.php2
-rw-r--r--core/modules/views/tests/src/Unit/PluginBaseTest.php2
-rw-r--r--core/modules/views/tests/src/Unit/ViewExecutableTest.php6
-rw-r--r--core/modules/views/tests/src/Unit/ViewsTest.php2
-rw-r--r--core/modules/views/views.theme.inc4
-rw-r--r--core/modules/views_ui/admin.inc2
-rw-r--r--core/modules/views_ui/src/Form/AdvancedSettingsForm.php2
-rw-r--r--core/modules/views_ui/src/Form/Ajax/Rearrange.php2
-rw-r--r--core/modules/views_ui/src/Form/Ajax/ReorderDisplays.php4
-rw-r--r--core/modules/views_ui/src/Tests/RowUITest.php4
-rw-r--r--core/modules/views_ui/src/ViewPreviewForm.php2
-rw-r--r--core/modules/views_ui/src/ViewUI.php2
-rw-r--r--core/modules/views_ui/tests/src/Functional/DisplayPathTest.php2
-rw-r--r--core/modules/views_ui/tests/src/Functional/DisplayTest.php4
-rw-r--r--core/modules/views_ui/tests/src/Functional/HandlerTest.php10
-rw-r--r--core/modules/views_ui/tests/src/Functional/StyleUITest.php4
-rw-r--r--core/modules/views_ui/tests/src/Functional/ViewsUITourTest.php2
-rw-r--r--core/modules/views_ui/tests/src/Unit/ViewListBuilderTest.php6
-rw-r--r--core/modules/views_ui/views_ui.module2
-rw-r--r--core/modules/views_ui/views_ui.theme.inc4
-rw-r--r--core/modules/workflows/src/Form/WorkflowEditForm.php8
-rw-r--r--core/modules/workflows/src/Form/WorkflowStateEditForm.php8
-rw-r--r--core/modules/workflows/src/Form/WorkflowTransitionEditForm.php4
-rw-r--r--core/modules/workflows/src/WorkflowListBuilder.php2
-rw-r--r--core/modules/workspace/tests/src/Functional/EntityResource/WorkspaceResourceTestBase.php2
-rw-r--r--core/modules/workspace/tests/src/Kernel/WorkspaceIntegrationTest.php2
-rw-r--r--core/phpcs.xml.dist6
-rw-r--r--core/tests/Drupal/FunctionalTests/Entity/ContentEntityFormFieldValidationFilteringTest.php2
-rw-r--r--core/tests/Drupal/FunctionalTests/HttpKernel/CorsIntegrationTest.php2
-rw-r--r--core/tests/Drupal/FunctionalTests/Routing/CaseInsensitivePathTest.php8
-rw-r--r--core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Config/CacheabilityMetadataConfigOverrideTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Config/ConfigDependencyTest.php18
-rw-r--r--core/tests/Drupal/KernelTests/Core/Config/ConfigEntityNormalizeTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Config/ConfigEntityUnitTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Config/ConfigImportRenameValidationTest.php6
-rw-r--r--core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php8
-rw-r--r--core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php4
-rw-r--r--core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php6
-rw-r--r--core/tests/Drupal/KernelTests/Core/Entity/EntityAccessControlHandlerTest.php4
-rw-r--r--core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Entity/EntityLoadByUuidTest.php4
-rw-r--r--core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php8
-rw-r--r--core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceFieldTest.php4
-rw-r--r--core/tests/Drupal/KernelTests/Core/Entity/FieldSqlStorageTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Entity/FieldWidgetConstraintValidatorTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Entity/RouteProviderTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Field/FieldSettingsTest.php6
-rw-r--r--core/tests/Drupal/KernelTests/Core/File/MimeTypeTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php4
-rw-r--r--core/tests/Drupal/KernelTests/Core/Render/Element/TableTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Render/RenderTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Site/SettingsRewriteTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/StringTranslation/TranslationStringTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Theme/RegistryTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Theme/ThemeRenderAndAutoescapeTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Theme/TwigMarkupInterfaceTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/TypedData/ComplexDataConstraintValidatorTest.php4
-rw-r--r--core/tests/Drupal/KernelTests/Core/TypedData/TypedDataTest.php2
-rw-r--r--core/tests/Drupal/Tests/BrowserTestBase.php2
-rw-r--r--core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php4
-rw-r--r--core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php2
-rw-r--r--core/tests/Drupal/Tests/Component/FileSystem/RegexDirectoryIteratorTest.php2
-rw-r--r--core/tests/Drupal/Tests/Component/Serialization/YamlTestBase.php2
-rw-r--r--core/tests/Drupal/Tests/Component/Utility/ColorTest.php2
-rw-r--r--core/tests/Drupal/Tests/Component/Utility/NestedArrayTest.php2
-rw-r--r--core/tests/Drupal/Tests/Component/Utility/SortArrayTest.php44
-rw-r--r--core/tests/Drupal/Tests/Component/Utility/XssTest.php10
-rw-r--r--core/tests/Drupal/Tests/Core/Annotation/TranslationTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Asset/AssetResolverTest.php4
-rw-r--r--core/tests/Drupal/Tests/Core/Asset/CssCollectionRendererUnitTest.php4
-rw-r--r--core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Command/QuickStartTest.php6
-rw-r--r--core/tests/Drupal/Tests/Core/Common/AttributesTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php8
-rw-r--r--core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityDependencyTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Config/Entity/Query/QueryFactoryTest.php16
-rw-r--r--core/tests/Drupal/Tests/Core/Config/StorageComparerTest.php4
-rw-r--r--core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Datetime/DateHelperTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php8
-rw-r--r--core/tests/Drupal/Tests/Core/DrupalKernel/DiscoverServiceProvidersTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/DrupalKernel/DrupalKernelTest.php12
-rw-r--r--core/tests/Drupal/Tests/Core/Entity/BaseFieldDefinitionTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php4
-rw-r--r--core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php20
-rw-r--r--core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php4
-rw-r--r--core/tests/Drupal/Tests/Core/EntityReferenceSelection/EntityReferenceSelectionUnitTest.php4
-rw-r--r--core/tests/Drupal/Tests/Core/EventSubscriber/ExceptionJsonSubscriberTest.php4
-rw-r--r--core/tests/Drupal/Tests/Core/EventSubscriber/RssResponseRelativeUrlFilterTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php4
-rw-r--r--core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php24
-rw-r--r--core/tests/Drupal/Tests/Core/File/FileSystemTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Form/ConfigFormBaseTraitTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Form/FormAjaxResponseBuilderTest.php8
-rw-r--r--core/tests/Drupal/Tests/Core/Form/FormCacheTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php20
-rw-r--r--core/tests/Drupal/Tests/Core/Menu/MenuLinkDefaultFormTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Menu/StaticMenuLinkOverridesTest.php8
-rw-r--r--core/tests/Drupal/Tests/Core/ParamConverter/ParamConverterManagerTest.php4
-rw-r--r--core/tests/Drupal/Tests/Core/PathProcessor/PathProcessorTest.php6
-rw-r--r--core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php6
-rw-r--r--core/tests/Drupal/Tests/Core/Render/Element/MachineNameTest.php4
-rw-r--r--core/tests/Drupal/Tests/Core/Render/Element/TableSelectTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Render/ElementTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php6
-rw-r--r--core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Render/RendererRecursionTest.php12
-rw-r--r--core/tests/Drupal/Tests/Core/Render/RendererTest.php16
-rw-r--r--core/tests/Drupal/Tests/Core/Routing/RoutingFixtures.php4
-rw-r--r--core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php4
-rw-r--r--core/tests/Drupal/Tests/Core/Test/TestDatabaseTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Test/TestSuiteBaseTest.php4
-rw-r--r--core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php6
-rw-r--r--core/tests/Drupal/Tests/Core/Update/UpdateRegistryTest.php30
-rw-r--r--core/tests/Drupal/Tests/Core/Utility/TokenTest.php8
571 files changed, 1127 insertions, 1121 deletions
diff --git a/core/includes/common.inc b/core/includes/common.inc
index de294df..58ede55 100644
--- a/core/includes/common.inc
+++ b/core/includes/common.inc
@@ -715,7 +715,7 @@ function drupal_attach_tabledrag(&$element, array $options) {
'subgroup' => NULL,
'source' => NULL,
'hidden' => TRUE,
- 'limit' => 0
+ 'limit' => 0,
];
$group = $options['group'];
diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc
index 890af7a..a8af37a 100644
--- a/core/includes/install.core.inc
+++ b/core/includes/install.core.inc
@@ -2050,7 +2050,7 @@ function install_check_requirements($install_state) {
'severity' => REQUIREMENT_ERROR,
'description' => t('The @drupal installer requires that the %default-file file not be modified in any way from the original download.', [
'@drupal' => drupal_install_profile_distribution_name(),
- '%default-file' => $default_file
+ '%default-file' => $default_file,
]),
];
}
@@ -2111,7 +2111,7 @@ function install_check_requirements($install_state) {
'@drupal' => drupal_install_profile_distribution_name(),
'%file' => $file,
'%default_file' => $default_file,
- ':install_txt' => base_path() . 'core/INSTALL.txt'
+ ':install_txt' => base_path() . 'core/INSTALL.txt',
]),
];
}
@@ -2129,7 +2129,7 @@ function install_check_requirements($install_state) {
'description' => t('@drupal requires read permissions to %file at all times. The <a href=":handbook_url">webhosting issues</a> documentation section offers help on this and other topics.', [
'@drupal' => drupal_install_profile_distribution_name(),
'%file' => $file,
- ':handbook_url' => 'https://www.drupal.org/server-permissions'
+ ':handbook_url' => 'https://www.drupal.org/server-permissions',
]),
];
}
@@ -2142,7 +2142,7 @@ function install_check_requirements($install_state) {
'description' => t('The @drupal installer requires write permissions to %file during the installation process. The <a href=":handbook_url">webhosting issues</a> documentation section offers help on this and other topics.', [
'@drupal' => drupal_install_profile_distribution_name(),
'%file' => $file,
- ':handbook_url' => 'https://www.drupal.org/server-permissions'
+ ':handbook_url' => 'https://www.drupal.org/server-permissions',
]),
];
}
@@ -2162,7 +2162,7 @@ function install_check_requirements($install_state) {
'%file' => $file,
'%default_file' => $default_file,
':install_txt' => base_path() . 'core/INSTALL.txt',
- ':handbook_url' => 'https://www.drupal.org/server-permissions'
+ ':handbook_url' => 'https://www.drupal.org/server-permissions',
]),
];
}
diff --git a/core/lib/Drupal/Component/Utility/Html.php b/core/lib/Drupal/Component/Utility/Html.php
index 5beee49..6c162ed 100644
--- a/core/lib/Drupal/Component/Utility/Html.php
+++ b/core/lib/Drupal/Component/Utility/Html.php
@@ -124,7 +124,7 @@ class Html {
// Identifiers cannot start with a digit, two hyphens, or a hyphen followed by a digit.
$identifier = preg_replace([
'/^[0-9]/',
- '/^(-[0-9])|^(--)/'
+ '/^(-[0-9])|^(--)/',
], ['_', '__'], $identifier);
return $identifier;
}
diff --git a/core/lib/Drupal/Core/Block/Plugin/Block/Broken.php b/core/lib/Drupal/Core/Block/Plugin/Block/Broken.php
index 0e4732e..b7f3a19 100644
--- a/core/lib/Drupal/Core/Block/Plugin/Block/Broken.php
+++ b/core/lib/Drupal/Core/Block/Plugin/Block/Broken.php
@@ -38,7 +38,7 @@ class Broken extends BlockBase {
*/
protected function brokenMessage() {
$build['message'] = [
- '#markup' => $this->t('This block is broken or missing. You may be missing content or you might need to enable the original module.')
+ '#markup' => $this->t('This block is broken or missing. You may be missing content or you might need to enable the original module.'),
];
return $build;
diff --git a/core/lib/Drupal/Core/Config/PreExistingConfigException.php b/core/lib/Drupal/Core/Config/PreExistingConfigException.php
index 31849ca..a71604e 100644
--- a/core/lib/Drupal/Core/Config/PreExistingConfigException.php
+++ b/core/lib/Drupal/Core/Config/PreExistingConfigException.php
@@ -59,7 +59,7 @@ class PreExistingConfigException extends ConfigException {
$message = new FormattableMarkup('Configuration objects (@config_names) provided by @extension already exist in active configuration',
[
'@config_names' => implode(', ', static::flattenConfigObjects($config_objects)),
- '@extension' => $extension
+ '@extension' => $extension,
]
);
$e = new static($message);
diff --git a/core/lib/Drupal/Core/Config/UnmetDependenciesException.php b/core/lib/Drupal/Core/Config/UnmetDependenciesException.php
index 6c37c76..573ec54 100644
--- a/core/lib/Drupal/Core/Config/UnmetDependenciesException.php
+++ b/core/lib/Drupal/Core/Config/UnmetDependenciesException.php
@@ -92,7 +92,7 @@ class UnmetDependenciesException extends ConfigException {
$message = new FormattableMarkup('Configuration objects provided by %extension have unmet dependencies: %config_names',
[
'%config_names' => static::formatConfigObjectList($config_objects),
- '%extension' => $extension
+ '%extension' => $extension,
]
);
$e = new static($message);
diff --git a/core/lib/Drupal/Core/Diff/DiffFormatter.php b/core/lib/Drupal/Core/Diff/DiffFormatter.php
index 1b3604d..52f5550 100644
--- a/core/lib/Drupal/Core/Diff/DiffFormatter.php
+++ b/core/lib/Drupal/Core/Diff/DiffFormatter.php
@@ -57,7 +57,7 @@ class DiffFormatter extends DiffFormatterBase {
[
'data' => $ybeg + $this->line_stats['offset']['y'],
'colspan' => 2,
- ]
+ ],
];
}
@@ -94,7 +94,7 @@ class DiffFormatter extends DiffFormatterBase {
[
'data' => ['#markup' => $line],
'class' => 'diff-context diff-addedline',
- ]
+ ],
];
}
@@ -116,7 +116,7 @@ class DiffFormatter extends DiffFormatterBase {
[
'data' => ['#markup' => $line],
'class' => 'diff-context diff-deletedline',
- ]
+ ],
];
}
@@ -135,7 +135,7 @@ class DiffFormatter extends DiffFormatterBase {
[
'data' => ['#markup' => $line],
'class' => 'diff-context',
- ]
+ ],
];
}
diff --git a/core/lib/Drupal/Core/Entity/ContentEntityDeleteForm.php b/core/lib/Drupal/Core/Entity/ContentEntityDeleteForm.php
index c87c08d..94af017 100644
--- a/core/lib/Drupal/Core/Entity/ContentEntityDeleteForm.php
+++ b/core/lib/Drupal/Core/Entity/ContentEntityDeleteForm.php
@@ -39,7 +39,7 @@ class ContentEntityDeleteForm extends ContentEntityConfirmFormBase {
$form['deleted_translations'] = [
'#theme' => 'item_list',
'#title' => $this->t('The following @entity-type translations will be deleted:', [
- '@entity-type' => $entity->getEntityType()->getLowercaseLabel()
+ '@entity-type' => $entity->getEntityType()->getLowercaseLabel(),
]),
'#items' => $languages,
];
diff --git a/core/lib/Drupal/Core/Entity/ContentEntityForm.php b/core/lib/Drupal/Core/Entity/ContentEntityForm.php
index 958e26b..7aa0669 100644
--- a/core/lib/Drupal/Core/Entity/ContentEntityForm.php
+++ b/core/lib/Drupal/Core/Entity/ContentEntityForm.php
@@ -133,7 +133,7 @@ class ContentEntityForm extends EntityForm implements ContentEntityFormInterface
'#type' => 'container',
'#weight' => 99,
'#attributes' => [
- 'class' => ['entity-content-form-footer']
+ 'class' => ['entity-content-form-footer'],
],
'#optional' => TRUE,
];
diff --git a/core/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php b/core/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php
index 6c31df5..183e428 100644
--- a/core/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php
+++ b/core/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php
@@ -144,7 +144,7 @@ class EntityFormDisplay extends EntityDisplayBase implements EntityFormDisplayIn
'form_mode' => $this->originalMode,
// No need to prepare, defaults have been merged in setComponent().
'prepare' => FALSE,
- 'configuration' => $configuration
+ 'configuration' => $configuration,
]);
}
else {
@@ -330,7 +330,7 @@ class EntityFormDisplay extends EntityDisplayBase implements EntityFormDisplayIn
}
return [
- 'widgets' => new EntityDisplayPluginCollection($this->pluginManager, $configurations)
+ 'widgets' => new EntityDisplayPluginCollection($this->pluginManager, $configurations),
];
}
diff --git a/core/lib/Drupal/Core/Entity/Entity/EntityViewDisplay.php b/core/lib/Drupal/Core/Entity/Entity/EntityViewDisplay.php
index 7c7d62e..cd36418 100644
--- a/core/lib/Drupal/Core/Entity/Entity/EntityViewDisplay.php
+++ b/core/lib/Drupal/Core/Entity/Entity/EntityViewDisplay.php
@@ -201,7 +201,7 @@ class EntityViewDisplay extends EntityDisplayBase implements EntityViewDisplayIn
'view_mode' => $this->originalMode,
// No need to prepare, defaults have been merged in setComponent().
'prepare' => FALSE,
- 'configuration' => $configuration
+ 'configuration' => $configuration,
]);
}
else {
@@ -301,7 +301,7 @@ class EntityViewDisplay extends EntityDisplayBase implements EntityViewDisplayIn
}
return [
- 'formatters' => new EntityDisplayPluginCollection($this->pluginManager, $configurations)
+ 'formatters' => new EntityDisplayPluginCollection($this->pluginManager, $configurations),
];
}
diff --git a/core/lib/Drupal/Core/Entity/EntityDisplayBase.php b/core/lib/Drupal/Core/Entity/EntityDisplayBase.php
index 5c37887..dbda544 100644
--- a/core/lib/Drupal/Core/Entity/EntityDisplayBase.php
+++ b/core/lib/Drupal/Core/Entity/EntityDisplayBase.php
@@ -164,7 +164,7 @@ abstract class EntityDisplayBase extends ConfigEntityBase implements EntityDispl
// Extra fields are visible by default unless they explicitly say so.
if (!isset($definition['visible']) || $definition['visible'] == TRUE) {
$this->setComponent($name, [
- 'weight' => $definition['weight']
+ 'weight' => $definition['weight'],
]);
}
else {
diff --git a/core/lib/Drupal/Core/Entity/Plugin/DataType/Deriver/EntityDeriver.php b/core/lib/Drupal/Core/Entity/Plugin/DataType/Deriver/EntityDeriver.php
index 5114c40..d058eb4 100644
--- a/core/lib/Drupal/Core/Entity/Plugin/DataType/Deriver/EntityDeriver.php
+++ b/core/lib/Drupal/Core/Entity/Plugin/DataType/Deriver/EntityDeriver.php
@@ -97,7 +97,7 @@ class EntityDeriver implements ContainerDeriverInterface {
if ($bundle !== $entity_type_id) {
$this->derivatives[$entity_type_id . ':' . $bundle] = [
'label' => $bundle_info['label'],
- 'constraints' => $this->derivatives[$entity_type_id]['constraints']
+ 'constraints' => $this->derivatives[$entity_type_id]['constraints'],
] + $base_plugin_definition;
}
}
diff --git a/core/lib/Drupal/Core/Entity/Routing/DefaultHtmlRouteProvider.php b/core/lib/Drupal/Core/Entity/Routing/DefaultHtmlRouteProvider.php
index 0a99b33..1415a1a 100644
--- a/core/lib/Drupal/Core/Entity/Routing/DefaultHtmlRouteProvider.php
+++ b/core/lib/Drupal/Core/Entity/Routing/DefaultHtmlRouteProvider.php
@@ -258,7 +258,7 @@ class DefaultHtmlRouteProvider implements EntityRouteProviderInterface, EntityHa
$route
->setDefaults([
'_entity_form' => "{$entity_type_id}.{$operation}",
- '_title_callback' => '\Drupal\Core\Entity\Controller\EntityController::editTitle'
+ '_title_callback' => '\Drupal\Core\Entity\Controller\EntityController::editTitle',
])
->setRequirement('_entity_access', "{$entity_type_id}.update")
->setOption('parameters', [
diff --git a/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php b/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
index 9c12341..59cad44 100644
--- a/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
+++ b/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
@@ -1168,7 +1168,7 @@ class SqlContentEntityStorageSchema implements DynamicallyFieldableEntityStorage
$entity_type_id . '__revision' => [
'table' => $this->storage->getRevisionTable(),
'columns' => [$revision_key => $revision_key],
- ]
+ ],
],
];
@@ -2043,7 +2043,7 @@ class SqlContentEntityStorageSchema implements DynamicallyFieldableEntityStorage
'size' => 'tiny',
'not null' => TRUE,
'default' => 0,
- 'description' => 'A boolean indicating whether this data item has been deleted'
+ 'description' => 'A boolean indicating whether this data item has been deleted',
],
'entity_id' => $id_schema,
'revision_id' => $revision_id_schema,
diff --git a/core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php
index ea7d29f..6cda3b1 100644
--- a/core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php
+++ b/core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php
@@ -214,19 +214,19 @@ class ConfigImportSubscriber extends ConfigImportValidateEventSubscriberBase {
if (!isset($core_extension['module'][$owner]) && isset($module_data[$owner])) {
$message = $this->t('Configuration %name depends on the %owner module that will not be installed after import.', [
'%name' => $name,
- '%owner' => $module_data[$owner]->info['name']
+ '%owner' => $module_data[$owner]->info['name'],
]);
}
elseif (!isset($core_extension['theme'][$owner]) && isset($theme_data[$owner])) {
$message = $this->t('Configuration %name depends on the %owner theme that will not be installed after import.', [
'%name' => $name,
- '%owner' => $theme_data[$owner]->info['name']
+ '%owner' => $theme_data[$owner]->info['name'],
]);
}
elseif (!isset($core_extension['module'][$owner]) && !isset($core_extension['theme'][$owner])) {
$message = $this->t('Configuration %name depends on the %owner extension that will not be installed after import.', [
'%name' => $name,
- '%owner' => $owner
+ '%owner' => $owner,
]);
}
diff --git a/core/lib/Drupal/Core/Extension/module.api.php b/core/lib/Drupal/Core/Extension/module.api.php
index 45355cc..32b7d7f 100644
--- a/core/lib/Drupal/Core/Extension/module.api.php
+++ b/core/lib/Drupal/Core/Extension/module.api.php
@@ -933,7 +933,7 @@ function hook_requirements($phase) {
$requirements['drupal'] = [
'title' => t('Drupal'),
'value' => \Drupal::VERSION,
- 'severity' => REQUIREMENT_INFO
+ 'severity' => REQUIREMENT_INFO,
];
}
diff --git a/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/LanguageFormatter.php b/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/LanguageFormatter.php
index 43bbaa5..43c4c98 100644
--- a/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/LanguageFormatter.php
+++ b/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/LanguageFormatter.php
@@ -118,7 +118,7 @@ class LanguageFormatter extends StringFormatter {
// name. That only depends on formatter settings and no language condition.
$languages = $this->getSetting('native_language') ? $this->languageManager->getNativeLanguages(LanguageInterface::STATE_ALL) : $this->languageManager->getLanguages(LanguageInterface::STATE_ALL);
return [
- '#plain_text' => $item->language && isset($languages[$item->language->getId()]) ? $languages[$item->language->getId()]->getName() : ''
+ '#plain_text' => $item->language && isset($languages[$item->language->getId()]) ? $languages[$item->language->getId()]->getName() : '',
];
}
diff --git a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php
index 22da3be..379ff74 100644
--- a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php
+++ b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php
@@ -52,7 +52,7 @@ class DecimalItem extends NumericItemBase {
'type' => 'numeric',
'precision' => $field_definition->getSetting('precision'),
'scale' => $field_definition->getSetting('scale'),
- ]
+ ],
],
];
}
@@ -98,7 +98,7 @@ class DecimalItem extends NumericItemBase {
'value' => [
'Regex' => [
'pattern' => '/^[+-]?((\d+(\.\d*)?)|(\.\d+))$/i',
- ]
+ ],
],
]);
diff --git a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EmailItem.php b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EmailItem.php
index ca30ede..a6801fc 100644
--- a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EmailItem.php
+++ b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EmailItem.php
@@ -59,7 +59,7 @@ class EmailItem extends FieldItemBase {
'Length' => [
'max' => Email::EMAIL_MAX_LENGTH,
'maxMessage' => t('%name: the email address can not be longer than @max characters.', ['%name' => $this->getFieldDefinition()->getLabel(), '@max' => Email::EMAIL_MAX_LENGTH]),
- ]
+ ],
],
]);
diff --git a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php
index 3d839c2..e1b6c1b 100644
--- a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php
+++ b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php
@@ -679,8 +679,8 @@ class EntityReferenceItem extends FieldItemBase implements OptionsProviderInterf
'field_storage_config' => [
'settings' => [
'target_type' => $entity_type->id(),
- ]
- ]
+ ],
+ ],
];
}
diff --git a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/NumericItemBase.php b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/NumericItemBase.php
index 23f5161..50eb767 100644
--- a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/NumericItemBase.php
+++ b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/NumericItemBase.php
@@ -86,7 +86,7 @@ abstract class NumericItemBase extends FieldItemBase {
'Range' => [
'min' => $min,
'minMessage' => t('%name: the value may be no less than %min.', ['%name' => $label, '%min' => $min]),
- ]
+ ],
],
]);
}
@@ -98,7 +98,7 @@ abstract class NumericItemBase extends FieldItemBase {
'Range' => [
'max' => $max,
'maxMessage' => t('%name: the value may be no greater than %max.', ['%name' => $label, '%max' => $max]),
- ]
+ ],
],
]);
}
diff --git a/core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/EntityReferenceAutocompleteWidget.php b/core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/EntityReferenceAutocompleteWidget.php
index d7f9bde..493d6a4 100644
--- a/core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/EntityReferenceAutocompleteWidget.php
+++ b/core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/EntityReferenceAutocompleteWidget.php
@@ -107,7 +107,7 @@ class EntityReferenceAutocompleteWidget extends WidgetBase {
if ($this->getSelectionHandlerSetting('auto_create') && ($bundle = $this->getAutocreateBundle())) {
$element['#autocreate'] = [
'bundle' => $bundle,
- 'uid' => ($entity instanceof EntityOwnerInterface) ? $entity->getOwnerId() : \Drupal::currentUser()->id()
+ 'uid' => ($entity instanceof EntityOwnerInterface) ? $entity->getOwnerId() : \Drupal::currentUser()->id(),
];
}
diff --git a/core/lib/Drupal/Core/Field/PluginSettingsBase.php b/core/lib/Drupal/Core/Field/PluginSettingsBase.php
index 073bd2c..4e38e75 100644
--- a/core/lib/Drupal/Core/Field/PluginSettingsBase.php
+++ b/core/lib/Drupal/Core/Field/PluginSettingsBase.php
@@ -141,7 +141,7 @@ abstract class PluginSettingsBase extends PluginBase implements PluginSettingsIn
if (!empty($this->thirdPartySettings)) {
// Create dependencies on any modules providing third party settings.
return [
- 'module' => array_keys($this->thirdPartySettings)
+ 'module' => array_keys($this->thirdPartySettings),
];
}
return [];
diff --git a/core/lib/Drupal/Core/Form/FormBuilder.php b/core/lib/Drupal/Core/Form/FormBuilder.php
index b50fe99..d94b910 100644
--- a/core/lib/Drupal/Core/Form/FormBuilder.php
+++ b/core/lib/Drupal/Core/Form/FormBuilder.php
@@ -778,9 +778,9 @@ class FormBuilder implements FormBuilderInterface, FormValidatorInterface, FormS
'#attached' => [
'placeholders' => [
$placeholder => [
- '#lazy_builder' => ['form_builder:renderFormTokenPlaceholder', [$placeholder]]
- ]
- ]
+ '#lazy_builder' => ['form_builder:renderFormTokenPlaceholder', [$placeholder]],
+ ],
+ ],
],
'#cache' => [
'max-age' => 0,
diff --git a/core/lib/Drupal/Core/Form/form.api.php b/core/lib/Drupal/Core/Form/form.api.php
index 4154412..0189bf4 100644
--- a/core/lib/Drupal/Core/Form/form.api.php
+++ b/core/lib/Drupal/Core/Form/form.api.php
@@ -129,7 +129,7 @@ function callback_batch_finished($success, $results, $operations) {
$error_operation = reset($operations);
$message = t('An error occurred while processing %error_operation with arguments: @arguments', [
'%error_operation' => $error_operation[0],
- '@arguments' => print_r($error_operation[1], TRUE)
+ '@arguments' => print_r($error_operation[1], TRUE),
]);
\Drupal::messenger()->addError($message);
}
diff --git a/core/lib/Drupal/Core/Http/ClientFactory.php b/core/lib/Drupal/Core/Http/ClientFactory.php
index 3dcf353..e429bbb 100644
--- a/core/lib/Drupal/Core/Http/ClientFactory.php
+++ b/core/lib/Drupal/Core/Http/ClientFactory.php
@@ -58,7 +58,7 @@ class ClientFactory {
'http' => NULL,
'https' => NULL,
'no' => [],
- ]
+ ],
];
$config = NestedArray::mergeDeep($default_config, Settings::get('http_client_config', []), $config);
diff --git a/core/lib/Drupal/Core/Installer/Form/SiteSettingsForm.php b/core/lib/Drupal/Core/Installer/Form/SiteSettingsForm.php
index 300def9..651e9f5 100644
--- a/core/lib/Drupal/Core/Installer/Form/SiteSettingsForm.php
+++ b/core/lib/Drupal/Core/Installer/Form/SiteSettingsForm.php
@@ -124,7 +124,7 @@ class SiteSettingsForm extends FormBase {
$form['settings'][$key]['#states'] = [
'visible' => [
':input[name=driver]' => ['value' => $key],
- ]
+ ],
];
}
diff --git a/core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php b/core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php
index c651496..aab333a 100644
--- a/core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php
+++ b/core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php
@@ -63,7 +63,7 @@ class DatabaseStorageExpirable extends DatabaseStorage implements KeyValueStoreE
'SELECT name, value FROM {' . $this->connection->escapeTable($this->table) . '} WHERE collection = :collection AND expire > :now',
[
':collection' => $this->collection,
- ':now' => REQUEST_TIME
+ ':now' => REQUEST_TIME,
])->fetchAllKeyed();
return array_map([$this->serializer, 'decode'], $values);
}
diff --git a/core/lib/Drupal/Core/Lock/DatabaseLockBackend.php b/core/lib/Drupal/Core/Lock/DatabaseLockBackend.php
index 8afcefe..cf2ac5f 100644
--- a/core/lib/Drupal/Core/Lock/DatabaseLockBackend.php
+++ b/core/lib/Drupal/Core/Lock/DatabaseLockBackend.php
@@ -251,20 +251,20 @@ class DatabaseLockBackend extends LockBackendAbstract {
'type' => 'varchar_ascii',
'length' => 255,
'not null' => TRUE,
- 'default' => ''
+ 'default' => '',
],
'value' => [
'description' => 'A value for the semaphore.',
'type' => 'varchar_ascii',
'length' => 255,
'not null' => TRUE,
- 'default' => ''
+ 'default' => '',
],
'expire' => [
'description' => 'A Unix timestamp with microseconds indicating when the semaphore should expire.',
'type' => 'float',
'size' => 'big',
- 'not null' => TRUE
+ 'not null' => TRUE,
],
],
'indexes' => [
diff --git a/core/lib/Drupal/Core/Render/Element/SystemCompactLink.php b/core/lib/Drupal/Core/Render/Element/SystemCompactLink.php
index 89f39a8..60b7277 100644
--- a/core/lib/Drupal/Core/Render/Element/SystemCompactLink.php
+++ b/core/lib/Drupal/Core/Render/Element/SystemCompactLink.php
@@ -65,7 +65,7 @@ class SystemCompactLink extends Link {
$element['#url'] = BaseUrl::fromRoute('system.admin_compact_page', ['mode' => 'off']);
$element['#options'] = [
'attributes' => ['title' => t('Expand layout to include descriptions.')],
- 'query' => \Drupal::destination()->getAsArray()
+ 'query' => \Drupal::destination()->getAsArray(),
];
}
else {
diff --git a/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php b/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php
index 5966668..13e9c76 100644
--- a/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php
+++ b/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php
@@ -226,7 +226,7 @@ class HtmlRenderer implements MainContentRendererInterface {
return $this->renderer->render($main_content, FALSE);
});
$main_content = $this->renderCache->getCacheableRenderArray($main_content) + [
- '#title' => isset($main_content['#title']) ? $main_content['#title'] : NULL
+ '#title' => isset($main_content['#title']) ? $main_content['#title'] : NULL,
];
}
diff --git a/core/lib/Drupal/Core/Render/RenderCache.php b/core/lib/Drupal/Core/Render/RenderCache.php
index 9ac3381..20e4b0c 100644
--- a/core/lib/Drupal/Core/Render/RenderCache.php
+++ b/core/lib/Drupal/Core/Render/RenderCache.php
@@ -259,7 +259,7 @@ class RenderCache implements RenderCacheInterface {
'#cache' => [
'keys' => $elements['#cache']['keys'],
'contexts' => $redirect_cacheability_updated->getCacheContexts(),
- ]
+ ],
];
$cid = $this->createCacheID($recalculated_cid_pseudo_element);
// Ensure the about-to-be-cached data uses the merged cache contexts.
diff --git a/core/lib/Drupal/Core/Render/Renderer.php b/core/lib/Drupal/Core/Render/Renderer.php
index bae83de..5e1b8d1 100644
--- a/core/lib/Drupal/Core/Render/Renderer.php
+++ b/core/lib/Drupal/Core/Render/Renderer.php
@@ -326,7 +326,7 @@ class Renderer implements RendererInterface {
// automatically by the Renderer. Adding them as though they are
// supported allows us to avoid throwing an exception 100% of the time.
'#weight',
- '#printed'
+ '#printed',
];
$unsupported_keys = array_diff(array_keys($elements), $supported_keys);
if (count($unsupported_keys)) {
diff --git a/core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/PrimitiveTypeConstraintValidator.php b/core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/PrimitiveTypeConstraintValidator.php
index f71e2e1..be11f80 100644
--- a/core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/PrimitiveTypeConstraintValidator.php
+++ b/core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/PrimitiveTypeConstraintValidator.php
@@ -73,7 +73,7 @@ class PrimitiveTypeConstraintValidator extends ConstraintValidator {
if (!$valid) {
// @todo: Provide a good violation message for each problem.
$this->context->addViolation($constraint->message, [
- '%value' => is_object($value) ? get_class($value) : (is_array($value) ? 'Array' : (string) $value)
+ '%value' => is_object($value) ? get_class($value) : (is_array($value) ? 'Array' : (string) $value),
]);
}
}
diff --git a/core/modules/action/src/Form/ActionAdminManageForm.php b/core/modules/action/src/Form/ActionAdminManageForm.php
index 627e1ed..51fdfab 100644
--- a/core/modules/action/src/Form/ActionAdminManageForm.php
+++ b/core/modules/action/src/Form/ActionAdminManageForm.php
@@ -72,7 +72,7 @@ class ActionAdminManageForm extends FormBase {
'#empty_option' => $this->t('- Select -'),
];
$form['parent']['actions'] = [
- '#type' => 'actions'
+ '#type' => 'actions',
];
$form['parent']['actions']['submit'] = [
'#type' => 'submit',
diff --git a/core/modules/action/tests/src/Kernel/Migrate/d6/MigrateActionsTest.php b/core/modules/action/tests/src/Kernel/Migrate/d6/MigrateActionsTest.php
index 1737715..928b3c9 100644
--- a/core/modules/action/tests/src/Kernel/Migrate/d6/MigrateActionsTest.php
+++ b/core/modules/action/tests/src/Kernel/Migrate/d6/MigrateActionsTest.php
@@ -40,7 +40,7 @@ class MigrateActionsTest extends MigrateDrupal6TestBase {
$this->assertEntity('send_e_mail', 'Send e-mail', 'system', [
"recipient" => "test@example.com",
"subject" => "Drupal migration test",
- "message" => "Drupal migration test"
+ "message" => "Drupal migration test",
]);
$this->assertEntity('redirect_to_url', 'Redirect to URL', 'system', ["url" => "https://www.drupal.org"]);
diff --git a/core/modules/action/tests/src/Kernel/Migrate/d7/MigrateActionsTest.php b/core/modules/action/tests/src/Kernel/Migrate/d7/MigrateActionsTest.php
index 1601449..47049f3 100644
--- a/core/modules/action/tests/src/Kernel/Migrate/d7/MigrateActionsTest.php
+++ b/core/modules/action/tests/src/Kernel/Migrate/d7/MigrateActionsTest.php
@@ -40,7 +40,7 @@ class MigrateActionsTest extends MigrateDrupal7TestBase {
$this->assertEntity('send_e_mail', 'Send e-mail', 'system', [
"recipient" => "test@example.com",
"subject" => "Drupal migration test",
- "message" => "Drupal migration test"
+ "message" => "Drupal migration test",
]);
$this->assertEntity('redirect_to_url', 'Redirect to URL', 'system', ["url" => "https://www.drupal.org"]);
diff --git a/core/modules/action/tests/src/Kernel/Plugin/Action/EmailActionTest.php b/core/modules/action/tests/src/Kernel/Plugin/Action/EmailActionTest.php
index 925fb3f..a47f9b3 100644
--- a/core/modules/action/tests/src/Kernel/Plugin/Action/EmailActionTest.php
+++ b/core/modules/action/tests/src/Kernel/Plugin/Action/EmailActionTest.php
@@ -36,7 +36,7 @@ class EmailActionTest extends KernelTestBase {
$configuration = [
'recipient' => 'test@example.com',
'subject' => 'Test subject',
- 'message' => 'Test message'
+ 'message' => 'Test message',
];
$plugin_manager
->createInstance('action_send_email_action', $configuration)
diff --git a/core/modules/aggregator/src/Plugin/aggregator/fetcher/DefaultFetcher.php b/core/modules/aggregator/src/Plugin/aggregator/fetcher/DefaultFetcher.php
index 3df80a3..d55cab2 100644
--- a/core/modules/aggregator/src/Plugin/aggregator/fetcher/DefaultFetcher.php
+++ b/core/modules/aggregator/src/Plugin/aggregator/fetcher/DefaultFetcher.php
@@ -100,7 +100,7 @@ class DefaultFetcher implements FetcherInterface, ContainerFactoryPluginInterfac
'allow_redirects' => [
'on_redirect' => function (RequestInterface $request, ResponseInterface $response, UriInterface $uri) use (&$actual_uri) {
$actual_uri = (string) $uri;
- }
+ },
],
])->send($request);
diff --git a/core/modules/ban/tests/src/Kernel/Plugin/migrate/source/d7/BlockedIpsTest.php b/core/modules/ban/tests/src/Kernel/Plugin/migrate/source/d7/BlockedIpsTest.php
index 267cc34..2ce7820 100644
--- a/core/modules/ban/tests/src/Kernel/Plugin/migrate/source/d7/BlockedIpsTest.php
+++ b/core/modules/ban/tests/src/Kernel/Plugin/migrate/source/d7/BlockedIpsTest.php
@@ -27,7 +27,7 @@ class BlockedIpsTest extends MigrateSqlSourceTestBase {
[
'iid' => 1,
'ip' => '127.0.0.1',
- ]
+ ],
];
$tests[0]['expected_data'] = [
[
diff --git a/core/modules/big_pipe/tests/modules/big_pipe_regression_test/src/BigPipeRegressionTestController.php b/core/modules/big_pipe/tests/modules/big_pipe_regression_test/src/BigPipeRegressionTestController.php
index 50e618b..20bedcb 100644
--- a/core/modules/big_pipe/tests/modules/big_pipe_regression_test/src/BigPipeRegressionTestController.php
+++ b/core/modules/big_pipe/tests/modules/big_pipe_regression_test/src/BigPipeRegressionTestController.php
@@ -39,7 +39,7 @@ class BigPipeRegressionTestController {
public static function currentTime() {
return [
'#markup' => '<time datetime="' . date('Y-m-d', time()) . '"></time>',
- '#cache' => ['max-age' => 0]
+ '#cache' => ['max-age' => 0],
];
}
diff --git a/core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipePlaceholderTestCases.php b/core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipePlaceholderTestCases.php
index e3da529..f274356 100644
--- a/core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipePlaceholderTestCases.php
+++ b/core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipePlaceholderTestCases.php
@@ -52,7 +52,7 @@ class BigPipePlaceholderTestCases {
[
'#lazy_builder' => [
'Drupal\Core\Render\Element\StatusMessages::renderMessages',
- [NULL]
+ [NULL],
],
]
);
@@ -129,7 +129,7 @@ class BigPipePlaceholderTestCases {
[
'#lazy_builder' => [
'route_processor_csrf:renderPlaceholderCsrfToken',
- ['admin/config/user-interface/shortcut/manage/default/add-link-inline']
+ ['admin/config/user-interface/shortcut/manage/default/add-link-inline'],
],
]
);
@@ -155,14 +155,14 @@ class BigPipePlaceholderTestCases {
'#attached' => [
'placeholders' => [
'<hello' => ['#lazy_builder' => ['\Drupal\big_pipe_test\BigPipeTestController::helloOrYarhar', []]],
- ]
+ ],
],
],
'<hello',
[
'#lazy_builder' => [
'hello_or_yarhar',
- []
+ [],
],
]
);
@@ -188,9 +188,9 @@ class BigPipePlaceholderTestCases {
'#pre_render' => [
'\Drupal\big_pipe_test\BigPipeTestController::currentTime',
],
- ]
- ]
- ]
+ ],
+ ],
+ ],
],
'<time>CURRENT TIME</time>',
[
diff --git a/core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipeTestController.php b/core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipeTestController.php
index 2405aff..baa5f70 100644
--- a/core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipeTestController.php
+++ b/core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipeTestController.php
@@ -91,7 +91,7 @@ class BigPipeTestController {
public static function currentTime() {
return [
'#markup' => '<time datetime="' . date('Y-m-d', 668948400) . '"></time>',
- '#cache' => ['max-age' => 0]
+ '#cache' => ['max-age' => 0],
];
}
diff --git a/core/modules/block/block.install b/core/modules/block/block.install
index 6545a19..50b2758 100644
--- a/core/modules/block/block.install
+++ b/core/modules/block/block.install
@@ -73,7 +73,7 @@ function block_update_8001() {
// their own updates.
$update_backup[$block->get('id')] = [
'missing_context_ids' => $backup_values,
- 'status' => $block->get('status')
+ 'status' => $block->get('status'),
];
}
}
diff --git a/core/modules/block/block.post_update.php b/core/modules/block/block.post_update.php
index d5f0852..0d49ead 100644
--- a/core/modules/block/block.post_update.php
+++ b/core/modules/block/block.post_update.php
@@ -60,7 +60,7 @@ function block_post_update_disable_blocks_with_missing_contexts() {
foreach ($blocks as $disabled_block_id => $disabled_block) {
$message .= '<li>' . t('@label (Visibility: @plugin_ids)', [
'@label' => $disabled_block->get('settings')['label'],
- '@plugin_ids' => implode(', ', array_intersect_key($condition_plugin_id_label_map, array_flip(array_keys($block_update_8001[$disabled_block_id]['missing_context_ids']))))
+ '@plugin_ids' => implode(', ', array_intersect_key($condition_plugin_id_label_map, array_flip(array_keys($block_update_8001[$disabled_block_id]['missing_context_ids'])))),
]) . '</li>';
}
$message .= '</ul>';
diff --git a/core/modules/block/src/BlockListBuilder.php b/core/modules/block/src/BlockListBuilder.php
index facd024..c1ccc50 100644
--- a/core/modules/block/src/BlockListBuilder.php
+++ b/core/modules/block/src/BlockListBuilder.php
@@ -222,7 +222,7 @@ class BlockListBuilder extends ConfigEntityListBuilder implements FormInterface
'#theme_wrappers' => [
'container' => [
'#attributes' => ['class' => 'region-title__action'],
- ]
+ ],
],
'#prefix' => $title,
'#type' => 'link',
diff --git a/core/modules/block/tests/modules/block_test/src/Form/FavoriteAnimalTestForm.php b/core/modules/block/tests/modules/block_test/src/Form/FavoriteAnimalTestForm.php
index a86db68..d262f44 100644
--- a/core/modules/block/tests/modules/block_test/src/Form/FavoriteAnimalTestForm.php
+++ b/core/modules/block/tests/modules/block_test/src/Form/FavoriteAnimalTestForm.php
@@ -25,7 +25,7 @@ class FavoriteAnimalTestForm extends FormBase {
public function buildForm(array $form, FormStateInterface $form_state) {
$form['favorite_animal'] = [
'#type' => 'textfield',
- '#title' => $this->t('Your favorite animal.')
+ '#title' => $this->t('Your favorite animal.'),
];
$form['submit_animal'] = [
diff --git a/core/modules/block/tests/modules/block_test/src/Form/TestForm.php b/core/modules/block/tests/modules/block_test/src/Form/TestForm.php
index 7619d84..55b13f7 100644
--- a/core/modules/block/tests/modules/block_test/src/Form/TestForm.php
+++ b/core/modules/block/tests/modules/block_test/src/Form/TestForm.php
@@ -25,7 +25,7 @@ class TestForm extends FormBase {
public function buildForm(array $form, FormStateInterface $form_state) {
$form['email'] = [
'#type' => 'email',
- '#title' => $this->t('Your .com email address.')
+ '#title' => $this->t('Your .com email address.'),
];
$form['show'] = [
diff --git a/core/modules/block/tests/src/Functional/BlockLanguageTest.php b/core/modules/block/tests/src/Functional/BlockLanguageTest.php
index cf1b877..8f963e1 100644
--- a/core/modules/block/tests/src/Functional/BlockLanguageTest.php
+++ b/core/modules/block/tests/src/Functional/BlockLanguageTest.php
@@ -164,7 +164,7 @@ class BlockLanguageTest extends BrowserTestBase {
// Change visibility to now depend on content language for this block.
$edit = [
- 'visibility[language][context_mapping][language]' => '@language.current_language_context:language_content'
+ 'visibility[language][context_mapping][language]' => '@language.current_language_context:language_content',
];
$this->drupalPostForm('admin/structure/block/manage/' . $block_id, $edit, t('Save block'));
diff --git a/core/modules/block/tests/src/Functional/BlockTest.php b/core/modules/block/tests/src/Functional/BlockTest.php
index 7518c82..53b4866 100644
--- a/core/modules/block/tests/src/Functional/BlockTest.php
+++ b/core/modules/block/tests/src/Functional/BlockTest.php
@@ -146,7 +146,7 @@ class BlockTest extends BlockTestBase {
$block_name = 'system_powered_by_block';
$add_url = Url::fromRoute('block.admin_add', [
'plugin_id' => $block_name,
- 'theme' => $default_theme
+ 'theme' => $default_theme,
]);
$links = $this->xpath('//a[contains(@href, :href)]', [':href' => $add_url->toString()]);
$this->assertEqual(1, count($links), 'Found one matching link.');
@@ -537,14 +537,14 @@ class BlockTest extends BlockTestBase {
$this->assertEqual($block->getVisibility()['user_role']['roles'], [
$role1->id() => $role1->id(),
- $role2->id() => $role2->id()
+ $role2->id() => $role2->id(),
]);
$role1->delete();
$block = Block::load($block->id());
$this->assertEqual($block->getVisibility()['user_role']['roles'], [
- $role2->id() => $role2->id()
+ $role2->id() => $role2->id(),
]);
}
diff --git a/core/modules/block/tests/src/Kernel/Plugin/migrate/source/BlockTest.php b/core/modules/block/tests/src/Kernel/Plugin/migrate/source/BlockTest.php
index d37f8c7..66c2679 100644
--- a/core/modules/block/tests/src/Kernel/Plugin/migrate/source/BlockTest.php
+++ b/core/modules/block/tests/src/Kernel/Plugin/migrate/source/BlockTest.php
@@ -87,7 +87,7 @@ class BlockTest extends MigrateSqlSourceTestBase {
'schema_version' => '6055',
'weight' => '0',
'info' => 'a:0:{}',
- ]
+ ],
];
// The expected results.
@@ -104,7 +104,7 @@ class BlockTest extends MigrateSqlSourceTestBase {
'pages' => '',
'title' => 'Test Title 01',
'cache' => -1,
- 'roles' => [2]
+ 'roles' => [2],
],
[
'bid' => 2,
@@ -118,7 +118,7 @@ class BlockTest extends MigrateSqlSourceTestBase {
'pages' => '<front>',
'title' => 'Test Title 02',
'cache' => -1,
- 'roles' => [2]
+ 'roles' => [2],
],
];
return $tests;
diff --git a/core/modules/block/tests/src/Unit/BlockRepositoryTest.php b/core/modules/block/tests/src/Unit/BlockRepositoryTest.php
index 5584b0b..f522b2b 100644
--- a/core/modules/block/tests/src/Unit/BlockRepositoryTest.php
+++ b/core/modules/block/tests/src/Unit/BlockRepositoryTest.php
@@ -118,21 +118,21 @@ class BlockRepositoryTest extends UnitTestCase {
public function providerBlocksConfig() {
$blocks_config = [
'block1' => [
- AccessResult::allowed(), 'top', 0
+ AccessResult::allowed(), 'top', 0,
],
// Test a block without access.
'block2' => [
- AccessResult::forbidden(), 'bottom', 0
+ AccessResult::forbidden(), 'bottom', 0,
],
// Test some blocks in the same region with specific weight.
'block4' => [
- AccessResult::allowed(), 'bottom', 5
+ AccessResult::allowed(), 'bottom', 5,
],
'block3' => [
- AccessResult::allowed(), 'bottom', 5
+ AccessResult::allowed(), 'bottom', 5,
],
'block5' => [
- AccessResult::allowed(), 'bottom', -5
+ AccessResult::allowed(), 'bottom', -5,
],
];
@@ -142,7 +142,7 @@ class BlockRepositoryTest extends UnitTestCase {
'top' => ['block1'],
'center' => [],
'bottom' => ['block5', 'block3', 'block4'],
- ]
+ ],
];
return $test_cases;
}
diff --git a/core/modules/block_content/src/Controller/BlockContentController.php b/core/modules/block_content/src/Controller/BlockContentController.php
index ff10ff0..08408a1 100644
--- a/core/modules/block_content/src/Controller/BlockContentController.php
+++ b/core/modules/block_content/src/Controller/BlockContentController.php
@@ -103,7 +103,7 @@ class BlockContentController extends ControllerBase {
*/
public function addForm(BlockContentTypeInterface $block_content_type, Request $request) {
$block = $this->blockContentStorage->create([
- 'type' => $block_content_type->id()
+ 'type' => $block_content_type->id(),
]);
if (($theme = $request->query->get('theme')) && in_array($theme, array_keys($this->themeHandler->listInfo()))) {
// We have navigated to this page from the block library and will keep track
diff --git a/core/modules/block_content/src/Plugin/Block/BlockContentBlock.php b/core/modules/block_content/src/Plugin/Block/BlockContentBlock.php
index 5e09be8..54f7ad5 100644
--- a/core/modules/block_content/src/Plugin/Block/BlockContentBlock.php
+++ b/core/modules/block_content/src/Plugin/Block/BlockContentBlock.php
@@ -190,9 +190,9 @@ class BlockContentBlock extends BlockBase implements ContainerFactoryPluginInter
return [
'#markup' => $this->t('Block with uuid %uuid does not exist. <a href=":url">Add custom block</a>.', [
'%uuid' => $this->getDerivativeId(),
- ':url' => $this->urlGenerator->generate('block_content.add_page')
+ ':url' => $this->urlGenerator->generate('block_content.add_page'),
]),
- '#access' => $this->account->hasPermission('administer blocks')
+ '#access' => $this->account->hasPermission('administer blocks'),
];
}
}
diff --git a/core/modules/block_content/src/Plugin/Derivative/BlockContent.php b/core/modules/block_content/src/Plugin/Derivative/BlockContent.php
index 25806c5..ac82a6c 100644
--- a/core/modules/block_content/src/Plugin/Derivative/BlockContent.php
+++ b/core/modules/block_content/src/Plugin/Derivative/BlockContent.php
@@ -51,7 +51,7 @@ class BlockContent extends DeriverBase implements ContainerDeriverInterface {
$this->derivatives[$block_content->uuid()] = $base_plugin_definition;
$this->derivatives[$block_content->uuid()]['admin_label'] = $block_content->label();
$this->derivatives[$block_content->uuid()]['config_dependencies']['content'] = [
- $block_content->getConfigDependencyName()
+ $block_content->getConfigDependencyName(),
];
}
return parent::getDerivativeDefinitions($base_plugin_definition);
diff --git a/core/modules/block_content/src/Tests/BlockContentTestBase.php b/core/modules/block_content/src/Tests/BlockContentTestBase.php
index f277f53..a60ab91 100644
--- a/core/modules/block_content/src/Tests/BlockContentTestBase.php
+++ b/core/modules/block_content/src/Tests/BlockContentTestBase.php
@@ -34,7 +34,7 @@ abstract class BlockContentTestBase extends WebTestBase {
* @var array
*/
protected $permissions = [
- 'administer blocks'
+ 'administer blocks',
];
/**
@@ -83,7 +83,7 @@ abstract class BlockContentTestBase extends WebTestBase {
$block_content = BlockContent::create([
'info' => $title,
'type' => $bundle,
- 'langcode' => 'en'
+ 'langcode' => 'en',
]);
if ($block_content && $save === TRUE) {
$block_content->save();
diff --git a/core/modules/block_content/src/Tests/Views/BlockContentTestBase.php b/core/modules/block_content/src/Tests/Views/BlockContentTestBase.php
index ea48e37..0e3fbfe 100644
--- a/core/modules/block_content/src/Tests/Views/BlockContentTestBase.php
+++ b/core/modules/block_content/src/Tests/Views/BlockContentTestBase.php
@@ -99,7 +99,7 @@ abstract class BlockContentTestBase extends ViewTestBase {
$values += [
'id' => $id,
'label' => $id,
- 'revision' => FALSE
+ 'revision' => FALSE,
];
$bundle = BlockContentType::create($values);
$status = $bundle->save();
diff --git a/core/modules/block_content/tests/src/Functional/BlockContentCacheTagsTest.php b/core/modules/block_content/tests/src/Functional/BlockContentCacheTagsTest.php
index 59f111b..6835009 100644
--- a/core/modules/block_content/tests/src/Functional/BlockContentCacheTagsTest.php
+++ b/core/modules/block_content/tests/src/Functional/BlockContentCacheTagsTest.php
@@ -29,7 +29,7 @@ class BlockContentCacheTagsTest extends EntityCacheTagsTestBase {
$block_content_type = BlockContentType::create([
'id' => 'basic',
'label' => 'basic',
- 'revision' => FALSE
+ 'revision' => FALSE,
]);
$block_content_type->save();
block_content_add_body_field($block_content_type->id());
diff --git a/core/modules/block_content/tests/src/Functional/BlockContentCreationTest.php b/core/modules/block_content/tests/src/Functional/BlockContentCreationTest.php
index 7447f33..46768d6 100644
--- a/core/modules/block_content/tests/src/Functional/BlockContentCreationTest.php
+++ b/core/modules/block_content/tests/src/Functional/BlockContentCreationTest.php
@@ -29,7 +29,7 @@ class BlockContentCreationTest extends BlockContentTestBase {
*/
protected $permissions = [
'administer blocks',
- 'administer block_content display'
+ 'administer block_content display',
];
/**
@@ -55,7 +55,7 @@ class BlockContentCreationTest extends BlockContentTestBase {
// Check that the Basic block has been created.
$this->assertRaw(format_string('@block %name has been created.', [
'@block' => 'basic',
- '%name' => $edit['info[0][value]']
+ '%name' => $edit['info[0][value]'],
]), 'Basic block created.');
// Check that the view mode setting is hidden because only one exists.
@@ -74,7 +74,7 @@ class BlockContentCreationTest extends BlockContentTestBase {
// Check that the Basic block has been created.
$this->assertRaw(format_string('A custom block with block description %value already exists.', [
- '%value' => $edit['info[0][value]']
+ '%value' => $edit['info[0][value]'],
]));
$this->assertResponse(200);
}
@@ -104,7 +104,7 @@ class BlockContentCreationTest extends BlockContentTestBase {
// Check that the Basic block has been created.
$this->assertRaw(format_string('@block %name has been created.', [
'@block' => 'basic',
- '%name' => $edit['info[0][value]']
+ '%name' => $edit['info[0][value]'],
]), 'Basic block created.');
// Save our block permanently
@@ -156,7 +156,7 @@ class BlockContentCreationTest extends BlockContentTestBase {
// Check that the Basic block has been created.
$this->assertRaw(format_string('A custom block with block description %value already exists.', [
- '%value' => $edit['info[0][value]']
+ '%value' => $edit['info[0][value]'],
]));
$this->assertResponse(200);
}
diff --git a/core/modules/block_content/tests/src/Functional/BlockContentSaveTest.php b/core/modules/block_content/tests/src/Functional/BlockContentSaveTest.php
index 0f7ae5a..fe730e8 100644
--- a/core/modules/block_content/tests/src/Functional/BlockContentSaveTest.php
+++ b/core/modules/block_content/tests/src/Functional/BlockContentSaveTest.php
@@ -39,7 +39,7 @@ class BlockContentSaveTest extends BlockContentTestBase {
'info' => $info,
'body' => ['value' => $this->randomMachineName(32)],
'type' => 'basic',
- 'id' => $test_id
+ 'id' => $test_id,
];
$block = BlockContent::create($block_array);
$block->enforceIsNew(TRUE);
diff --git a/core/modules/block_content/tests/src/Functional/BlockContentTestBase.php b/core/modules/block_content/tests/src/Functional/BlockContentTestBase.php
index 1fdd0ef..c8c32fd 100644
--- a/core/modules/block_content/tests/src/Functional/BlockContentTestBase.php
+++ b/core/modules/block_content/tests/src/Functional/BlockContentTestBase.php
@@ -31,7 +31,7 @@ abstract class BlockContentTestBase extends BrowserTestBase {
* @var array
*/
protected $permissions = [
- 'administer blocks'
+ 'administer blocks',
];
/**
@@ -80,7 +80,7 @@ abstract class BlockContentTestBase extends BrowserTestBase {
$block_content = BlockContent::create([
'info' => $title,
'type' => $bundle,
- 'langcode' => 'en'
+ 'langcode' => 'en',
]);
if ($block_content && $save === TRUE) {
$block_content->save();
diff --git a/core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php b/core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php
index ccf5b32..6fc5f1a 100644
--- a/core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php
+++ b/core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php
@@ -23,7 +23,7 @@ class BlockContentTranslationUITest extends ContentTranslationUITestBase {
'content_translation',
'block',
'field_ui',
- 'block_content'
+ 'block_content',
];
/**
@@ -59,7 +59,7 @@ class BlockContentTranslationUITest extends ContentTranslationUITestBase {
$bundle = BlockContentType::create([
'id' => $this->bundle,
'label' => $this->bundle,
- 'revision' => FALSE
+ 'revision' => FALSE,
]);
$bundle->save();
}
@@ -72,7 +72,7 @@ class BlockContentTranslationUITest extends ContentTranslationUITestBase {
'translate any entity',
'access administration pages',
'administer blocks',
- 'administer block_content fields'
+ 'administer block_content fields',
]);
}
@@ -95,7 +95,7 @@ class BlockContentTranslationUITest extends ContentTranslationUITestBase {
$block_content = BlockContent::create([
'info' => $title,
'type' => $bundle,
- 'langcode' => 'en'
+ 'langcode' => 'en',
]);
$block_content->save();
return $block_content;
@@ -161,7 +161,7 @@ class BlockContentTranslationUITest extends ContentTranslationUITestBase {
$bundle = BlockContentType::create([
'id' => $disabled_bundle,
'label' => $disabled_bundle,
- 'revision' => FALSE
+ 'revision' => FALSE,
]);
$bundle->save();
diff --git a/core/modules/block_content/tests/src/Functional/BlockContentTypeTest.php b/core/modules/block_content/tests/src/Functional/BlockContentTypeTest.php
index 8105d3f..b707c83 100644
--- a/core/modules/block_content/tests/src/Functional/BlockContentTypeTest.php
+++ b/core/modules/block_content/tests/src/Functional/BlockContentTypeTest.php
@@ -29,7 +29,7 @@ class BlockContentTypeTest extends BlockContentTestBase {
*/
protected $permissions = [
'administer blocks',
- 'administer block_content fields'
+ 'administer block_content fields',
];
/**
diff --git a/core/modules/block_content/tests/src/Functional/Views/BlockContentTestBase.php b/core/modules/block_content/tests/src/Functional/Views/BlockContentTestBase.php
index 0ddcfbc..dd14a42 100644
--- a/core/modules/block_content/tests/src/Functional/Views/BlockContentTestBase.php
+++ b/core/modules/block_content/tests/src/Functional/Views/BlockContentTestBase.php
@@ -94,7 +94,7 @@ abstract class BlockContentTestBase extends ViewTestBase {
$values += [
'id' => $id,
'label' => $id,
- 'revision' => FALSE
+ 'revision' => FALSE,
];
$bundle = BlockContentType::create($values);
$status = $bundle->save();
diff --git a/core/modules/book/book.module b/core/modules/book/book.module
index 1b40475..b5d5515 100644
--- a/core/modules/book/book.module
+++ b/core/modules/book/book.module
@@ -111,7 +111,7 @@ function book_node_links_alter(array &$links, NodeInterface $node, array &$conte
'type' => 'html',
'node' => $node->id(),
]),
- 'attributes' => ['title' => t('Show a printer-friendly version of this book page and its sub-pages.')]
+ 'attributes' => ['title' => t('Show a printer-friendly version of this book page and its sub-pages.')],
];
}
}
diff --git a/core/modules/book/tests/src/Kernel/Migrate/d7/MigrateBookTest.php b/core/modules/book/tests/src/Kernel/Migrate/d7/MigrateBookTest.php
index e850521..1d0e253 100644
--- a/core/modules/book/tests/src/Kernel/Migrate/d7/MigrateBookTest.php
+++ b/core/modules/book/tests/src/Kernel/Migrate/d7/MigrateBookTest.php
@@ -38,7 +38,7 @@ class MigrateBookTest extends MigrateDrupal7TestBase {
'd7_user',
'd7_node_type',
'd7_node',
- 'd7_book'
+ 'd7_book',
]);
}
diff --git a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImageCaption.php b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImageCaption.php
index 64e764e..45b97e7 100644
--- a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImageCaption.php
+++ b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImageCaption.php
@@ -70,7 +70,7 @@ class DrupalImageCaption extends PluginBase implements CKEditorPluginInterface,
*/
public function getCssFiles(Editor $editor) {
return [
- drupal_get_path('module', 'ckeditor') . '/css/plugins/drupalimagecaption/ckeditor.drupalimagecaption.css'
+ drupal_get_path('module', 'ckeditor') . '/css/plugins/drupalimagecaption/ckeditor.drupalimagecaption.css',
];
}
diff --git a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/Language.php b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/Language.php
index ffae409..0cc6b58 100644
--- a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/Language.php
+++ b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/Language.php
@@ -128,7 +128,7 @@ class Language extends CKEditorPluginBase implements CKEditorPluginConfigurableI
*/
public function getCssFiles(Editor $editor) {
return [
- drupal_get_path('module', 'ckeditor') . '/css/plugins/language/ckeditor.language.css'
+ drupal_get_path('module', 'ckeditor') . '/css/plugins/language/ckeditor.language.css',
];
}
diff --git a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/StylesCombo.php b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/StylesCombo.php
index 2f14bca..5e45bde 100644
--- a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/StylesCombo.php
+++ b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/StylesCombo.php
@@ -157,7 +157,7 @@ class StylesCombo extends CKEditorPluginBase implements CKEditorPluginConfigurab
];
if (!empty($classes)) {
$configured_style['attributes'] = [
- 'class' => implode(' ', array_map('trim', $classes))
+ 'class' => implode(' ', array_map('trim', $classes)),
];
}
$styles_set[] = $configured_style;
diff --git a/core/modules/ckeditor/src/Plugin/Editor/CKEditor.php b/core/modules/ckeditor/src/Plugin/Editor/CKEditor.php
index 49ab1b3..ee4a4d0 100644
--- a/core/modules/ckeditor/src/Plugin/Editor/CKEditor.php
+++ b/core/modules/ckeditor/src/Plugin/Editor/CKEditor.php
@@ -210,8 +210,8 @@ class CKEditor extends EditorBase implements ContainerFactoryPluginInterface {
0 => [
'name' => 'All existing buttons',
'items' => $all_buttons,
- ]
- ]
+ ],
+ ],
],
],
'plugins' => $settings['plugins'],
diff --git a/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaCss.php b/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaCss.php
index e0901dc..1312658 100644
--- a/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaCss.php
+++ b/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaCss.php
@@ -32,7 +32,7 @@ class LlamaCss extends Llama implements CKEditorPluginButtonsInterface, CKEditor
*/
public function getCssFiles(Editor $editor) {
return [
- drupal_get_path('module', 'ckeditor_test') . '/css/llama.css'
+ drupal_get_path('module', 'ckeditor_test') . '/css/llama.css',
];
}
diff --git a/core/modules/ckeditor/tests/src/Kernel/CKEditorPluginManagerTest.php b/core/modules/ckeditor/tests/src/Kernel/CKEditorPluginManagerTest.php
index eb02d37..5664728 100644
--- a/core/modules/ckeditor/tests/src/Kernel/CKEditorPluginManagerTest.php
+++ b/core/modules/ckeditor/tests/src/Kernel/CKEditorPluginManagerTest.php
@@ -151,7 +151,7 @@ class CKEditorPluginManagerTest extends KernelTestBase {
// Case 2: CKEditor iframe instance CSS file.
$expected = [
- 'llama_css' => [drupal_get_path('module', 'ckeditor_test') . '/css/llama.css']
+ 'llama_css' => [drupal_get_path('module', 'ckeditor_test') . '/css/llama.css'],
];
$this->assertIdentical($expected, $this->manager->getCssFiles($editor), 'Iframe instance CSS file found.');
}
diff --git a/core/modules/ckeditor/tests/src/Kernel/CKEditorTest.php b/core/modules/ckeditor/tests/src/Kernel/CKEditorTest.php
index 4f1da31..de4c23f 100644
--- a/core/modules/ckeditor/tests/src/Kernel/CKEditorTest.php
+++ b/core/modules/ckeditor/tests/src/Kernel/CKEditorTest.php
@@ -50,7 +50,7 @@ class CKEditorTest extends KernelTestBase {
'status' => 1,
'settings' => [
'allowed_html' => '<h2 id> <h3> <h4> <h5> <h6> <p> <br> <strong> <a href hreflang>',
- ]
+ ],
],
],
]);
diff --git a/core/modules/ckeditor/tests/src/Unit/CKEditorPluginManagerTest.php b/core/modules/ckeditor/tests/src/Unit/CKEditorPluginManagerTest.php
index 6b9f9af..dfa1f16 100644
--- a/core/modules/ckeditor/tests/src/Unit/CKEditorPluginManagerTest.php
+++ b/core/modules/ckeditor/tests/src/Unit/CKEditorPluginManagerTest.php
@@ -20,7 +20,7 @@ class CKEditorPluginManagerTest extends UnitTestCase {
return [
'empty' => [
[],
- []
+ [],
],
'1 row, 1 group' => [
[
@@ -28,9 +28,9 @@ class CKEditorPluginManagerTest extends UnitTestCase {
[
// Group 1.
['name' => 'Formatting', 'items' => ['Bold', 'Italic']],
- ]
+ ],
],
- ['Bold', 'Italic']
+ ['Bold', 'Italic'],
],
'1 row, >1 groups' => [
[
@@ -42,7 +42,7 @@ class CKEditorPluginManagerTest extends UnitTestCase {
['name' => 'Linking', 'items' => ['Link']],
],
],
- ['Bold', 'Italic', 'Link']
+ ['Bold', 'Italic', 'Link'],
],
'2 rows, 1 group each' => [
[
@@ -76,7 +76,7 @@ class CKEditorPluginManagerTest extends UnitTestCase {
['name' => 'Advanced', 'items' => ['Llama']],
],
],
- ['Bold', 'Italic', 'Link', 'Source', 'Llama']
+ ['Bold', 'Italic', 'Link', 'Source', 'Llama'],
],
];
}
diff --git a/core/modules/comment/src/CommentForm.php b/core/modules/comment/src/CommentForm.php
index 69c508a..2c7da35 100644
--- a/core/modules/comment/src/CommentForm.php
+++ b/core/modules/comment/src/CommentForm.php
@@ -379,7 +379,7 @@ class CommentForm extends ContentEntityForm {
// Add a log entry.
$logger->notice('Comment posted: %subject.', [
'%subject' => $comment->getSubject(),
- 'link' => $this->l(t('View'), $comment->urlInfo()->setOption('fragment', 'comment-' . $comment->id()))
+ 'link' => $this->l(t('View'), $comment->urlInfo()->setOption('fragment', 'comment-' . $comment->id())),
]);
// Explain the approval queue if necessary.
diff --git a/core/modules/comment/src/CommentTypeForm.php b/core/modules/comment/src/CommentTypeForm.php
index 401ce8f..fd71258 100644
--- a/core/modules/comment/src/CommentTypeForm.php
+++ b/core/modules/comment/src/CommentTypeForm.php
@@ -111,7 +111,7 @@ class CommentTypeForm extends EntityForm {
'#default_value' => $comment_type->getTargetEntityTypeId(),
'#title' => t('Target entity type'),
'#options' => $options,
- '#description' => t('The target entity type can not be changed after the comment type has been created.')
+ '#description' => t('The target entity type can not be changed after the comment type has been created.'),
];
}
else {
diff --git a/core/modules/comment/src/CommentViewsData.php b/core/modules/comment/src/CommentViewsData.php
index ead61c1..9a344a6 100644
--- a/core/modules/comment/src/CommentViewsData.php
+++ b/core/modules/comment/src/CommentViewsData.php
@@ -214,7 +214,7 @@ class CommentViewsData extends EntityViewsData {
[
'field' => 'entity_type',
'value' => $type,
- 'table' => 'comment_field_data'
+ 'table' => 'comment_field_data',
],
],
],
diff --git a/core/modules/comment/src/Plugin/migrate/source/d6/CommentVariablePerCommentType.php b/core/modules/comment/src/Plugin/migrate/source/d6/CommentVariablePerCommentType.php
index 03e9565..7534df3 100644
--- a/core/modules/comment/src/Plugin/migrate/source/d6/CommentVariablePerCommentType.php
+++ b/core/modules/comment/src/Plugin/migrate/source/d6/CommentVariablePerCommentType.php
@@ -31,7 +31,7 @@ class CommentVariablePerCommentType extends CommentVariable {
$return['comment'] = [
'comment_type' => 'comment',
'label' => $this->t('Default comments'),
- 'description' => $this->t('Allows commenting on content')
+ 'description' => $this->t('Allows commenting on content'),
];
}
else {
@@ -39,7 +39,7 @@ class CommentVariablePerCommentType extends CommentVariable {
$return['comment_no_subject'] = [
'comment_type' => 'comment_no_subject',
'label' => $this->t('Comments without subject field'),
- 'description' => $this->t('Allows commenting on content, comments without subject field')
+ 'description' => $this->t('Allows commenting on content, comments without subject field'),
];
}
}
diff --git a/core/modules/comment/src/Plugin/views/field/StatisticsLastCommentName.php b/core/modules/comment/src/Plugin/views/field/StatisticsLastCommentName.php
index f88c049..b8200c1 100644
--- a/core/modules/comment/src/Plugin/views/field/StatisticsLastCommentName.php
+++ b/core/modules/comment/src/Plugin/views/field/StatisticsLastCommentName.php
@@ -32,9 +32,9 @@ class StatisticsLastCommentName extends FieldPluginBase {
[
'field' => 'uid',
'operator' => '!=',
- 'value' => '0'
- ]
- ]
+ 'value' => '0',
+ ],
+ ],
];
$join = \Drupal::service('plugin.manager.views.join')->createInstance('standard', $definition);
diff --git a/core/modules/comment/src/Tests/CommentPagerTest.php b/core/modules/comment/src/Tests/CommentPagerTest.php
index 5bbf49c..de45c86 100644
--- a/core/modules/comment/src/Tests/CommentPagerTest.php
+++ b/core/modules/comment/src/Tests/CommentPagerTest.php
@@ -329,7 +329,7 @@ class CommentPagerTest extends CommentTestBase {
'settings' => [
'pager_id' => 1,
'view_mode' => 'default',
- ]
+ ],
])
->save();
diff --git a/core/modules/comment/tests/src/Functional/CommentAdminTest.php b/core/modules/comment/tests/src/Functional/CommentAdminTest.php
index 9e26be4..2c8cb17 100644
--- a/core/modules/comment/tests/src/Functional/CommentAdminTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentAdminTest.php
@@ -57,7 +57,7 @@ class CommentAdminTest extends CommentTestBase {
'comment_body' => $body,
'entity_id' => $this->node->id(),
'entity_type' => 'node',
- 'field_name' => 'comment'
+ 'field_name' => 'comment',
]);
$this->drupalLogout();
@@ -145,7 +145,7 @@ class CommentAdminTest extends CommentTestBase {
'comment_body' => $body,
'entity_id' => $this->node->id(),
'entity_type' => 'node',
- 'field_name' => 'comment'
+ 'field_name' => 'comment',
]);
$this->drupalLogout();
diff --git a/core/modules/comment/tests/src/Functional/CommentCSSTest.php b/core/modules/comment/tests/src/Functional/CommentCSSTest.php
index e17534a..c281f63 100644
--- a/core/modules/comment/tests/src/Functional/CommentCSSTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentCSSTest.php
@@ -23,7 +23,7 @@ class CommentCSSTest extends CommentTestBase {
// Allow anonymous users to see comments.
user_role_grant_permissions(RoleInterface::ANONYMOUS_ID, [
'access comments',
- 'access content'
+ 'access content',
]);
}
diff --git a/core/modules/comment/tests/src/Functional/CommentNonNodeTest.php b/core/modules/comment/tests/src/Functional/CommentNonNodeTest.php
index 7580bb2..d404747 100644
--- a/core/modules/comment/tests/src/Functional/CommentNonNodeTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentNonNodeTest.php
@@ -253,7 +253,7 @@ class CommentNonNodeTest extends BrowserTestBase {
*/
public function testCommentFunctionality() {
$limited_user = $this->drupalCreateUser([
- 'administer entity_test fields'
+ 'administer entity_test fields',
]);
$this->drupalLogin($limited_user);
// Test that default field exists.
diff --git a/core/modules/comment/tests/src/Functional/CommentTranslationUITest.php b/core/modules/comment/tests/src/Functional/CommentTranslationUITest.php
index daac938..f6bec9c 100644
--- a/core/modules/comment/tests/src/Functional/CommentTranslationUITest.php
+++ b/core/modules/comment/tests/src/Functional/CommentTranslationUITest.php
@@ -99,7 +99,7 @@ class CommentTranslationUITest extends ContentTranslationUITestBase {
$node = $this->drupalCreateNode([
'type' => $node_type,
$field_name => [
- ['status' => CommentItemInterface::OPEN]
+ ['status' => CommentItemInterface::OPEN],
],
]);
$values['entity_id'] = $node->id();
diff --git a/core/modules/comment/tests/src/Functional/Views/DefaultViewRecentCommentsTest.php b/core/modules/comment/tests/src/Functional/Views/DefaultViewRecentCommentsTest.php
index 5cb9680..4085f4f 100644
--- a/core/modules/comment/tests/src/Functional/Views/DefaultViewRecentCommentsTest.php
+++ b/core/modules/comment/tests/src/Functional/Views/DefaultViewRecentCommentsTest.php
@@ -119,7 +119,7 @@ class DefaultViewRecentCommentsTest extends ViewTestBase {
$map = [
'subject' => 'subject',
'cid' => 'cid',
- 'comment_field_data_created' => 'created'
+ 'comment_field_data_created' => 'created',
];
$expected_result = [];
foreach (array_values($this->commentsCreated) as $key => $comment) {
diff --git a/core/modules/comment/tests/src/Kernel/CommentFieldAccessTest.php b/core/modules/comment/tests/src/Kernel/CommentFieldAccessTest.php
index bb07245..c17f247 100644
--- a/core/modules/comment/tests/src/Kernel/CommentFieldAccessTest.php
+++ b/core/modules/comment/tests/src/Kernel/CommentFieldAccessTest.php
@@ -202,7 +202,7 @@ class CommentFieldAccessTest extends EntityKernelTestBase {
// Generate permutations.
$combinations = [
'comment' => [$comment1, $comment2, $comment3, $comment4],
- 'user' => [$comment_admin_user, $comment_enabled_user, $comment_no_edit_user, $comment_disabled_user, $anonymous_user]
+ 'user' => [$comment_admin_user, $comment_enabled_user, $comment_no_edit_user, $comment_disabled_user, $anonymous_user],
];
$permutations = $this->generatePermutations($combinations);
diff --git a/core/modules/comment/tests/src/Kernel/CommentValidationTest.php b/core/modules/comment/tests/src/Kernel/CommentValidationTest.php
index 98b7715..1d81d55 100644
--- a/core/modules/comment/tests/src/Kernel/CommentValidationTest.php
+++ b/core/modules/comment/tests/src/Kernel/CommentValidationTest.php
@@ -51,7 +51,7 @@ class CommentValidationTest extends EntityKernelTestBase {
'type' => 'comment',
'settings' => [
'comment_type' => 'comment',
- ]
+ ],
])->save();
// Create a page node type.
diff --git a/core/modules/comment/tests/src/Kernel/Views/CommentUserNameTest.php b/core/modules/comment/tests/src/Kernel/Views/CommentUserNameTest.php
index 2fb8c74..2144ebd 100644
--- a/core/modules/comment/tests/src/Kernel/Views/CommentUserNameTest.php
+++ b/core/modules/comment/tests/src/Kernel/Views/CommentUserNameTest.php
@@ -118,7 +118,7 @@ class CommentUserNameTest extends ViewsKernelTestBase {
'field' => 'name',
'id' => 'name',
'plugin_id' => 'field',
- 'type' => 'comment_username'
+ 'type' => 'comment_username',
],
'subject' => [
'table' => 'comment_field_data',
diff --git a/core/modules/config/src/Form/ConfigSync.php b/core/modules/config/src/Form/ConfigSync.php
index c824679..475c4a4 100644
--- a/core/modules/config/src/Form/ConfigSync.php
+++ b/core/modules/config/src/Form/ConfigSync.php
@@ -214,12 +214,12 @@ class ConfigSync extends FormBase {
sort($change_list);
$message = [
[
- '#markup' => $this->t('The following items in your active configuration have changes since the last import that may be lost on the next import.')
+ '#markup' => $this->t('The following items in your active configuration have changes since the last import that may be lost on the next import.'),
],
[
'#theme' => 'item_list',
'#items' => $change_list,
- ]
+ ],
];
$this->messenger()->addWarning($this->renderer->renderPlain($message));
}
@@ -295,7 +295,7 @@ class ConfigSync extends FormBase {
'class' => ['use-ajax'],
'data-dialog-type' => 'modal',
'data-dialog-options' => json_encode([
- 'width' => 700
+ 'width' => 700,
]),
],
];
diff --git a/core/modules/config/tests/config_entity_static_cache_test/src/ConfigOverrider.php b/core/modules/config/tests/config_entity_static_cache_test/src/ConfigOverrider.php
index 8d21ee4..9d48e0b 100644
--- a/core/modules/config/tests/config_entity_static_cache_test/src/ConfigOverrider.php
+++ b/core/modules/config/tests/config_entity_static_cache_test/src/ConfigOverrider.php
@@ -18,7 +18,7 @@ class ConfigOverrider implements ConfigFactoryOverrideInterface {
return [
'config_test.dynamic.test_1' => [
'label' => 'Overridden label',
- ]
+ ],
];
}
diff --git a/core/modules/config/tests/config_events_test/src/EventSubscriber.php b/core/modules/config/tests/config_events_test/src/EventSubscriber.php
index b36a0db..0cdc441 100644
--- a/core/modules/config/tests/config_events_test/src/EventSubscriber.php
+++ b/core/modules/config/tests/config_events_test/src/EventSubscriber.php
@@ -40,7 +40,7 @@ class EventSubscriber implements EventSubscriberInterface {
'event_name' => $name,
'current_config_data' => $config->get(),
'original_config_data' => $config->getOriginal(),
- 'raw_config_data' => $config->getRawData()
+ 'raw_config_data' => $config->getRawData(),
]);
}
diff --git a/core/modules/config/tests/src/Functional/ConfigLanguageOverrideWebTest.php b/core/modules/config/tests/src/Functional/ConfigLanguageOverrideWebTest.php
index 092ad2b..c7e0b27 100644
--- a/core/modules/config/tests/src/Functional/ConfigLanguageOverrideWebTest.php
+++ b/core/modules/config/tests/src/Functional/ConfigLanguageOverrideWebTest.php
@@ -21,7 +21,7 @@ class ConfigLanguageOverrideWebTest extends BrowserTestBase {
public static $modules = [
'block',
'language',
- 'system'
+ 'system',
];
/**
diff --git a/core/modules/config/tests/src/Functional/ConfigSingleImportExportTest.php b/core/modules/config/tests/src/Functional/ConfigSingleImportExportTest.php
index 4170e25..69a7ed7 100644
--- a/core/modules/config/tests/src/Functional/ConfigSingleImportExportTest.php
+++ b/core/modules/config/tests/src/Functional/ConfigSingleImportExportTest.php
@@ -177,7 +177,7 @@ EOD;
// object.
$this->assertRaw(t('Are you sure you want to update the %name @type?', [
'%name' => 'second',
- '@type' => 'test configuration'
+ '@type' => 'test configuration',
]));
$this->drupalPostForm(NULL, [], t('Confirm'));
$entity = $storage->load('second');
diff --git a/core/modules/config_translation/src/ConfigEntityMapper.php b/core/modules/config_translation/src/ConfigEntityMapper.php
index 2ae3095..ab226a8 100644
--- a/core/modules/config_translation/src/ConfigEntityMapper.php
+++ b/core/modules/config_translation/src/ConfigEntityMapper.php
@@ -263,7 +263,7 @@ class ConfigEntityMapper extends ConfigNamesMapper {
$parameters += [
$this->entityType => [
'type' => 'entity:' . $this->entityType,
- ]
+ ],
];
$route->setOption('parameters', $parameters);
}
diff --git a/core/modules/config_translation/tests/src/Functional/ConfigTranslationDateFormatUiTest.php b/core/modules/config_translation/tests/src/Functional/ConfigTranslationDateFormatUiTest.php
index 95af49e..7cbeb57 100644
--- a/core/modules/config_translation/tests/src/Functional/ConfigTranslationDateFormatUiTest.php
+++ b/core/modules/config_translation/tests/src/Functional/ConfigTranslationDateFormatUiTest.php
@@ -15,7 +15,7 @@ class ConfigTranslationDateFormatUiTest extends BrowserTestBase {
public static $modules = [
'language',
'config_translation',
- 'system'
+ 'system',
];
protected function setUp() {
diff --git a/core/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php b/core/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php
index 20ee969..1d0116d 100644
--- a/core/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php
+++ b/core/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php
@@ -189,7 +189,7 @@ class ConfigTranslationListUiTest extends BrowserTestBase {
$block_content_type = BlockContentType::create([
'id' => mb_strtolower($this->randomMachineName(16)),
'label' => $this->randomMachineName(),
- 'revision' => FALSE
+ 'revision' => FALSE,
]);
$block_content_type->save();
@@ -395,7 +395,7 @@ class ConfigTranslationListUiTest extends BrowserTestBase {
$block_content_type = BlockContentType::create([
'id' => 'basic',
'label' => 'Basic',
- 'revision' => FALSE
+ 'revision' => FALSE,
]);
$block_content_type->save();
$field = FieldConfig::create([
diff --git a/core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php b/core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php
index 84faaec..64fde48 100644
--- a/core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php
+++ b/core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php
@@ -907,7 +907,7 @@ class ConfigTranslationUiTest extends BrowserTestBase {
$expected = [
'kitten',
'llama',
- 'elephant'
+ 'elephant',
];
$actual = $config_factory
->getEditable('config_translation_test.content')
diff --git a/core/modules/config_translation/tests/src/Kernel/Plugin/migrate/source/d6/I18nProfileFieldTest.php b/core/modules/config_translation/tests/src/Kernel/Plugin/migrate/source/d6/I18nProfileFieldTest.php
index b783acc..c13a1b7 100644
--- a/core/modules/config_translation/tests/src/Kernel/Plugin/migrate/source/d6/I18nProfileFieldTest.php
+++ b/core/modules/config_translation/tests/src/Kernel/Plugin/migrate/source/d6/I18nProfileFieldTest.php
@@ -42,8 +42,8 @@ class I18nProfileFieldTest extends MigrateSqlSourceTestBase {
'lid' => 11,
'objectid' => 'profile_love_migrations',
'type' => 'field',
- 'property' => 'explanation'
- ]
+ 'property' => 'explanation',
+ ],
],
'locales_target' => [
[
diff --git a/core/modules/config_translation/tests/src/Kernel/Plugin/migrate/source/d6/ProfileFieldTranslationTest.php b/core/modules/config_translation/tests/src/Kernel/Plugin/migrate/source/d6/ProfileFieldTranslationTest.php
index 02cdd99..3eb5880 100644
--- a/core/modules/config_translation/tests/src/Kernel/Plugin/migrate/source/d6/ProfileFieldTranslationTest.php
+++ b/core/modules/config_translation/tests/src/Kernel/Plugin/migrate/source/d6/ProfileFieldTranslationTest.php
@@ -41,8 +41,8 @@ class ProfileFieldTranslationTest extends MigrateSqlSourceTestBase {
'lid' => 11,
'objectid' => 'profile_love_migrations',
'type' => 'field',
- 'property' => 'explanation'
- ]
+ 'property' => 'explanation',
+ ],
],
'locales_target' => [
[
diff --git a/core/modules/config_translation/tests/src/Unit/ConfigMapperManagerTest.php b/core/modules/config_translation/tests/src/Unit/ConfigMapperManagerTest.php
index e72c61f..4315f81 100644
--- a/core/modules/config_translation/tests/src/Unit/ConfigMapperManagerTest.php
+++ b/core/modules/config_translation/tests/src/Unit/ConfigMapperManagerTest.php
@@ -118,7 +118,7 @@ class ConfigMapperManagerTest extends UnitTestCase {
$this->getElement(['iii' => 'jjj']),
]),
]),
- FALSE
+ FALSE,
],
[
$this->getNestedElement([
diff --git a/core/modules/contact/tests/drupal-7.contact.database.php b/core/modules/contact/tests/drupal-7.contact.database.php
index bd36384..e63ee29 100644
--- a/core/modules/contact/tests/drupal-7.contact.database.php
+++ b/core/modules/contact/tests/drupal-7.contact.database.php
@@ -21,7 +21,7 @@ db_insert('contact')->fields([
'recipients',
'reply',
'weight',
- 'selected'
+ 'selected',
])
->values([
'category' => 'Upgrade test',
diff --git a/core/modules/contact/tests/src/Functional/ContactPersonalTest.php b/core/modules/contact/tests/src/Functional/ContactPersonalTest.php
index 747b8e6..2a406eb 100644
--- a/core/modules/contact/tests/src/Functional/ContactPersonalTest.php
+++ b/core/modules/contact/tests/src/Functional/ContactPersonalTest.php
@@ -98,7 +98,7 @@ class ContactPersonalTest extends BrowserTestBase {
$placeholders = [
'@sender_name' => $this->webUser->username,
'@sender_email' => $this->webUser->getEmail(),
- '@recipient_name' => $this->contactUser->getUsername()
+ '@recipient_name' => $this->contactUser->getUsername(),
];
$this->assertRaw(new FormattableMarkup('@sender_name (@sender_email) sent @recipient_name an email.', $placeholders));
// Ensure an unescaped version of the email does not exist anywhere.
diff --git a/core/modules/contact/tests/src/Functional/ContactSitewideTest.php b/core/modules/contact/tests/src/Functional/ContactSitewideTest.php
index b42b960..2c881b0 100644
--- a/core/modules/contact/tests/src/Functional/ContactSitewideTest.php
+++ b/core/modules/contact/tests/src/Functional/ContactSitewideTest.php
@@ -100,7 +100,7 @@ class ContactSitewideTest extends BrowserTestBase {
// field_ui enabled admin/structure/contact/manage/personal/fields exists.
// @todo: See https://www.drupal.org/node/2031223 for the above.
$edit_link = $this->xpath('//a[@href=:href]', [
- ':href' => \Drupal::url('entity.contact_form.edit_form', ['contact_form' => 'personal'])
+ ':href' => \Drupal::url('entity.contact_form.edit_form', ['contact_form' => 'personal']),
]);
$this->assertTrue(empty($edit_link), format_string('No link containing href %href found.',
['%href' => 'admin/structure/contact/manage/personal']
@@ -405,7 +405,7 @@ class ContactSitewideTest extends BrowserTestBase {
'administer contact forms',
'administer permissions',
'administer users',
- 'access site reports'
+ 'access site reports',
]);
$this->drupalLogin($admin_user);
diff --git a/core/modules/contact/tests/src/Functional/Views/ContactFieldsTest.php b/core/modules/contact/tests/src/Functional/Views/ContactFieldsTest.php
index c66b5ad..fd9b1ce 100644
--- a/core/modules/contact/tests/src/Functional/Views/ContactFieldsTest.php
+++ b/core/modules/contact/tests/src/Functional/Views/ContactFieldsTest.php
@@ -34,7 +34,7 @@ class ContactFieldsTest extends ViewTestBase {
$this->fieldStorage = FieldStorageConfig::create([
'field_name' => strtolower($this->randomMachineName()),
'entity_type' => 'contact_message',
- 'type' => 'text'
+ 'type' => 'text',
]);
$this->fieldStorage->save();
diff --git a/core/modules/contact/tests/src/Kernel/Plugin/migrate/source/d6/ContactSettingsTest.php b/core/modules/contact/tests/src/Kernel/Plugin/migrate/source/d6/ContactSettingsTest.php
index 72ea7f2..6d6afa3 100644
--- a/core/modules/contact/tests/src/Kernel/Plugin/migrate/source/d6/ContactSettingsTest.php
+++ b/core/modules/contact/tests/src/Kernel/Plugin/migrate/source/d6/ContactSettingsTest.php
@@ -37,7 +37,7 @@ class ContactSettingsTest extends MigrateSqlSourceTestBase {
'reply' => '',
'weight' => '0',
'selected' => '1',
- ]
+ ],
];
$tests[0]['expected_data'] = [
[
diff --git a/core/modules/content_moderation/src/Form/ContentModerationConfigureForm.php b/core/modules/content_moderation/src/Form/ContentModerationConfigureForm.php
index 6006c9a..274b9f8 100644
--- a/core/modules/content_moderation/src/Form/ContentModerationConfigureForm.php
+++ b/core/modules/content_moderation/src/Form/ContentModerationConfigureForm.php
@@ -68,7 +68,7 @@ class ContentModerationConfigureForm extends WorkflowTypeConfigureFormBase imple
$header = [
'type' => $this->t('Items'),
- 'operations' => $this->t('Operations')
+ 'operations' => $this->t('Operations'),
];
$form['entity_types_container'] = [
'#type' => 'details',
@@ -108,7 +108,7 @@ class ContentModerationConfigureForm extends WorkflowTypeConfigureFormBase imple
'label' => $this->t('@bundle types', ['@bundle' => $entity_type->getLabel()]),
'entity_type_id' => $entity_type->id(),
'selected_bundles' => $selected_bundles_list,
- ]
+ ],
],
'operations' => [
'#type' => 'operations',
diff --git a/core/modules/content_moderation/src/Plugin/Validation/Constraint/ModerationStateConstraintValidator.php b/core/modules/content_moderation/src/Plugin/Validation/Constraint/ModerationStateConstraintValidator.php
index 4b87973..65fc2a0 100644
--- a/core/modules/content_moderation/src/Plugin/Validation/Constraint/ModerationStateConstraintValidator.php
+++ b/core/modules/content_moderation/src/Plugin/Validation/Constraint/ModerationStateConstraintValidator.php
@@ -98,7 +98,7 @@ class ModerationStateConstraintValidator extends ConstraintValidator implements
if (!$original_state->canTransitionTo($new_state->id())) {
$this->context->addViolation($constraint->message, [
'%from' => $original_state->label(),
- '%to' => $new_state->label()
+ '%to' => $new_state->label(),
]);
}
}
diff --git a/core/modules/content_moderation/tests/src/Functional/ModerationFormTest.php b/core/modules/content_moderation/tests/src/Functional/ModerationFormTest.php
index 76d25f2..6b2af34 100644
--- a/core/modules/content_moderation/tests/src/Functional/ModerationFormTest.php
+++ b/core/modules/content_moderation/tests/src/Functional/ModerationFormTest.php
@@ -473,7 +473,7 @@ class ModerationFormTest extends ModerationStateTestBase {
'edit own moderated_content content',
'use editorial transition create_new_draft',
'use editorial transition publish',
- 'use editorial transition archive'
+ 'use editorial transition archive',
]);
$this->drupalLogin($user);
$paths = [
diff --git a/core/modules/content_moderation/tests/src/Functional/ViewsModerationStateFilterTest.php b/core/modules/content_moderation/tests/src/Functional/ViewsModerationStateFilterTest.php
index e5b296d..175554f 100644
--- a/core/modules/content_moderation/tests/src/Functional/ViewsModerationStateFilterTest.php
+++ b/core/modules/content_moderation/tests/src/Functional/ViewsModerationStateFilterTest.php
@@ -201,11 +201,11 @@ class ViewsModerationStateFilterTest extends ViewTestBase {
return [
'view on base table, filter on base table' => [
'test_content_moderation_state_filter_base_table',
- 'Content: Moderation state'
+ 'Content: Moderation state',
],
'view on base table, filter on revision table' => [
'test_content_moderation_state_filter_base_table_filter_on_revision',
- 'Content revision: Moderation state'
+ 'Content revision: Moderation state',
],
];
}
diff --git a/core/modules/content_moderation/tests/src/Kernel/ContentModerationPermissionsTest.php b/core/modules/content_moderation/tests/src/Kernel/ContentModerationPermissionsTest.php
index f17e4ac..b2abed2 100644
--- a/core/modules/content_moderation/tests/src/Kernel/ContentModerationPermissionsTest.php
+++ b/core/modules/content_moderation/tests/src/Kernel/ContentModerationPermissionsTest.php
@@ -89,7 +89,7 @@ class ContentModerationPermissionsTest extends KernelTestBase {
],
],
],
- []
+ [],
],
];
}
diff --git a/core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php b/core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php
index ef63472..279d4b4 100644
--- a/core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php
+++ b/core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php
@@ -520,7 +520,7 @@ class ContentModerationStateTest extends KernelTestBase {
$this->assertEquals([
'entity_test_no_bundle',
'entity_test_rev',
- 'node'
+ 'node',
], $workflow->getTypePlugin()->getEntityTypes());
// Delete the node type and ensure it is removed from the workflow.
diff --git a/core/modules/content_moderation/tests/src/Unit/ContentModerationRouteSubscriberTest.php b/core/modules/content_moderation/tests/src/Unit/ContentModerationRouteSubscriberTest.php
index e043656..d59bfca 100644
--- a/core/modules/content_moderation/tests/src/Unit/ContentModerationRouteSubscriberTest.php
+++ b/core/modules/content_moderation/tests/src/Unit/ContentModerationRouteSubscriberTest.php
@@ -78,7 +78,7 @@ class ContentModerationRouteSubscriberTest extends UnitTestCase {
],
'Entity parameter on an entity form' => [
[
- '_entity_form' => 'entity_test_rev.edit'
+ '_entity_form' => 'entity_test_rev.edit',
],
[
'entity_test_rev' => [
@@ -94,7 +94,7 @@ class ContentModerationRouteSubscriberTest extends UnitTestCase {
],
'Entity form with no operation' => [
[
- '_entity_form' => 'entity_test_rev'
+ '_entity_form' => 'entity_test_rev',
],
[
'entity_test_rev' => [
@@ -110,7 +110,7 @@ class ContentModerationRouteSubscriberTest extends UnitTestCase {
],
'Non-moderated entity form' => [
[
- '_entity_form' => 'entity_test_mulrev'
+ '_entity_form' => 'entity_test_mulrev',
],
[
'entity_test_mulrev' => [
@@ -120,7 +120,7 @@ class ContentModerationRouteSubscriberTest extends UnitTestCase {
],
'Multiple entity parameters on an entity form' => [
[
- '_entity_form' => 'entity_test_rev.edit'
+ '_entity_form' => 'entity_test_rev.edit',
],
[
'entity_test_rev' => [
@@ -142,7 +142,7 @@ class ContentModerationRouteSubscriberTest extends UnitTestCase {
],
'Overridden load_latest_revision flag does not change' => [
[
- '_entity_form' => 'entity_test_rev.edit'
+ '_entity_form' => 'entity_test_rev.edit',
],
[
'entity_test_rev' => [
@@ -153,7 +153,7 @@ class ContentModerationRouteSubscriberTest extends UnitTestCase {
],
'Non-revisionable entity type will not change' => [
[
- '_entity_form' => 'entity_test.edit'
+ '_entity_form' => 'entity_test.edit',
],
[
'entity_test' => [
@@ -165,7 +165,7 @@ class ContentModerationRouteSubscriberTest extends UnitTestCase {
],
'Overridden load_latest_revision flag does not change with multiple parameters' => [
[
- '_entity_form' => 'entity_test_rev.edit'
+ '_entity_form' => 'entity_test_rev.edit',
],
[
'entity_test_rev' => [
diff --git a/core/modules/content_translation/content_translation.admin.inc b/core/modules/content_translation/content_translation.admin.inc
index 998359d..a754702 100644
--- a/core/modules/content_translation/content_translation.admin.inc
+++ b/core/modules/content_translation/content_translation.admin.inc
@@ -65,7 +65,7 @@ function content_translation_field_sync_widget(FieldDefinitionInterface $field,
// does not get lost.
$element[key($options)]['#attached']['drupalSettings']['contentTranslationDependentOptions'] = [
'dependent_selectors' => [
- $element_name => $require_all_groups_for_translation
+ $element_name => $require_all_groups_for_translation,
],
];
$element[key($options)]['#attached']['library'][] = 'content_translation/drupal.content_translation.admin';
diff --git a/core/modules/content_translation/content_translation.install b/core/modules/content_translation/content_translation.install
index 93a9968..bc948e1 100644
--- a/core/modules/content_translation/content_translation.install
+++ b/core/modules/content_translation/content_translation.install
@@ -20,14 +20,14 @@ function content_translation_install() {
// Translation works when at least two languages are added.
if (count(\Drupal::languageManager()->getLanguages()) < 2) {
$t_args = [
- ':language_url' => Url::fromRoute('entity.configurable_language.collection')->toString()
+ ':language_url' => Url::fromRoute('entity.configurable_language.collection')->toString(),
];
$message = t('This site has only a single language enabled. <a href=":language_url">Add at least one more language</a> in order to translate content.', $t_args);
\Drupal::messenger()->addWarning($message);
}
// Point the user to the content translation settings.
$t_args = [
- ':settings_url' => Url::fromRoute('language.content_settings_page')->toString()
+ ':settings_url' => Url::fromRoute('language.content_settings_page')->toString(),
];
$message = t('<a href=":settings_url">Enable translation</a> for <em>content types</em>, <em>taxonomy vocabularies</em>, <em>accounts</em>, or any other element you wish to translate.', $t_args);
\Drupal::messenger()->addWarning($message);
diff --git a/core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php b/core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php
index 8cb3a4f..ae83395 100644
--- a/core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php
+++ b/core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php
@@ -112,7 +112,7 @@ abstract class ContentTranslationUITestBase extends ContentTranslationTestBase {
$add_url = Url::fromRoute("entity.$entity_type_id.content_translation_add", [
$entity->getEntityTypeId() => $entity->id(),
'source' => $default_langcode,
- 'target' => $langcode
+ 'target' => $langcode,
], ['language' => $language]);
$this->drupalPostForm($add_url, $this->getEditValues($values, $langcode), $this->getFormSubmitActionForNewTranslation($entity, $langcode));
@@ -176,7 +176,7 @@ abstract class ContentTranslationUITestBase extends ContentTranslationTestBase {
$add_url = Url::fromRoute("entity.$entity_type_id.content_translation_add", [
$entity->getEntityTypeId() => $entity->id(),
'source' => $default_langcode,
- 'target' => $langcode
+ 'target' => $langcode,
], ['language' => $language]);
// This does not save anything, it merely reloads the form and fills in the
// fields with the values from the different source language.
@@ -190,7 +190,7 @@ abstract class ContentTranslationUITestBase extends ContentTranslationTestBase {
$add_url = Url::fromRoute("entity.$entity_type_id.content_translation_add", [
$entity->getEntityTypeId() => $entity->id(),
'source' => $source_langcode,
- 'target' => $langcode
+ 'target' => $langcode,
], ['language' => $language]);
$this->drupalPostForm($add_url, $edit, $this->getFormSubmitActionForNewTranslation($entity, $langcode));
$storage->resetCache([$this->entityId]);
diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationLanguageChangeTest.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationLanguageChangeTest.php
index 6d42a1a..1bf836a 100644
--- a/core/modules/content_translation/tests/src/Functional/ContentTranslationLanguageChangeTest.php
+++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationLanguageChangeTest.php
@@ -140,7 +140,7 @@ class ContentTranslationLanguageChangeTest extends NodeTestBase {
$this->assertRaw('<title>Edit Article english_title | Drupal</title>');
$edit = [
'langcode[0][value]' => 'en',
- 'field_image_field[0][alt]' => 'alternative_text'
+ 'field_image_field[0][alt]' => 'alternative_text',
];
$this->drupalPostForm(NULL, $edit, t('Save (this translation)'));
diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationSettingsTest.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationSettingsTest.php
index f15a8f9..52a9230 100644
--- a/core/modules/content_translation/tests/src/Functional/ContentTranslationSettingsTest.php
+++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationSettingsTest.php
@@ -154,7 +154,7 @@ class ContentTranslationSettingsTest extends BrowserTestBase {
'settings[node][article][settings][language][langcode]' => 'current_interface',
'settings[node][article][settings][language][language_alterable]' => TRUE,
'settings[node][article][translatable]' => TRUE,
- 'settings[node][article][fields][title]' => TRUE
+ 'settings[node][article][fields][title]' => TRUE,
];
$this->assertSettings('node', NULL, TRUE, $edit);
diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationUISkipTest.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationUISkipTest.php
index 77c176e..97d0b00 100644
--- a/core/modules/content_translation/tests/src/Functional/ContentTranslationUISkipTest.php
+++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationUISkipTest.php
@@ -25,7 +25,7 @@ class ContentTranslationUISkipTest extends BrowserTestBase {
$admin_user = $this->drupalCreateUser([
'translate any entity',
'administer content translation',
- 'administer languages'
+ 'administer languages',
]);
$this->drupalLogin($admin_user);
// Visit the content translation.
diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php
index bfa93dc..7e7bf1f 100644
--- a/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php
+++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php
@@ -109,7 +109,7 @@ abstract class ContentTranslationUITestBase extends ContentTranslationTestBase {
$add_url = Url::fromRoute("entity.$entity_type_id.content_translation_add", [
$entity->getEntityTypeId() => $entity->id(),
'source' => $default_langcode,
- 'target' => $langcode
+ 'target' => $langcode,
], ['language' => $language]);
$this->drupalPostForm($add_url, $this->getEditValues($values, $langcode), $this->getFormSubmitActionForNewTranslation($entity, $langcode));
@@ -173,7 +173,7 @@ abstract class ContentTranslationUITestBase extends ContentTranslationTestBase {
$add_url = Url::fromRoute("entity.$entity_type_id.content_translation_add", [
$entity->getEntityTypeId() => $entity->id(),
'source' => $default_langcode,
- 'target' => $langcode
+ 'target' => $langcode,
], ['language' => $language]);
// This does not save anything, it merely reloads the form and fills in the
// fields with the values from the different source language.
@@ -187,7 +187,7 @@ abstract class ContentTranslationUITestBase extends ContentTranslationTestBase {
$add_url = Url::fromRoute("entity.$entity_type_id.content_translation_add", [
$entity->getEntityTypeId() => $entity->id(),
'source' => $source_langcode,
- 'target' => $langcode
+ 'target' => $langcode,
], ['language' => $language]);
$this->drupalPostForm($add_url, $edit, $this->getFormSubmitActionForNewTranslation($entity, $langcode));
$storage->resetCache([$this->entityId]);
diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationUntranslatableFieldsTest.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationUntranslatableFieldsTest.php
index b44919a..ab70fef 100644
--- a/core/modules/content_translation/tests/src/Functional/ContentTranslationUntranslatableFieldsTest.php
+++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationUntranslatableFieldsTest.php
@@ -59,7 +59,7 @@ class ContentTranslationUntranslatableFieldsTest extends ContentTranslationPendi
$add_url = Url::fromRoute("entity.{$this->entityTypeId}.content_translation_add", [
$entity->getEntityTypeId() => $entity->id(),
'source' => 'en',
- 'target' => 'it'
+ 'target' => 'it',
]);
$this->drupalGet($add_url);
$this->assertNotEmpty($this->xpath($field_xpath));
diff --git a/core/modules/content_translation/tests/src/Kernel/ContentTranslationConfigImportTest.php b/core/modules/content_translation/tests/src/Kernel/ContentTranslationConfigImportTest.php
index b8776a2..44e8160 100644
--- a/core/modules/content_translation/tests/src/Kernel/ContentTranslationConfigImportTest.php
+++ b/core/modules/content_translation/tests/src/Kernel/ContentTranslationConfigImportTest.php
@@ -74,7 +74,7 @@ class ContentTranslationConfigImportTest extends KernelTestBase {
'langcode' => 'en',
'status' => TRUE,
'dependencies' => [
- 'module' => ['content_translation']
+ 'module' => ['content_translation'],
],
'id' => $config_id,
'target_entity_type_id' => 'entity_test_mul',
diff --git a/core/modules/contextual/contextual.module b/core/modules/contextual/contextual.module
index a814c39..b9d61b7 100644
--- a/core/modules/contextual/contextual.module
+++ b/core/modules/contextual/contextual.module
@@ -86,7 +86,7 @@ function contextual_help($route_name, RouteMatchInterface $route_match) {
$sample_picture = [
'#theme' => 'image',
'#uri' => 'core/misc/icons/bebebe/pencil.svg',
- '#alt' => t('contextual links button')
+ '#alt' => t('contextual links button'),
];
$sample_picture = \Drupal::service('renderer')->render($sample_picture);
$output .= '<li>' . t('Hovering over the area of interest will temporarily make the contextual links button visible (which looks like a pencil in most themes, and is normally displayed in the upper right corner of the area). The icon typically looks like this: @picture', ['@picture' => $sample_picture]) . '</li>';
diff --git a/core/modules/contextual/src/Plugin/views/field/ContextualLinks.php b/core/modules/contextual/src/Plugin/views/field/ContextualLinks.php
index de30f5c..338d5d7 100644
--- a/core/modules/contextual/src/Plugin/views/field/ContextualLinks.php
+++ b/core/modules/contextual/src/Plugin/views/field/ContextualLinks.php
@@ -130,8 +130,8 @@ class ContextualLinks extends FieldPluginBase {
[],
[
'contextual-views-field-links' => UrlHelper::encodePath(Json::encode($links)),
- ]
- ]
+ ],
+ ],
];
$element = [
diff --git a/core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php b/core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php
index f42bf20..0e5f721 100644
--- a/core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php
+++ b/core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php
@@ -65,7 +65,7 @@ class ContextualUnitTest extends KernelTestBase {
'links' => [
'views_ui_edit' => [
'route_parameters' => [
- 'view' => 'frontpage'
+ 'view' => 'frontpage',
],
'metadata' => [
'location' => 'page',
diff --git a/core/modules/datetime/src/Plugin/Field/FieldType/DateTimeFieldItemList.php b/core/modules/datetime/src/Plugin/Field/FieldType/DateTimeFieldItemList.php
index c0c66b7..2af64d7 100644
--- a/core/modules/datetime/src/Plugin/Field/FieldType/DateTimeFieldItemList.php
+++ b/core/modules/datetime/src/Plugin/Field/FieldType/DateTimeFieldItemList.php
@@ -51,9 +51,9 @@ class DateTimeFieldItemList extends FieldItemList {
'#states' => [
'visible' => [
':input[id="edit-default-value-input-default-date-type"]' => ['value' => static::DEFAULT_VALUE_CUSTOM],
- ]
- ]
- ]
+ ],
+ ],
+ ],
];
return $element;
@@ -112,7 +112,7 @@ class DateTimeFieldItemList extends FieldItemList {
[
'value' => $value,
'date' => $date,
- ]
+ ],
];
}
return $default_value;
diff --git a/core/modules/datetime/src/Tests/Views/DateTimeHandlerTestBase.php b/core/modules/datetime/src/Tests/Views/DateTimeHandlerTestBase.php
index 854352e..a89687a 100644
--- a/core/modules/datetime/src/Tests/Views/DateTimeHandlerTestBase.php
+++ b/core/modules/datetime/src/Tests/Views/DateTimeHandlerTestBase.php
@@ -49,7 +49,7 @@ abstract class DateTimeHandlerTestBase extends HandlerTestBase {
// Add a date field to page nodes.
$node_type = NodeType::create([
'type' => 'page',
- 'name' => 'page'
+ 'name' => 'page',
]);
$node_type->save();
$fieldStorage = FieldStorageConfig::create([
diff --git a/core/modules/datetime/tests/src/Functional/DateTimeFieldTest.php b/core/modules/datetime/tests/src/Functional/DateTimeFieldTest.php
index 72ef128..89a7605 100644
--- a/core/modules/datetime/tests/src/Functional/DateTimeFieldTest.php
+++ b/core/modules/datetime/tests/src/Functional/DateTimeFieldTest.php
@@ -189,7 +189,7 @@ class DateTimeFieldTest extends DateTestBase {
->setComponent($field_name, $this->displayOptions)
->save();
$expected = new FormattableMarkup($this->displayOptions['settings']['past_format'], [
- '@interval' => $this->dateFormatter->formatTimeDiffSince($timestamp, ['granularity' => $this->displayOptions['settings']['granularity']])
+ '@interval' => $this->dateFormatter->formatTimeDiffSince($timestamp, ['granularity' => $this->displayOptions['settings']['granularity']]),
]);
$output = $this->renderTestEntity($id);
$this->assertContains((string) $expected, $output, new FormattableMarkup('Formatted date field using datetime_time_ago format displayed as %expected in %timezone.', [
@@ -213,7 +213,7 @@ class DateTimeFieldTest extends DateTestBase {
->setComponent($field_name, $this->displayOptions)
->save();
$expected = new FormattableMarkup($this->displayOptions['settings']['future_format'], [
- '@interval' => $this->dateFormatter->formatTimeDiffUntil($timestamp, ['granularity' => $this->displayOptions['settings']['granularity']])
+ '@interval' => $this->dateFormatter->formatTimeDiffUntil($timestamp, ['granularity' => $this->displayOptions['settings']['granularity']]),
]);
$output = $this->renderTestEntity($id);
$this->assertContains((string) $expected, $output, new FormattableMarkup('Formatted date field using datetime_time_ago format displayed as %expected in %timezone.', [
@@ -341,7 +341,7 @@ class DateTimeFieldTest extends DateTestBase {
->setComponent($field_name, $this->displayOptions)
->save();
$expected = new FormattableMarkup($this->displayOptions['settings']['past_format'], [
- '@interval' => $this->dateFormatter->formatTimeDiffSince($timestamp, ['granularity' => $this->displayOptions['settings']['granularity']])
+ '@interval' => $this->dateFormatter->formatTimeDiffSince($timestamp, ['granularity' => $this->displayOptions['settings']['granularity']]),
]);
$output = $this->renderTestEntity($id);
$this->assertContains((string) $expected, $output, new FormattableMarkup('Formatted date field using datetime_time_ago format displayed as %expected.', ['%expected' => $expected]));
@@ -362,7 +362,7 @@ class DateTimeFieldTest extends DateTestBase {
->setComponent($field_name, $this->displayOptions)
->save();
$expected = new FormattableMarkup($this->displayOptions['settings']['future_format'], [
- '@interval' => $this->dateFormatter->formatTimeDiffUntil($timestamp, ['granularity' => $this->displayOptions['settings']['granularity']])
+ '@interval' => $this->dateFormatter->formatTimeDiffUntil($timestamp, ['granularity' => $this->displayOptions['settings']['granularity']]),
]);
$output = $this->renderTestEntity($id);
$this->assertContains((string) $expected, $output, new FormattableMarkup('Formatted date field using datetime_time_ago format displayed as %expected.', ['%expected' => $expected]));
diff --git a/core/modules/datetime/tests/src/Kernel/Views/ArgumentDateTimeTest.php b/core/modules/datetime/tests/src/Kernel/Views/ArgumentDateTimeTest.php
index 8261b27..f9b8c5c 100644
--- a/core/modules/datetime/tests/src/Kernel/Views/ArgumentDateTimeTest.php
+++ b/core/modules/datetime/tests/src/Kernel/Views/ArgumentDateTimeTest.php
@@ -38,7 +38,7 @@ class ArgumentDateTimeTest extends DateTimeHandlerTestBase {
'type' => 'page',
'field_date' => [
'value' => $date,
- ]
+ ],
]);
$node->save();
$this->nodes[] = $node;
diff --git a/core/modules/datetime/tests/src/Kernel/Views/DateTimeHandlerTestBase.php b/core/modules/datetime/tests/src/Kernel/Views/DateTimeHandlerTestBase.php
index de236c9..5903551 100644
--- a/core/modules/datetime/tests/src/Kernel/Views/DateTimeHandlerTestBase.php
+++ b/core/modules/datetime/tests/src/Kernel/Views/DateTimeHandlerTestBase.php
@@ -57,7 +57,7 @@ abstract class DateTimeHandlerTestBase extends ViewsKernelTestBase {
// Add a date field to page nodes.
$node_type = NodeType::create([
'type' => 'page',
- 'name' => 'page'
+ 'name' => 'page',
]);
$node_type->save();
$fieldStorage = FieldStorageConfig::create([
diff --git a/core/modules/datetime/tests/src/Kernel/Views/FilterDateTimeTest.php b/core/modules/datetime/tests/src/Kernel/Views/FilterDateTimeTest.php
index 7cb0fa0..1e6369c 100644
--- a/core/modules/datetime/tests/src/Kernel/Views/FilterDateTimeTest.php
+++ b/core/modules/datetime/tests/src/Kernel/Views/FilterDateTimeTest.php
@@ -59,7 +59,7 @@ class FilterDateTimeTest extends DateTimeHandlerTestBase {
'type' => 'page',
'field_date' => [
'value' => $date,
- ]
+ ],
]);
$node->save();
$this->nodes[] = $node;
diff --git a/core/modules/datetime/tests/src/Kernel/Views/SortDateTimeTest.php b/core/modules/datetime/tests/src/Kernel/Views/SortDateTimeTest.php
index 7375c4d..16e888a 100644
--- a/core/modules/datetime/tests/src/Kernel/Views/SortDateTimeTest.php
+++ b/core/modules/datetime/tests/src/Kernel/Views/SortDateTimeTest.php
@@ -39,7 +39,7 @@ class SortDateTimeTest extends DateTimeHandlerTestBase {
'type' => 'page',
'field_date' => [
'value' => $date,
- ]
+ ],
]);
$node->save();
$this->nodes[] = $node;
diff --git a/core/modules/dblog/dblog.module b/core/modules/dblog/dblog.module
index 700ceea..bc04ce8 100644
--- a/core/modules/dblog/dblog.module
+++ b/core/modules/dblog/dblog.module
@@ -103,7 +103,7 @@ function dblog_form_system_logging_settings_alter(&$form, FormStateInterface $fo
'#title' => t('Database log messages to keep'),
'#default_value' => \Drupal::configFactory()->getEditable('dblog.settings')->get('row_limit'),
'#options' => [0 => t('All')] + array_combine($row_limits, $row_limits),
- '#description' => t('The maximum number of messages to keep in the database log. Requires a <a href=":cron">cron maintenance task</a>.', [':cron' => \Drupal::url('system.status')])
+ '#description' => t('The maximum number of messages to keep in the database log. Requires a <a href=":cron">cron maintenance task</a>.', [':cron' => \Drupal::url('system.status')]),
];
$form['#submit'][] = 'dblog_logging_settings_submit';
diff --git a/core/modules/editor/src/Tests/EditorLoadingTest.php b/core/modules/editor/src/Tests/EditorLoadingTest.php
index b8dd074..dca641a 100644
--- a/core/modules/editor/src/Tests/EditorLoadingTest.php
+++ b/core/modules/editor/src/Tests/EditorLoadingTest.php
@@ -118,7 +118,7 @@ class EditorLoadingTest extends WebTestBase {
'directory' => 'inline-images',
'max_size' => '',
'max_dimensions' => ['width' => '', 'height' => ''],
- ]
+ ],
]);
$editor->save();
@@ -202,7 +202,7 @@ class EditorLoadingTest extends WebTestBase {
$this->drupalCreateNode([
'type' => 'article',
'body' => [
- ['value' => $this->randomMachineName(32), 'format' => 'full_html']
+ ['value' => $this->randomMachineName(32), 'format' => 'full_html'],
],
]);
@@ -234,7 +234,7 @@ class EditorLoadingTest extends WebTestBase {
'directory' => 'inline-images',
'max_size' => '',
'max_dimensions' => ['width' => '', 'height' => ''],
- ]
+ ],
]);
$editor->save();
@@ -242,7 +242,7 @@ class EditorLoadingTest extends WebTestBase {
$this->drupalCreateNode([
'type' => 'page',
'field_text' => [
- ['value' => $this->randomMachineName(32), 'format' => 'full_html']
+ ['value' => $this->randomMachineName(32), 'format' => 'full_html'],
],
]);
diff --git a/core/modules/editor/src/Tests/EditorSecurityTest.php b/core/modules/editor/src/Tests/EditorSecurityTest.php
index f3c2995..a5ea925 100644
--- a/core/modules/editor/src/Tests/EditorSecurityTest.php
+++ b/core/modules/editor/src/Tests/EditorSecurityTest.php
@@ -93,7 +93,7 @@ class EditorSecurityTest extends WebTestBase {
'status' => 1,
'settings' => [
'allowed_html' => '<h2> <h3> <h4> <h5> <h6> <p> <br> <strong> <a>',
- ]
+ ],
],
],
]);
@@ -108,7 +108,7 @@ class EditorSecurityTest extends WebTestBase {
'status' => 1,
'settings' => [
'allowed_html' => '<h2> <h3> <h4> <h5> <h6> <p> <br> <strong> <a>',
- ]
+ ],
],
],
]);
@@ -128,7 +128,7 @@ class EditorSecurityTest extends WebTestBase {
'status' => 1,
'settings' => [
'allowed_html' => '<h2> <h3> <h4> <h5> <h6> <p> <br> <strong> <a> <embed>',
- ]
+ ],
],
],
]);
@@ -209,9 +209,9 @@ class EditorSecurityTest extends WebTestBase {
$this->drupalCreateNode([
'type' => 'article',
'body' => [
- ['value' => self::$sampleContent, 'format' => $sample['format']]
+ ['value' => self::$sampleContent, 'format' => $sample['format']],
],
- 'uid' => $sample['author']
+ 'uid' => $sample['author'],
]);
}
}
diff --git a/core/modules/editor/src/Tests/EditorUploadImageScaleTest.php b/core/modules/editor/src/Tests/EditorUploadImageScaleTest.php
index 100fb4f..a4a2233 100644
--- a/core/modules/editor/src/Tests/EditorUploadImageScaleTest.php
+++ b/core/modules/editor/src/Tests/EditorUploadImageScaleTest.php
@@ -51,9 +51,9 @@ class EditorUploadImageScaleTest extends WebTestBase {
'max_size' => '',
'max_dimensions' => [
'width' => NULL,
- 'height' => NULL
+ 'height' => NULL,
],
- ]
+ ],
])->save();
// Create admin user.
diff --git a/core/modules/editor/src/Tests/QuickEditIntegrationLoadingTest.php b/core/modules/editor/src/Tests/QuickEditIntegrationLoadingTest.php
index a4515d5..5496378 100644
--- a/core/modules/editor/src/Tests/QuickEditIntegrationLoadingTest.php
+++ b/core/modules/editor/src/Tests/QuickEditIntegrationLoadingTest.php
@@ -57,8 +57,8 @@ class QuickEditIntegrationLoadingTest extends WebTestBase {
0 => [
'value' => '<p>Do you also love Drupal?</p><img src="druplicon.png" data-caption="Druplicon" />',
'format' => 'filtered_html',
- ]
- ]
+ ],
+ ],
]);
}
@@ -73,7 +73,7 @@ class QuickEditIntegrationLoadingTest extends WebTestBase {
$users = [
$this->drupalCreateUser(static::$basicPermissions),
$this->drupalCreateUser(array_merge(static::$basicPermissions, ['edit any article content'])),
- $this->drupalCreateUser(array_merge(static::$basicPermissions, ['access in-place editing']))
+ $this->drupalCreateUser(array_merge(static::$basicPermissions, ['access in-place editing'])),
];
// Now test with each of the 3 users with insufficient permissions.
diff --git a/core/modules/editor/tests/src/Kernel/QuickEditIntegrationTest.php b/core/modules/editor/tests/src/Kernel/QuickEditIntegrationTest.php
index 276f559..16c0773 100644
--- a/core/modules/editor/tests/src/Kernel/QuickEditIntegrationTest.php
+++ b/core/modules/editor/tests/src/Kernel/QuickEditIntegrationTest.php
@@ -221,7 +221,7 @@ class QuickEditIntegrationTest extends QuickEditTestBase {
[
'command' => 'editorGetUntransformedText',
'data' => 'Test',
- ]
+ ],
];
$ajax_response_attachments_processor = \Drupal::service('ajax_response.attachments_processor');
diff --git a/core/modules/editor/tests/src/Unit/EditorXssFilter/StandardTest.php b/core/modules/editor/tests/src/Unit/EditorXssFilter/StandardTest.php
index 35820a0..40a43fb 100644
--- a/core/modules/editor/tests/src/Unit/EditorXssFilter/StandardTest.php
+++ b/core/modules/editor/tests/src/Unit/EditorXssFilter/StandardTest.php
@@ -583,20 +583,20 @@ xss:ex/*XSS*//*/*/pression(alert("XSS"))\'>',
'<unknown style="visibility:hidden">Pink Fairy Armadillo</unknown><video src="gerenuk.mp4"><script>alert(0)</script>',
'<unknown>Pink Fairy Armadillo</unknown><video src="gerenuk.mp4">alert(0)',
'Disallow only the script tag',
- ['script']
+ ['script'],
],
[
'<unknown style="visibility:hidden">Pink Fairy Armadillo</unknown><video src="gerenuk.mp4"><script>alert(0)</script>',
'<unknown>Pink Fairy Armadillo</unknown>alert(0)',
'Disallow both the script and video tags',
- ['script', 'video']
+ ['script', 'video'],
],
// No real use case for this, but it is an edge case we must ensure works.
[
'<unknown style="visibility:hidden">Pink Fairy Armadillo</unknown><video src="gerenuk.mp4"><script>alert(0)</script>',
'<unknown>Pink Fairy Armadillo</unknown><video src="gerenuk.mp4"><script>alert(0)</script>',
'Disallow no tags',
- []
+ [],
],
];
}
diff --git a/core/modules/field/src/Tests/EntityReference/EntityReferenceAdminTest.php b/core/modules/field/src/Tests/EntityReference/EntityReferenceAdminTest.php
index 369869c..7a5e3ea 100644
--- a/core/modules/field/src/Tests/EntityReference/EntityReferenceAdminTest.php
+++ b/core/modules/field/src/Tests/EntityReference/EntityReferenceAdminTest.php
@@ -293,7 +293,7 @@ class EntityReferenceAdminTest extends WebTestBase {
$edit = [
'title[0][value]' => 'Example',
- 'field_test_entity_ref_field[0][target_id]' => 'Test'
+ 'field_test_entity_ref_field[0][target_id]' => 'Test',
];
$this->drupalPostForm('node/add/' . $this->type, $edit, t('Save'));
@@ -302,7 +302,7 @@ class EntityReferenceAdminTest extends WebTestBase {
$edit = [
'title[0][value]' => 'Test',
- 'field_test_entity_ref_field[0][target_id]' => $node1->getTitle()
+ 'field_test_entity_ref_field[0][target_id]' => $node1->getTitle(),
];
$this->drupalPostForm('node/add/' . $this->type, $edit, t('Save'));
@@ -315,7 +315,7 @@ class EntityReferenceAdminTest extends WebTestBase {
$edit = [
'title[0][value]' => 'Test',
- 'field_test_entity_ref_field[0][target_id]' => $node1->getTitle() . ' (' . $node1->id() . ')'
+ 'field_test_entity_ref_field[0][target_id]' => $node1->getTitle() . ' (' . $node1->id() . ')',
];
$this->drupalPostForm('node/add/' . $this->type, $edit, t('Save'));
$this->assertLink($node1->getTitle());
diff --git a/core/modules/field/src/Tests/EntityReference/EntityReferenceFileUploadTest.php b/core/modules/field/src/Tests/EntityReference/EntityReferenceFileUploadTest.php
index ebb0ba1..21ab5c2 100644
--- a/core/modules/field/src/Tests/EntityReference/EntityReferenceFileUploadTest.php
+++ b/core/modules/field/src/Tests/EntityReference/EntityReferenceFileUploadTest.php
@@ -82,7 +82,7 @@ class EntityReferenceFileUploadTest extends WebTestBase {
$field_storage = FieldStorageConfig::create([
'field_name' => $file_field_name,
'entity_type' => 'node',
- 'type' => 'file'
+ 'type' => 'file',
]);
$field_storage->save();
FieldConfig::create([
diff --git a/core/modules/field/src/Tests/FormTest.php b/core/modules/field/src/Tests/FormTest.php
index 326cfe2..9894641 100644
--- a/core/modules/field/src/Tests/FormTest.php
+++ b/core/modules/field/src/Tests/FormTest.php
@@ -119,7 +119,7 @@ class FormTest extends FieldTestBase {
// Submit with invalid value (field-level validation).
$edit = [
- "{$field_name}[0][value]" => -1
+ "{$field_name}[0][value]" => -1,
];
$this->drupalPostForm(NULL, $edit, t('Save'));
$this->assertRaw(t('%name does not accept the value -1.', ['%name' => $this->field['label']]), 'Field validation fails with invalid input.');
@@ -156,7 +156,7 @@ class FormTest extends FieldTestBase {
// Empty the field.
$value = '';
$edit = [
- "{$field_name}[0][value]" => $value
+ "{$field_name}[0][value]" => $value,
];
$this->drupalPostForm('entity_test/manage/' . $id . '/edit', $edit, t('Save'));
$this->assertText(t('entity_test @id has been updated.', ['@id' => $id]), 'Entity was updated');
diff --git a/core/modules/field/src/Tests/Number/NumberFieldTest.php b/core/modules/field/src/Tests/Number/NumberFieldTest.php
index dc082d7..d18de5e 100644
--- a/core/modules/field/src/Tests/Number/NumberFieldTest.php
+++ b/core/modules/field/src/Tests/Number/NumberFieldTest.php
@@ -56,7 +56,7 @@ class NumberFieldTest extends WebTestBase {
->setComponent($field_name, [
'type' => 'number',
'settings' => [
- 'placeholder' => '0.00'
+ 'placeholder' => '0.00',
],
])
->save();
@@ -150,7 +150,7 @@ class NumberFieldTest extends WebTestBase {
->setComponent($field_name, [
'type' => 'number',
'settings' => [
- 'placeholder' => '4'
+ 'placeholder' => '4',
],
])
->save();
@@ -169,12 +169,12 @@ class NumberFieldTest extends WebTestBase {
'value' => [
'type' => 'int',
'unsigned' => '',
- 'size' => 'normal'
+ 'size' => 'normal',
],
],
'unique keys' => [],
'indexes' => [],
- 'foreign keys' => []
+ 'foreign keys' => [],
];
$this->assertEqual($storage->getSchema(), $expected);
@@ -289,7 +289,7 @@ class NumberFieldTest extends WebTestBase {
->setComponent($field_name, [
'type' => 'number',
'settings' => [
- 'placeholder' => '0.00'
+ 'placeholder' => '0.00',
],
])
->save();
@@ -392,7 +392,7 @@ class NumberFieldTest extends WebTestBase {
'bundle' => $type,
'settings' => [
'prefix' => $prefix,
- 'suffix' => $suffix
+ 'suffix' => $suffix,
],
])->save();
@@ -402,7 +402,7 @@ class NumberFieldTest extends WebTestBase {
'bundle' => $type,
'settings' => [
'prefix' => $prefix,
- 'suffix' => $suffix
+ 'suffix' => $suffix,
],
])->save();
@@ -410,13 +410,13 @@ class NumberFieldTest extends WebTestBase {
->setComponent($float_field, [
'type' => 'number',
'settings' => [
- 'placeholder' => '0.00'
+ 'placeholder' => '0.00',
],
])
->setComponent($integer_field, [
'type' => 'number',
'settings' => [
- 'placeholder' => '0.00'
+ 'placeholder' => '0.00',
],
])
->save();
diff --git a/core/modules/field/src/Tests/String/StringFieldTest.php b/core/modules/field/src/Tests/String/StringFieldTest.php
index 5049280..9e98890 100644
--- a/core/modules/field/src/Tests/String/StringFieldTest.php
+++ b/core/modules/field/src/Tests/String/StringFieldTest.php
@@ -54,7 +54,7 @@ class StringFieldTest extends WebTestBase {
$field_storage = FieldStorageConfig::create([
'field_name' => $field_name,
'entity_type' => 'entity_test',
- 'type' => $field_type
+ 'type' => $field_type,
]);
$field_storage->save();
FieldConfig::create([
diff --git a/core/modules/field/src/Tests/reEnableModuleFieldTest.php b/core/modules/field/src/Tests/reEnableModuleFieldTest.php
index ce98c7f..14c8d01 100644
--- a/core/modules/field/src/Tests/reEnableModuleFieldTest.php
+++ b/core/modules/field/src/Tests/reEnableModuleFieldTest.php
@@ -23,7 +23,7 @@ class reEnableModuleFieldTest extends WebTestBase {
'node',
// We use telephone module instead of test_field because test_field is
// hidden and does not display on the admin/modules page.
- 'telephone'
+ 'telephone',
];
protected function setUp() {
diff --git a/core/modules/field/tests/fixtures/update/drupal-8.views_entity_reference_plugins-2429191.php b/core/modules/field/tests/fixtures/update/drupal-8.views_entity_reference_plugins-2429191.php
index ecedb93..5ecacf5 100644
--- a/core/modules/field/tests/fixtures/update/drupal-8.views_entity_reference_plugins-2429191.php
+++ b/core/modules/field/tests/fixtures/update/drupal-8.views_entity_reference_plugins-2429191.php
@@ -66,7 +66,7 @@ $connection->update('key_value')
->condition('collection', 'entity.definitions.installed')
->condition('name', 'node.field_storage_definitions')
->fields([
- 'value' => serialize($installed)
+ 'value' => serialize($installed),
])
->execute();
diff --git a/core/modules/field/tests/modules/field_test/src/Form/NestedEntityTestForm.php b/core/modules/field/tests/modules/field_test/src/Form/NestedEntityTestForm.php
index aed95dc..0c5d7b0 100644
--- a/core/modules/field/tests/modules/field_test/src/Form/NestedEntityTestForm.php
+++ b/core/modules/field/tests/modules/field_test/src/Form/NestedEntityTestForm.php
@@ -42,7 +42,7 @@ class NestedEntityTestForm extends FormBase {
'#tree' => TRUE,
'#parents' => ['entity_2'],
'#weight' => 50,
- '#attributes' => ['class' => ['entity-2']]
+ '#attributes' => ['class' => ['entity-2']],
];
$form_display_2->buildForm($entity_2, $form['entity_2'], $form_state);
diff --git a/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItem.php b/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItem.php
index 2f67879..d889f81 100644
--- a/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItem.php
+++ b/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItem.php
@@ -120,7 +120,7 @@ class TestItem extends FieldItemBase {
'TestField' => [
'value' => -1,
'message' => t('%name does not accept the value @value.', ['%name' => $this->getFieldDefinition()->getLabel(), '@value' => -1]),
- ]
+ ],
],
]);
diff --git a/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItemWithPreconfiguredOptions.php b/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItemWithPreconfiguredOptions.php
index 2dce022..6c98205 100644
--- a/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItemWithPreconfiguredOptions.php
+++ b/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItemWithPreconfiguredOptions.php
@@ -29,7 +29,7 @@ class TestItemWithPreconfiguredOptions extends TestItem implements Preconfigured
'field_storage_config' => [
'cardinality' => FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED,
'settings' => [
- 'test_field_storage_setting' => 'preconfigured_storage_setting'
+ 'test_field_storage_setting' => 'preconfigured_storage_setting',
],
],
'field_config' => [
diff --git a/core/modules/field/tests/src/Functional/Boolean/BooleanFieldTest.php b/core/modules/field/tests/src/Functional/Boolean/BooleanFieldTest.php
index 7a5dc45..b1d7ab5 100644
--- a/core/modules/field/tests/src/Functional/Boolean/BooleanFieldTest.php
+++ b/core/modules/field/tests/src/Functional/Boolean/BooleanFieldTest.php
@@ -122,7 +122,7 @@ class BooleanFieldTest extends BrowserTestBase {
'type' => 'boolean_checkbox',
'settings' => [
'display_label' => FALSE,
- ]
+ ],
])
->save();
diff --git a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceXSSTest.php b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceXSSTest.php
index b161ed6..dc4caea 100644
--- a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceXSSTest.php
+++ b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceXSSTest.php
@@ -60,7 +60,7 @@ class EntityReferenceXSSTest extends BrowserTestBase {
$edit = [
'title[0][value]' => $this->randomString(),
- 'entity_reference_test' => $referenced_node->id()
+ 'entity_reference_test' => $referenced_node->id(),
];
$this->drupalPostForm(NULL, $edit, 'Save');
$this->assertEscaped($referenced_node->getTitle());
diff --git a/core/modules/field/tests/src/Functional/EntityReference/Views/SelectionTest.php b/core/modules/field/tests/src/Functional/EntityReference/Views/SelectionTest.php
index cfb5ecf..6e12a8e 100644
--- a/core/modules/field/tests/src/Functional/EntityReference/Views/SelectionTest.php
+++ b/core/modules/field/tests/src/Functional/EntityReference/Views/SelectionTest.php
@@ -127,7 +127,7 @@ class SelectionTest extends BrowserTestBase {
'table' => 'users_field_data',
'field' => 'uid',
'relationship' => 'test_relationship',
- ]
+ ],
]);
// Set view to distinct so only one row per node is returned.
diff --git a/core/modules/field/tests/src/Kernel/Boolean/BooleanFormatterTest.php b/core/modules/field/tests/src/Kernel/Boolean/BooleanFormatterTest.php
index 9e4a0ed..b2fb193 100644
--- a/core/modules/field/tests/src/Kernel/Boolean/BooleanFormatterTest.php
+++ b/core/modules/field/tests/src/Kernel/Boolean/BooleanFormatterTest.php
@@ -114,7 +114,7 @@ class BooleanFormatterTest extends KernelTestBase {
$format = [
'format' => 'custom',
'format_custom_false' => 'FALSE',
- 'format_custom_true' => 'TRUE'
+ 'format_custom_true' => 'TRUE',
];
$data[] = [0, $format, 'FALSE'];
$data[] = [1, $format, 'TRUE'];
diff --git a/core/modules/field/tests/src/Kernel/BulkDeleteTest.php b/core/modules/field/tests/src/Kernel/BulkDeleteTest.php
index 900c154..f3532d3 100644
--- a/core/modules/field/tests/src/Kernel/BulkDeleteTest.php
+++ b/core/modules/field/tests/src/Kernel/BulkDeleteTest.php
@@ -105,7 +105,7 @@ class BulkDeleteTest extends FieldKernelTestBase {
'field_name' => 'bf_1',
'entity_type' => $this->entityTypeId,
'type' => 'test_field',
- 'cardinality' => 1
+ 'cardinality' => 1,
]);
$field_storage->save();
$this->fieldStorages[] = $field_storage;
@@ -113,7 +113,7 @@ class BulkDeleteTest extends FieldKernelTestBase {
'field_name' => 'bf_2',
'entity_type' => $this->entityTypeId,
'type' => 'test_field',
- 'cardinality' => 4
+ 'cardinality' => 4,
]);
$field_storage->save();
$this->fieldStorages[] = $field_storage;
@@ -222,7 +222,7 @@ class BulkDeleteTest extends FieldKernelTestBase {
'field_name' => $field_name,
'entity_type' => $this->entityTypeId,
'type' => 'test_field',
- 'cardinality' => 1
+ 'cardinality' => 1,
]);
$deleted_field_storage->save();
// Create the field.
@@ -253,7 +253,7 @@ class BulkDeleteTest extends FieldKernelTestBase {
'field_name' => $field_name,
'entity_type' => $this->entityTypeId,
'type' => 'test_field',
- 'cardinality' => 1
+ 'cardinality' => 1,
]);
$field_storage->save();
FieldConfig::create([
diff --git a/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php b/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php
index b3042f2..c9446c7 100644
--- a/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php
+++ b/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php
@@ -335,7 +335,7 @@ class EntityReferenceItemTest extends FieldKernelTestBase {
'entity_type' => 'entity_test',
'type' => 'entity_reference',
'settings' => [
- 'target_type' => 'entity_test'
+ 'target_type' => 'entity_test',
],
]);
$field_storage->save();
diff --git a/core/modules/field/tests/src/Kernel/FieldKernelTestBase.php b/core/modules/field/tests/src/Kernel/FieldKernelTestBase.php
index 7643585..98d7419 100644
--- a/core/modules/field/tests/src/Kernel/FieldKernelTestBase.php
+++ b/core/modules/field/tests/src/Kernel/FieldKernelTestBase.php
@@ -112,7 +112,7 @@ abstract class FieldKernelTestBase extends KernelTestBase {
'type' => 'test_field_widget',
'settings' => [
'test_widget_setting' => $this->randomMachineName(),
- ]
+ ],
])
->save();
}
diff --git a/core/modules/field/tests/src/Kernel/FieldStorageCrudTest.php b/core/modules/field/tests/src/Kernel/FieldStorageCrudTest.php
index a24bedb..93c15a8 100644
--- a/core/modules/field/tests/src/Kernel/FieldStorageCrudTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldStorageCrudTest.php
@@ -113,7 +113,7 @@ class FieldStorageCrudTest extends FieldKernelTestBase {
try {
$field_storage_definition = [
'field_name' => 'test_field',
- 'type' => 'test_field'
+ 'type' => 'test_field',
];
FieldStorageConfig::create($field_storage_definition)->save();
$this->fail('Cannot create a field without an entity type.');
@@ -188,7 +188,7 @@ class FieldStorageCrudTest extends FieldKernelTestBase {
*/
public function testCreateWithExplicitSchema() {
$schema = [
- 'dummy' => 'foobar'
+ 'dummy' => 'foobar',
];
$field_storage = FieldStorageConfig::create([
'field_name' => 'field_2',
diff --git a/core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldFormatterSettingsTest.php b/core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldFormatterSettingsTest.php
index 7b6e96a..7347c04 100644
--- a/core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldFormatterSettingsTest.php
+++ b/core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldFormatterSettingsTest.php
@@ -130,7 +130,7 @@ class MigrateFieldFormatterSettingsTest extends MigrateDrupal6TestBase {
$expected['weight'] = 8;
$expected['type'] = 'file_default';
$expected['settings'] = [
- 'use_description_as_link_text' => TRUE
+ 'use_description_as_link_text' => TRUE,
];
$component = $display->getComponent('field_test_filefield');
$this->assertIdentical($expected, $component);
diff --git a/core/modules/field/tests/src/Kernel/Plugin/migrate/source/d6/FieldInstancePerFormDisplayTest.php b/core/modules/field/tests/src/Kernel/Plugin/migrate/source/d6/FieldInstancePerFormDisplayTest.php
index a4ef2f6..dfbcc9f 100644
--- a/core/modules/field/tests/src/Kernel/Plugin/migrate/source/d6/FieldInstancePerFormDisplayTest.php
+++ b/core/modules/field/tests/src/Kernel/Plugin/migrate/source/d6/FieldInstancePerFormDisplayTest.php
@@ -57,7 +57,7 @@ class FieldInstancePerFormDisplayTest extends MigrateSqlSourceTestBase {
'db_columns' => $empty_array,
'active' => '1',
'locked' => '0',
- ]
+ ],
];
$tests[0]['source_data']['content_node_field_instance'] = [
[
diff --git a/core/modules/field/tests/src/Kernel/Plugin/migrate/source/d7/FieldInstancePerFormDisplayTest.php b/core/modules/field/tests/src/Kernel/Plugin/migrate/source/d7/FieldInstancePerFormDisplayTest.php
index 0663b91..b57357f 100644
--- a/core/modules/field/tests/src/Kernel/Plugin/migrate/source/d7/FieldInstancePerFormDisplayTest.php
+++ b/core/modules/field/tests/src/Kernel/Plugin/migrate/source/d7/FieldInstancePerFormDisplayTest.php
@@ -265,7 +265,7 @@ class FieldInstancePerFormDisplayTest extends MigrateSqlSourceTestBase {
'data' => 'a:7:{s:5:"label";s:7:"Integer";s:6:"widget";a:5:{s:6:"weight";s:1:"2";s:4:"type";s:6:"number";s:6:"module";s:6:"number";s:6:"active";i:0;s:8:"settings";a:0:{}}s:8:"settings";a:5:{s:3:"min";s:0:"";s:3:"max";s:0:"";s:6:"prefix";s:0:"";s:6:"suffix";s:0:"";s:18:"user_register_form";b:0;}s:7:"display";a:1:{s:7:"default";a:5:{s:5:"label";s:5:"above";s:4:"type";s:14:"number_integer";s:8:"settings";a:4:{s:18:"thousand_separator";s:1:" ";s:17:"decimal_separator";s:1:".";s:5:"scale";i:0;s:13:"prefix_suffix";b:1;}s:6:"module";s:6:"number";s:6:"weight";i:1;}}s:8:"required";i:0;s:11:"description";s:0:"";s:13:"default_value";N;}',
'deleted' => '0',
'type' => 'number_integer',
- ]
+ ],
],
],
[
diff --git a/core/modules/field/tests/src/Kernel/TestItemWithDependenciesTest.php b/core/modules/field/tests/src/Kernel/TestItemWithDependenciesTest.php
index d1a269a..4e52b75 100644
--- a/core/modules/field/tests/src/Kernel/TestItemWithDependenciesTest.php
+++ b/core/modules/field/tests/src/Kernel/TestItemWithDependenciesTest.php
@@ -48,7 +48,7 @@ class TestItemWithDependenciesTest extends FieldKernelTestBase {
$this->assertEqual([
'content' => ['node:article:uuid'],
'config' => ['field.storage.entity_test.field_test'],
- 'module' => ['entity_test', 'field_test', 'test_module']
+ 'module' => ['entity_test', 'field_test', 'test_module'],
], $field->getDependencies());
}
diff --git a/core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php b/core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php
index b7dadf4..36f9398 100644
--- a/core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php
+++ b/core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php
@@ -251,13 +251,13 @@ class FieldConfigEntityUnitTest extends UnitTestCase {
'dependencies' => [
'module' => [
'fruiter',
- ]
+ ],
],
'third_party_settings' => [
'fruiter' => [
'fruit' => 'apple',
- ]
- ]
+ ],
+ ],
]);
$changed = $field->onDependencyRemoval(['module' => ['fruiter']]);
$this->assertTrue($changed);
diff --git a/core/modules/field_ui/src/Element/FieldUiTable.php b/core/modules/field_ui/src/Element/FieldUiTable.php
index 894d5b0..3c9a14b 100644
--- a/core/modules/field_ui/src/Element/FieldUiTable.php
+++ b/core/modules/field_ui/src/Element/FieldUiTable.php
@@ -159,7 +159,7 @@ class FieldUiTable extends Table {
$elements['#rows'][] = [
'class' => [
'region-title',
- 'region-' . $region_name_class . '-title'
+ 'region-' . $region_name_class . '-title',
],
'no_striping' => TRUE,
'data' => [
diff --git a/core/modules/field_ui/src/FieldConfigListBuilder.php b/core/modules/field_ui/src/FieldConfigListBuilder.php
index cb720c3..b32b21d 100644
--- a/core/modules/field_ui/src/FieldConfigListBuilder.php
+++ b/core/modules/field_ui/src/FieldConfigListBuilder.php
@@ -162,7 +162,7 @@ class FieldConfigListBuilder extends ConfigEntityListBuilder {
'weight' => 10,
'url' => $entity->urlInfo("{$entity->getTargetEntityTypeId()}-field-edit-form"),
'attributes' => [
- 'title' => $this->t('Edit field settings.')
+ 'title' => $this->t('Edit field settings.'),
],
];
}
@@ -172,7 +172,7 @@ class FieldConfigListBuilder extends ConfigEntityListBuilder {
'weight' => 100,
'url' => $entity->urlInfo("{$entity->getTargetEntityTypeId()}-field-delete-form"),
'attributes' => [
- 'title' => $this->t('Delete field.')
+ 'title' => $this->t('Delete field.'),
],
];
}
diff --git a/core/modules/field_ui/src/FieldUiPermissions.php b/core/modules/field_ui/src/FieldUiPermissions.php
index be73db6..a127fcc 100644
--- a/core/modules/field_ui/src/FieldUiPermissions.php
+++ b/core/modules/field_ui/src/FieldUiPermissions.php
@@ -55,10 +55,10 @@ class FieldUiPermissions implements ContainerInjectionInterface {
'restrict access' => TRUE,
];
$permissions['administer ' . $entity_type_id . ' form display'] = [
- 'title' => $this->t('%entity_label: Administer form display', ['%entity_label' => $entity_type->getLabel()])
+ 'title' => $this->t('%entity_label: Administer form display', ['%entity_label' => $entity_type->getLabel()]),
];
$permissions['administer ' . $entity_type_id . ' display'] = [
- 'title' => $this->t('%entity_label: Administer display', ['%entity_label' => $entity_type->getLabel()])
+ 'title' => $this->t('%entity_label: Administer display', ['%entity_label' => $entity_type->getLabel()]),
];
}
}
diff --git a/core/modules/field_ui/src/Form/EntityDisplayFormBase.php b/core/modules/field_ui/src/Form/EntityDisplayFormBase.php
index 58f8e63..ebdbaed 100644
--- a/core/modules/field_ui/src/Form/EntityDisplayFormBase.php
+++ b/core/modules/field_ui/src/Form/EntityDisplayFormBase.php
@@ -94,11 +94,11 @@ abstract class EntityDisplayFormBase extends EntityForm {
'content' => [
'title' => $this->t('Content'),
'invisible' => TRUE,
- 'message' => $this->t('No field is displayed.')
+ 'message' => $this->t('No field is displayed.'),
],
'hidden' => [
'title' => $this->t('Disabled', [], ['context' => 'Plural']),
- 'message' => $this->t('No field is hidden.')
+ 'message' => $this->t('No field is hidden.'),
],
];
}
@@ -242,7 +242,7 @@ abstract class EntityDisplayFormBase extends EntityForm {
// spinners will be added manually by the client-side script.
'progress' => 'none',
],
- '#attributes' => ['class' => ['visually-hidden']]
+ '#attributes' => ['class' => ['visually-hidden']],
];
$form['actions'] = ['#type' => 'actions'];
diff --git a/core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php b/core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php
index bd82d68..36499af 100644
--- a/core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php
+++ b/core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php
@@ -73,8 +73,8 @@ class EntityViewDisplayEditForm extends EntityDisplayFormBase {
// Insert an empty placeholder for the label column.
$label = [
'empty_cell' => [
- '#markup' => '&nbsp;'
- ]
+ '#markup' => '&nbsp;',
+ ],
];
$label_position = array_search('plugin', array_keys($extra_field_row));
$extra_field_row = array_slice($extra_field_row, 0, $label_position, TRUE) + $label + array_slice($extra_field_row, $label_position, count($extra_field_row) - 1, TRUE);
diff --git a/core/modules/field_ui/src/Form/FieldConfigEditForm.php b/core/modules/field_ui/src/Form/FieldConfigEditForm.php
index bf19a4a..af6de89 100644
--- a/core/modules/field_ui/src/Form/FieldConfigEditForm.php
+++ b/core/modules/field_ui/src/Form/FieldConfigEditForm.php
@@ -77,7 +77,7 @@ class FieldConfigEditForm extends EntityForm {
$ids = (object) [
'entity_type' => $this->entity->getTargetEntityTypeId(),
'bundle' => $this->entity->getTargetBundle(),
- 'entity_id' => NULL
+ 'entity_id' => NULL,
];
$form['#entity'] = _field_create_entity_from_ids($ids);
$items = $form['#entity']->get($this->entity->getName());
diff --git a/core/modules/field_ui/src/Form/FieldStorageConfigEditForm.php b/core/modules/field_ui/src/Form/FieldStorageConfigEditForm.php
index bce79d6..6ec88c9 100644
--- a/core/modules/field_ui/src/Form/FieldStorageConfigEditForm.php
+++ b/core/modules/field_ui/src/Form/FieldStorageConfigEditForm.php
@@ -84,7 +84,7 @@ class FieldStorageConfigEditForm extends EntityForm {
$ids = (object) [
'entity_type' => $form_state->get('entity_type_id'),
'bundle' => $form_state->get('bundle'),
- 'entity_id' => NULL
+ 'entity_id' => NULL,
];
$entity = _field_create_entity_from_ids($ids);
$items = $entity->get($this->entity->getName());
diff --git a/core/modules/field_ui/src/Tests/ManageDisplayTest.php b/core/modules/field_ui/src/Tests/ManageDisplayTest.php
index 985c608..77e8193 100644
--- a/core/modules/field_ui/src/Tests/ManageDisplayTest.php
+++ b/core/modules/field_ui/src/Tests/ManageDisplayTest.php
@@ -118,7 +118,7 @@ class ManageDisplayTest extends WebTestBase {
$edit = [
'fields[field_test][type]' => 'field_test_multiple',
'fields[field_test][region]' => 'content',
- 'refresh_rows' => 'field_test'
+ 'refresh_rows' => 'field_test',
];
$this->drupalPostAjaxForm(NULL, $edit, ['op' => t('Refresh')]);
$format = 'field_test_multiple';
diff --git a/core/modules/field_ui/src/Tests/ManageFieldsTest.php b/core/modules/field_ui/src/Tests/ManageFieldsTest.php
index 8c757be..bc7a2c5 100644
--- a/core/modules/field_ui/src/Tests/ManageFieldsTest.php
+++ b/core/modules/field_ui/src/Tests/ManageFieldsTest.php
@@ -409,7 +409,7 @@ class ManageFieldsTest extends WebTestBase {
FieldStorageConfig::create([
'field_name' => $field_name,
'entity_type' => 'node',
- 'type' => 'test_field'
+ 'type' => 'test_field',
])->save();
$field = FieldConfig::create([
'field_name' => $field_name,
@@ -548,7 +548,7 @@ class ManageFieldsTest extends WebTestBase {
'entity_type' => 'node',
'type' => 'test_field',
'cardinality' => 1,
- 'locked' => TRUE
+ 'locked' => TRUE,
]);
$field_storage->save();
FieldConfig::create([
diff --git a/core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php b/core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php
index 4385c2b..5ee2d40 100644
--- a/core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php
+++ b/core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php
@@ -86,7 +86,7 @@ class EntityDisplayTest extends KernelTestBase {
'link_to_entity' => FALSE,
],
'third_party_settings' => [],
- 'region' => 'content'
+ 'region' => 'content',
];
$this->assertEqual($display->getComponents(), $expected);
@@ -221,7 +221,7 @@ class EntityDisplayTest extends KernelTestBase {
$field_storage = FieldStorageConfig::create([
'field_name' => $field_name,
'entity_type' => 'entity_test',
- 'type' => 'test_field'
+ 'type' => 'test_field',
]);
$field_storage->save();
$field = FieldConfig::create([
@@ -367,7 +367,7 @@ class EntityDisplayTest extends KernelTestBase {
$field_storage = FieldStorageConfig::create([
'field_name' => $field_name,
'entity_type' => 'entity_test',
- 'type' => 'test_field'
+ 'type' => 'test_field',
]);
$field_storage->save();
$field = FieldConfig::create([
@@ -416,7 +416,7 @@ class EntityDisplayTest extends KernelTestBase {
$field_storage = FieldStorageConfig::create([
'field_name' => $field_name,
'entity_type' => 'entity_test',
- 'type' => 'text'
+ 'type' => 'text',
]);
$field_storage->save();
$field = FieldConfig::create([
diff --git a/core/modules/field_ui/tests/src/Kernel/EntityFormDisplayTest.php b/core/modules/field_ui/tests/src/Kernel/EntityFormDisplayTest.php
index 09d2a20..c1d22b7 100644
--- a/core/modules/field_ui/tests/src/Kernel/EntityFormDisplayTest.php
+++ b/core/modules/field_ui/tests/src/Kernel/EntityFormDisplayTest.php
@@ -55,7 +55,7 @@ class EntityFormDisplayTest extends KernelTestBase {
$field_storage = FieldStorageConfig::create([
'field_name' => $field_name,
'entity_type' => 'entity_test',
- 'type' => 'test_field'
+ 'type' => 'test_field',
]);
$field_storage->save();
$field = FieldConfig::create([
@@ -185,7 +185,7 @@ class EntityFormDisplayTest extends KernelTestBase {
$field_storage = FieldStorageConfig::create([
'field_name' => $field_name,
'entity_type' => 'entity_test',
- 'type' => 'test_field'
+ 'type' => 'test_field',
]);
$field_storage->save();
$field = FieldConfig::create([
@@ -234,7 +234,7 @@ class EntityFormDisplayTest extends KernelTestBase {
$field_storage = FieldStorageConfig::create([
'field_name' => $field_name,
'entity_type' => 'entity_test',
- 'type' => 'text'
+ 'type' => 'text',
]);
$field_storage->save();
$field = FieldConfig::create([
diff --git a/core/modules/file/src/Tests/FileFieldWidgetTest.php b/core/modules/file/src/Tests/FileFieldWidgetTest.php
index 0f40c4c..3102bd7 100644
--- a/core/modules/file/src/Tests/FileFieldWidgetTest.php
+++ b/core/modules/file/src/Tests/FileFieldWidgetTest.php
@@ -269,7 +269,7 @@ class FileFieldWidgetTest extends FileFieldTestBase {
// Try to upload exactly the allowed number of files on revision. Create an
// empty node first, to fill it in its first revision.
$node = $this->drupalCreateNode([
- 'type' => $type_name
+ 'type' => $type_name,
]);
$this->uploadNodeFile($test_file, $field_name, $node->id(), 1);
$node_storage->resetCache([$nid]);
diff --git a/core/modules/file/src/Tests/SaveUploadFormTest.php b/core/modules/file/src/Tests/SaveUploadFormTest.php
index 07ebd1d..9966d77 100644
--- a/core/modules/file/src/Tests/SaveUploadFormTest.php
+++ b/core/modules/file/src/Tests/SaveUploadFormTest.php
@@ -298,7 +298,7 @@ class SaveUploadFormTest extends FileManagedTestBase {
$file_system = \Drupal::service('file_system');
$edit = [
'file_test_replace' => FILE_EXISTS_RENAME,
- 'files[file_test_upload][]' => $file_system->realpath($this->image->getFileUri())
+ 'files[file_test_upload][]' => $file_system->realpath($this->image->getFileUri()),
];
$this->drupalPostForm('file-test/save_upload_from_form_test', $edit, t('Submit'));
$this->assertResponse(200, 'Received a 200 response for posted test file.');
@@ -316,7 +316,7 @@ class SaveUploadFormTest extends FileManagedTestBase {
$file_system = \Drupal::service('file_system');
$edit = [
'file_test_replace' => FILE_EXISTS_REPLACE,
- 'files[file_test_upload][]' => $file_system->realpath($this->image->getFileUri())
+ 'files[file_test_upload][]' => $file_system->realpath($this->image->getFileUri()),
];
$this->drupalPostForm('file-test/save_upload_from_form_test', $edit, t('Submit'));
$this->assertResponse(200, 'Received a 200 response for posted test file.');
@@ -334,7 +334,7 @@ class SaveUploadFormTest extends FileManagedTestBase {
$file_system = \Drupal::service('file_system');
$edit = [
'file_test_replace' => FILE_EXISTS_ERROR,
- 'files[file_test_upload][]' => $file_system->realpath($this->image->getFileUri())
+ 'files[file_test_upload][]' => $file_system->realpath($this->image->getFileUri()),
];
$this->drupalPostForm('file-test/save_upload_from_form_test', $edit, t('Submit'));
$this->assertResponse(200, 'Received a 200 response for posted test file.');
@@ -365,7 +365,7 @@ class SaveUploadFormTest extends FileManagedTestBase {
$file_system = \Drupal::service('file_system');
$edit = [
'file_subdir' => $test_directory,
- 'files[file_test_upload][]' => $file_system->realpath($this->image->getFileUri())
+ 'files[file_test_upload][]' => $file_system->realpath($this->image->getFileUri()),
];
\Drupal::state()->set('file_test.disable_error_collection', TRUE);
@@ -379,7 +379,7 @@ class SaveUploadFormTest extends FileManagedTestBase {
$this->assertResponse(200);
$this->assertRaw(t('Upload error. Could not move uploaded file @file to destination @destination.', [
'@file' => $this->image->getFilename(),
- '@destination' => 'temporary://' . $test_directory . '/' . $this->image->getFilename()
+ '@destination' => 'temporary://' . $test_directory . '/' . $this->image->getFilename(),
]), 'Found upload error log entry.');
}
@@ -409,7 +409,7 @@ class SaveUploadFormTest extends FileManagedTestBase {
$edit = [
'files[file_test_upload][]' => $file_system->realpath($this->image->getFileUri()),
'error_message' => $error,
- 'extensions' => 'foo'
+ 'extensions' => 'foo',
];
$this->drupalPostForm('file-test/save_upload_from_form_test', $edit, t('Submit'));
$this->assertResponse(200, 'Received a 200 response for posted test file.');
@@ -473,7 +473,7 @@ class SaveUploadFormTest extends FileManagedTestBase {
$file_system = \Drupal::service('file_system');
$edit = [
'files[file_test_upload][]' => $file_system->realpath($this->image->getFileUri()),
- 'extensions' => 'foo'
+ 'extensions' => 'foo',
];
$this->drupalPostForm('file-test/save_upload_from_form_test', $edit, t('Submit'));
$this->assertResponse(200, 'Received a 200 response for posted test file.');
diff --git a/core/modules/file/src/Tests/SaveUploadTest.php b/core/modules/file/src/Tests/SaveUploadTest.php
index a6e6f9a..b3a5a60 100644
--- a/core/modules/file/src/Tests/SaveUploadTest.php
+++ b/core/modules/file/src/Tests/SaveUploadTest.php
@@ -280,7 +280,7 @@ class SaveUploadTest extends FileManagedTestBase {
public function testExistingRename() {
$edit = [
'file_test_replace' => FILE_EXISTS_RENAME,
- 'files[file_test_upload]' => \Drupal::service('file_system')->realpath($this->image->getFileUri())
+ 'files[file_test_upload]' => \Drupal::service('file_system')->realpath($this->image->getFileUri()),
];
$this->drupalPostForm('file-test/upload', $edit, t('Submit'));
$this->assertResponse(200, 'Received a 200 response for posted test file.');
@@ -296,7 +296,7 @@ class SaveUploadTest extends FileManagedTestBase {
public function testExistingReplace() {
$edit = [
'file_test_replace' => FILE_EXISTS_REPLACE,
- 'files[file_test_upload]' => \Drupal::service('file_system')->realpath($this->image->getFileUri())
+ 'files[file_test_upload]' => \Drupal::service('file_system')->realpath($this->image->getFileUri()),
];
$this->drupalPostForm('file-test/upload', $edit, t('Submit'));
$this->assertResponse(200, 'Received a 200 response for posted test file.');
@@ -312,7 +312,7 @@ class SaveUploadTest extends FileManagedTestBase {
public function testExistingError() {
$edit = [
'file_test_replace' => FILE_EXISTS_ERROR,
- 'files[file_test_upload]' => \Drupal::service('file_system')->realpath($this->image->getFileUri())
+ 'files[file_test_upload]' => \Drupal::service('file_system')->realpath($this->image->getFileUri()),
];
$this->drupalPostForm('file-test/upload', $edit, t('Submit'));
$this->assertResponse(200, 'Received a 200 response for posted test file.');
@@ -341,7 +341,7 @@ class SaveUploadTest extends FileManagedTestBase {
$edit = [
'file_subdir' => $test_directory,
- 'files[file_test_upload]' => \Drupal::service('file_system')->realpath($this->image->getFileUri())
+ 'files[file_test_upload]' => \Drupal::service('file_system')->realpath($this->image->getFileUri()),
];
\Drupal::state()->set('file_test.disable_error_collection', TRUE);
@@ -355,7 +355,7 @@ class SaveUploadTest extends FileManagedTestBase {
$this->assertResponse(200);
$this->assertRaw(t('Upload error. Could not move uploaded file @file to destination @destination.', [
'@file' => $this->image->getFilename(),
- '@destination' => 'temporary://' . $test_directory . '/' . $this->image->getFilename()
+ '@destination' => 'temporary://' . $test_directory . '/' . $this->image->getFilename(),
]), 'Found upload error log entry.');
}
diff --git a/core/modules/file/tests/fixtures/update/drupal-8.file_formatters_update_2677990.php b/core/modules/file/tests/fixtures/update/drupal-8.file_formatters_update_2677990.php
index 6423142..d27fa1a 100644
--- a/core/modules/file/tests/fixtures/update/drupal-8.file_formatters_update_2677990.php
+++ b/core/modules/file/tests/fixtures/update/drupal-8.file_formatters_update_2677990.php
@@ -49,7 +49,7 @@ $connection->update('key_value')
->condition('collection', 'entity.definitions.installed')
->condition('name', 'node.field_storage_definitions')
->fields([
- 'value' => serialize($installed)
+ 'value' => serialize($installed),
])
->execute();
diff --git a/core/modules/file/tests/src/Kernel/AccessTest.php b/core/modules/file/tests/src/Kernel/AccessTest.php
index cfd8e56..ae92b61 100644
--- a/core/modules/file/tests/src/Kernel/AccessTest.php
+++ b/core/modules/file/tests/src/Kernel/AccessTest.php
@@ -93,7 +93,7 @@ class AccessTest extends KernelTestBase {
\Drupal::currentUser()->setAccount($this->user1);
/** @var \Drupal\file\FileInterface $file */
$file = File::create([
- 'uri' => 'public://test.png'
+ 'uri' => 'public://test.png',
]);
// While creating a file entity access will be allowed for create-only
// fields.
diff --git a/core/modules/file/tests/src/Kernel/FileItemValidationTest.php b/core/modules/file/tests/src/Kernel/FileItemValidationTest.php
index a0e96c2..ba763b6 100644
--- a/core/modules/file/tests/src/Kernel/FileItemValidationTest.php
+++ b/core/modules/file/tests/src/Kernel/FileItemValidationTest.php
@@ -78,9 +78,9 @@ class FileItemValidationTest extends KernelTestBase {
'default' => [
'files' => [
'test.txt' => str_repeat('a', 3000),
- ]
- ]
- ]
+ ],
+ ],
+ ],
]);
// Test for max filesize.
@@ -95,7 +95,7 @@ class FileItemValidationTest extends KernelTestBase {
'uid' => $this->user->id(),
'field_test_file' => [
'target_id' => $file->id(),
- ]
+ ],
]);
$result = $entity_test->validate();
$this->assertCount(2, $result);
diff --git a/core/modules/file/tests/src/Kernel/UsageTest.php b/core/modules/file/tests/src/Kernel/UsageTest.php
index 854360e..014949a 100644
--- a/core/modules/file/tests/src/Kernel/UsageTest.php
+++ b/core/modules/file/tests/src/Kernel/UsageTest.php
@@ -27,7 +27,7 @@ class UsageTest extends FileManagedUnitTestBase {
'module' => 'testing',
'type' => 'foo',
'id' => 1,
- 'count' => 1
+ 'count' => 1,
])
->execute();
db_insert('file_usage')
@@ -36,7 +36,7 @@ class UsageTest extends FileManagedUnitTestBase {
'module' => 'testing',
'type' => 'bar',
'id' => 2,
- 'count' => 2
+ 'count' => 2,
])
->execute();
diff --git a/core/modules/file/tests/src/Kernel/Views/FileViewsFieldAccessTest.php b/core/modules/file/tests/src/Kernel/Views/FileViewsFieldAccessTest.php
index 18a6f51..539cb5d 100644
--- a/core/modules/file/tests/src/Kernel/Views/FileViewsFieldAccessTest.php
+++ b/core/modules/file/tests/src/Kernel/Views/FileViewsFieldAccessTest.php
@@ -48,7 +48,7 @@ class FileViewsFieldAccessTest extends FieldFieldAccessTestBase {
'uri' => 'public://test.txt',
'status' => TRUE,
'langcode' => 'fr',
- 'uid' => $user->id()
+ 'uid' => $user->id(),
]);
$file->save();
diff --git a/core/modules/file/tests/src/Unit/Plugin/migrate/cckfield/d6/FileCckTest.php b/core/modules/file/tests/src/Unit/Plugin/migrate/cckfield/d6/FileCckTest.php
index 6a393df..0581c27 100644
--- a/core/modules/file/tests/src/Unit/Plugin/migrate/cckfield/d6/FileCckTest.php
+++ b/core/modules/file/tests/src/Unit/Plugin/migrate/cckfield/d6/FileCckTest.php
@@ -64,7 +64,7 @@ class FileCckTest extends UnitTestCase {
return [
['image', 'imagefield_widget'],
['file', 'filefield_widget'],
- ['file', 'x_widget']
+ ['file', 'x_widget'],
];
}
diff --git a/core/modules/file/tests/src/Unit/Plugin/migrate/cckfield/d7/FileCckTest.php b/core/modules/file/tests/src/Unit/Plugin/migrate/cckfield/d7/FileCckTest.php
index 414d9c2..01db93e 100644
--- a/core/modules/file/tests/src/Unit/Plugin/migrate/cckfield/d7/FileCckTest.php
+++ b/core/modules/file/tests/src/Unit/Plugin/migrate/cckfield/d7/FileCckTest.php
@@ -69,7 +69,7 @@ class FileCckTest extends UnitTestCase {
return [
['image', 'imagefield_widget'],
['file', 'filefield_widget'],
- ['file', 'x_widget']
+ ['file', 'x_widget'],
];
}
diff --git a/core/modules/file/tests/src/Unit/Plugin/migrate/field/d6/FileFieldTest.php b/core/modules/file/tests/src/Unit/Plugin/migrate/field/d6/FileFieldTest.php
index 70f6d60..63407c8 100644
--- a/core/modules/file/tests/src/Unit/Plugin/migrate/field/d6/FileFieldTest.php
+++ b/core/modules/file/tests/src/Unit/Plugin/migrate/field/d6/FileFieldTest.php
@@ -63,7 +63,7 @@ class FileFieldTest extends UnitTestCase {
return [
['image', 'imagefield_widget'],
['file', 'filefield_widget'],
- ['file', 'x_widget']
+ ['file', 'x_widget'],
];
}
diff --git a/core/modules/file/tests/src/Unit/Plugin/migrate/field/d7/FileFieldTest.php b/core/modules/file/tests/src/Unit/Plugin/migrate/field/d7/FileFieldTest.php
index 36ca6a4..a019647 100644
--- a/core/modules/file/tests/src/Unit/Plugin/migrate/field/d7/FileFieldTest.php
+++ b/core/modules/file/tests/src/Unit/Plugin/migrate/field/d7/FileFieldTest.php
@@ -68,7 +68,7 @@ class FileFieldTest extends UnitTestCase {
return [
['image', 'imagefield_widget'],
['file', 'filefield_widget'],
- ['file', 'x_widget']
+ ['file', 'x_widget'],
];
}
diff --git a/core/modules/filter/filter.module b/core/modules/filter/filter.module
index 2222efc..e1d3657 100644
--- a/core/modules/filter/filter.module
+++ b/core/modules/filter/filter.module
@@ -74,7 +74,7 @@ function filter_theme() {
'caption' => NULL,
'classes' => NULL,
],
- ]
+ ],
];
}
diff --git a/core/modules/filter/src/FilterPermissions.php b/core/modules/filter/src/FilterPermissions.php
index fc22f3c..bdad0e9 100644
--- a/core/modules/filter/src/FilterPermissions.php
+++ b/core/modules/filter/src/FilterPermissions.php
@@ -57,7 +57,7 @@ class FilterPermissions implements ContainerInjectionInterface {
'description' => [
'#prefix' => '<em>',
'#markup' => $this->t('Warning: This permission may have security implications depending on how the text format is configured.'),
- '#suffix' => '</em>'
+ '#suffix' => '</em>',
],
];
}
diff --git a/core/modules/filter/src/FilterProcessResult.php b/core/modules/filter/src/FilterProcessResult.php
index 2a8a71b..5c25611 100644
--- a/core/modules/filter/src/FilterProcessResult.php
+++ b/core/modules/filter/src/FilterProcessResult.php
@@ -143,7 +143,7 @@ class FilterProcessResult extends BubbleableMetadata {
'placeholders' => [
$placeholder_markup => [
'#lazy_builder' => [$callback, $args],
- ]
+ ],
],
]);
diff --git a/core/modules/filter/src/Plugin/Filter/FilterHtml.php b/core/modules/filter/src/Plugin/Filter/FilterHtml.php
index f1a62c9..86b8bbd 100644
--- a/core/modules/filter/src/Plugin/Filter/FilterHtml.php
+++ b/core/modules/filter/src/Plugin/Filter/FilterHtml.php
@@ -391,7 +391,7 @@ class FilterHtml extends FilterBase {
'h3' => [$this->t('Heading'), '<h3>' . $this->t('Subtitle three') . '</h3>'],
'h4' => [$this->t('Heading'), '<h4>' . $this->t('Subtitle four') . '</h4>'],
'h5' => [$this->t('Heading'), '<h5>' . $this->t('Subtitle five') . '</h5>'],
- 'h6' => [$this->t('Heading'), '<h6>' . $this->t('Subtitle six') . '</h6>']
+ 'h6' => [$this->t('Heading'), '<h6>' . $this->t('Subtitle six') . '</h6>'],
];
$header = [$this->t('Tag Description'), $this->t('You Type'), $this->t('You Get')];
preg_match_all('/<([a-z0-9]+)[^a-z0-9]/i', $allowed_html, $out);
diff --git a/core/modules/filter/tests/src/Kernel/FilterAPITest.php b/core/modules/filter/tests/src/Kernel/FilterAPITest.php
index d5ab649..ad26dc4 100644
--- a/core/modules/filter/tests/src/Kernel/FilterAPITest.php
+++ b/core/modules/filter/tests/src/Kernel/FilterAPITest.php
@@ -48,7 +48,7 @@ class FilterAPITest extends EntityKernelTestBase {
'allowed_html' => '<p>',
],
],
- ]
+ ],
]);
$crazy_format->save();
@@ -183,10 +183,10 @@ class FilterAPITest extends EntityKernelTestBase {
'a' => ['href' => TRUE],
'em' => TRUE,
],
- ]
+ ],
],
],
- ]
+ ],
]);
$very_restricted_html_format->save();
$this->assertIdentical(
@@ -220,7 +220,7 @@ class FilterAPITest extends EntityKernelTestBase {
'allowed_html' => '<a> <b class> <c class="*"> <d class="foo bar-* *">',
],
],
- ]
+ ],
]);
$nonsensical_restricted_html->save();
$this->assertIdentical(
@@ -416,7 +416,7 @@ class FilterAPITest extends EntityKernelTestBase {
'allowed_html' => '<p>',
],
],
- ]
+ ],
]);
$crazy_format->save();
// Use config to directly load the configuration and check that only enabled
diff --git a/core/modules/filter/tests/src/Kernel/FilterKernelTest.php b/core/modules/filter/tests/src/Kernel/FilterKernelTest.php
index 1838cfe..b8626ae 100644
--- a/core/modules/filter/tests/src/Kernel/FilterKernelTest.php
+++ b/core/modules/filter/tests/src/Kernel/FilterKernelTest.php
@@ -195,7 +195,7 @@ class FilterKernelTest extends KernelTestBase {
'allowed_html' => '<img src data-align data-caption>',
'filter_html_help' => 1,
'filter_html_nofollow' => 0,
- ]
+ ],
]);
$test_with_html_filter = function ($input) use ($filter, $html_filter, $renderer) {
return $renderer->executeInRenderContext(new RenderContext(), function () use ($input, $filter, $html_filter) {
@@ -410,7 +410,7 @@ class FilterKernelTest extends KernelTestBase {
'allowed_html' => '<a> <p> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <br>',
'filter_html_help' => 1,
'filter_html_nofollow' => 0,
- ]
+ ],
]);
// HTML filter is not able to secure some tags, these should never be
@@ -465,7 +465,7 @@ class FilterKernelTest extends KernelTestBase {
'allowed_html' => '<a href llama> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <br>',
'filter_html_help' => 1,
'filter_html_nofollow' => 0,
- ]
+ ],
]);
$f = (string) $filter->process('<a kitten="cute" llama="awesome">link</a>', Language::LANGCODE_NOT_SPECIFIED);
$this->assertNormalized($f, '<a llama="awesome">link</a>', 'HTML filter keeps explicitly allowed attributes, and removes attributes that are not explicitly allowed.');
@@ -477,7 +477,7 @@ class FilterKernelTest extends KernelTestBase {
'allowed_html' => '<a href llama="majestical epic"> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <br>',
'filter_html_help' => 1,
'filter_html_nofollow' => 0,
- ]
+ ],
]);
$f = (string) $filter->process('<a kitten="cute" llama="awesome">link</a>', Language::LANGCODE_NOT_SPECIFIED);
$this->assertIdentical($f, '<a>link</a>', 'HTML filter removes allowed attributes that do not have an explicitly allowed value.');
@@ -500,7 +500,7 @@ class FilterKernelTest extends KernelTestBase {
'allowed_html' => '<a href>',
'filter_html_help' => 1,
'filter_html_nofollow' => 1,
- ]
+ ],
]);
// Test if the rel="nofollow" attribute is added, even if we try to prevent
@@ -548,7 +548,7 @@ class FilterKernelTest extends KernelTestBase {
$filter->setConfiguration([
'settings' => [
'filter_url_length' => 496,
- ]
+ ],
]);
// @todo Possible categories:
@@ -841,7 +841,7 @@ www.example.com with a newline in comments -->
$filter->setConfiguration([
'settings' => [
'filter_url_length' => 20,
- ]
+ ],
]);
$tests = [
'www.trimmed.com/d/ff.ext?a=1&b=2#a1' => [
@@ -923,7 +923,7 @@ www.example.com with a newline in comments -->
$filter->setConfiguration([
'settings' => [
'filter_url_length' => 496,
- ]
+ ],
]);
$path = __DIR__ . '/../..';
diff --git a/core/modules/filter/tests/src/Unit/FilterUninstallValidatorTest.php b/core/modules/filter/tests/src/Unit/FilterUninstallValidatorTest.php
index 85de742..65a8357 100644
--- a/core/modules/filter/tests/src/Unit/FilterUninstallValidatorTest.php
+++ b/core/modules/filter/tests/src/Unit/FilterUninstallValidatorTest.php
@@ -157,7 +157,7 @@ class FilterUninstallValidatorTest extends UnitTestCase {
]);
$expected = [
- 'Provides a filter plugin that is in use in the following filter formats: <em class="placeholder">Filter Format 1 Label, Filter Format 2 Label</em>'
+ 'Provides a filter plugin that is in use in the following filter formats: <em class="placeholder">Filter Format 1 Label, Filter Format 2 Label</em>',
];
$reasons = $this->filterUninstallValidator->validate($this->randomMachineName());
$this->assertSame($expected, $this->castSafeStrings($reasons));
diff --git a/core/modules/forum/forum.views.inc b/core/modules/forum/forum.views.inc
index 1565962..1058153 100644
--- a/core/modules/forum/forum.views.inc
+++ b/core/modules/forum/forum.views.inc
@@ -93,7 +93,7 @@ function forum_views_data() {
'id' => 'date',
],
'sort' => [
- 'id' => 'date'
+ 'id' => 'date',
],
'filter' => [
'id' => 'date',
diff --git a/core/modules/forum/src/Form/Overview.php b/core/modules/forum/src/Form/Overview.php
index efc9266..27335d6 100644
--- a/core/modules/forum/src/Form/Overview.php
+++ b/core/modules/forum/src/Form/Overview.php
@@ -94,7 +94,7 @@ class Overview extends OverviewTerms {
// Use the existing taxonomy overview submit handler.
$form['terms']['#empty'] = $this->t('No containers or forums available. <a href=":container">Add container</a> or <a href=":forum">Add forum</a>.', [
':container' => $this->url('forum.add_container'),
- ':forum' => $this->url('forum.add_forum')
+ ':forum' => $this->url('forum.add_forum'),
]);
return $form;
}
diff --git a/core/modules/forum/src/ForumManager.php b/core/modules/forum/src/ForumManager.php
index 05cd860..1ecd3b6 100644
--- a/core/modules/forum/src/ForumManager.php
+++ b/core/modules/forum/src/ForumManager.php
@@ -184,7 +184,7 @@ class ForumManager implements ForumManagerInterface {
'cid',
'last_comment_uid',
'last_comment_timestamp',
- 'comment_count'
+ 'comment_count',
]);
$query->join('forum_index', 'f', 'f.nid = n.nid');
@@ -435,7 +435,7 @@ class ForumManager implements ForumManagerInterface {
'container' => 1,
'parents' => [],
'isIndex' => TRUE,
- 'vid' => $vid
+ 'vid' => $vid,
]);
// Load the tree below.
diff --git a/core/modules/forum/src/ForumSettingsForm.php b/core/modules/forum/src/ForumSettingsForm.php
index f017f21..87a13be 100644
--- a/core/modules/forum/src/ForumSettingsForm.php
+++ b/core/modules/forum/src/ForumSettingsForm.php
@@ -52,7 +52,7 @@ class ForumSettingsForm extends ConfigFormBase {
1 => $this->t('Date - newest first'),
2 => $this->t('Date - oldest first'),
3 => $this->t('Posts - most active first'),
- 4 => $this->t('Posts - least active first')
+ 4 => $this->t('Posts - least active first'),
];
$form['forum_order'] = [
'#type' => 'radios',
diff --git a/core/modules/forum/src/ForumUninstallValidator.php b/core/modules/forum/src/ForumUninstallValidator.php
index 8ee0310..24ae880 100644
--- a/core/modules/forum/src/ForumUninstallValidator.php
+++ b/core/modules/forum/src/ForumUninstallValidator.php
@@ -67,7 +67,7 @@ class ForumUninstallValidator implements ModuleUninstallValidatorInterface {
}
else {
$reasons[] = $this->t('To uninstall Forum, first delete all %vocabulary terms', [
- '%vocabulary' => $vocabulary->label()
+ '%vocabulary' => $vocabulary->label(),
]);
}
}
diff --git a/core/modules/forum/tests/src/Functional/Views/ForumIntegrationTest.php b/core/modules/forum/tests/src/Functional/Views/ForumIntegrationTest.php
index 4114db5..992500e 100644
--- a/core/modules/forum/tests/src/Functional/Views/ForumIntegrationTest.php
+++ b/core/modules/forum/tests/src/Functional/Views/ForumIntegrationTest.php
@@ -71,17 +71,17 @@ class ForumIntegrationTest extends ViewTestBase {
$expected_result[] = [
'nid' => $nodes[0]->id(),
'sticky' => NodeInterface::STICKY,
- 'comment_count' => 1.
+ 'comment_count' => 1.,
];
$expected_result[] = [
'nid' => $nodes[1]->id(),
'sticky' => NodeInterface::NOT_STICKY,
- 'comment_count' => 2.
+ 'comment_count' => 2.,
];
$expected_result[] = [
'nid' => $nodes[2]->id(),
'sticky' => NodeInterface::NOT_STICKY,
- 'comment_count' => 3.
+ 'comment_count' => 3.,
];
$column_map = [
'nid' => 'nid',
diff --git a/core/modules/hal/tests/fixtures/update/drupal-8.rest-hal_update_8301.php b/core/modules/hal/tests/fixtures/update/drupal-8.rest-hal_update_8301.php
index 842e52a..cccd707 100644
--- a/core/modules/hal/tests/fixtures/update/drupal-8.rest-hal_update_8301.php
+++ b/core/modules/hal/tests/fixtures/update/drupal-8.rest-hal_update_8301.php
Binary files differ
diff --git a/core/modules/hal/tests/src/Functional/EntityResource/Comment/CommentHalJsonTestBase.php b/core/modules/hal/tests/src/Functional/EntityResource/Comment/CommentHalJsonTestBase.php
index 1939e04..53c2dd7 100644
--- a/core/modules/hal/tests/src/Functional/EntityResource/Comment/CommentHalJsonTestBase.php
+++ b/core/modules/hal/tests/src/Functional/EntityResource/Comment/CommentHalJsonTestBase.php
@@ -90,7 +90,7 @@ abstract class CommentHalJsonTestBase extends CommentResourceTestBase {
],
],
'uuid' => [
- ['value' => $commented_entity->uuid()]
+ ['value' => $commented_entity->uuid()],
],
],
],
@@ -105,7 +105,7 @@ abstract class CommentHalJsonTestBase extends CommentResourceTestBase {
],
],
'uuid' => [
- ['value' => $author->uuid()]
+ ['value' => $author->uuid()],
],
'lang' => 'en',
],
diff --git a/core/modules/hal/tests/src/Functional/EntityResource/EntityTest/EntityTestHalJsonAnonTest.php b/core/modules/hal/tests/src/Functional/EntityResource/EntityTest/EntityTestHalJsonAnonTest.php
index eff0b97..7d9c282 100644
--- a/core/modules/hal/tests/src/Functional/EntityResource/EntityTest/EntityTestHalJsonAnonTest.php
+++ b/core/modules/hal/tests/src/Functional/EntityResource/EntityTest/EntityTestHalJsonAnonTest.php
@@ -68,7 +68,7 @@ class EntityTestHalJsonAnonTest extends EntityTestResourceTestBase {
],
],
'uuid' => [
- ['value' => $author->uuid()]
+ ['value' => $author->uuid()],
],
'lang' => 'en',
],
diff --git a/core/modules/hal/tests/src/Functional/EntityResource/Feed/FeedHalJsonTestBase.php b/core/modules/hal/tests/src/Functional/EntityResource/Feed/FeedHalJsonTestBase.php
index 4318132..76f1d6f 100644
--- a/core/modules/hal/tests/src/Functional/EntityResource/Feed/FeedHalJsonTestBase.php
+++ b/core/modules/hal/tests/src/Functional/EntityResource/Feed/FeedHalJsonTestBase.php
@@ -35,10 +35,10 @@ abstract class FeedHalJsonTestBase extends FeedResourceTestBase {
return $normalization + [
'_links' => [
'self' => [
- 'href' => $this->baseUrl . '/aggregator/sources/1?_format=hal_json'
+ 'href' => $this->baseUrl . '/aggregator/sources/1?_format=hal_json',
],
'type' => [
- 'href' => $this->baseUrl . '/rest/type/aggregator_feed/aggregator_feed'
+ 'href' => $this->baseUrl . '/rest/type/aggregator_feed/aggregator_feed',
],
],
];
@@ -51,7 +51,7 @@ abstract class FeedHalJsonTestBase extends FeedResourceTestBase {
return parent::getNormalizedPostEntity() + [
'_links' => [
'type' => [
- 'href' => $this->baseUrl . '/rest/type/aggregator_feed/aggregator_feed'
+ 'href' => $this->baseUrl . '/rest/type/aggregator_feed/aggregator_feed',
],
],
];
diff --git a/core/modules/hal/tests/src/Functional/EntityResource/File/FileUploadHalJsonTestBase.php b/core/modules/hal/tests/src/Functional/EntityResource/File/FileUploadHalJsonTestBase.php
index 58df16b..7694ea6 100644
--- a/core/modules/hal/tests/src/Functional/EntityResource/File/FileUploadHalJsonTestBase.php
+++ b/core/modules/hal/tests/src/Functional/EntityResource/File/FileUploadHalJsonTestBase.php
@@ -54,7 +54,7 @@ abstract class FileUploadHalJsonTestBase extends FileUploadResourceTestBase {
'href' => $this->baseUrl . '/rest/type/file/file',
],
$this->baseUrl . '/rest/relation/file/file/uid' => [
- ['href' => $this->baseUrl . '/user/' . $this->account->id() . '?_format=hal_json']
+ ['href' => $this->baseUrl . '/user/' . $this->account->id() . '?_format=hal_json'],
],
],
'_embedded' => [
diff --git a/core/modules/hal/tests/src/Functional/EntityResource/Media/MediaHalJsonAnonTest.php b/core/modules/hal/tests/src/Functional/EntityResource/Media/MediaHalJsonAnonTest.php
index c5ca04a..99445b7 100644
--- a/core/modules/hal/tests/src/Functional/EntityResource/Media/MediaHalJsonAnonTest.php
+++ b/core/modules/hal/tests/src/Functional/EntityResource/Media/MediaHalJsonAnonTest.php
@@ -180,7 +180,7 @@ class MediaHalJsonAnonTest extends MediaResourceTestBase {
'href' => $this->baseUrl . '/rest/type/file/file',
],
$this->baseUrl . '/rest/relation/file/file/uid' => [
- ['href' => $this->baseUrl . '/user/' . $owner->id() . '?_format=hal_json']
+ ['href' => $this->baseUrl . '/user/' . $owner->id() . '?_format=hal_json'],
],
],
'_embedded' => [
diff --git a/core/modules/hal/tests/src/Functional/EntityResource/Node/NodeHalJsonAnonTest.php b/core/modules/hal/tests/src/Functional/EntityResource/Node/NodeHalJsonAnonTest.php
index e218a73..9f73c26 100644
--- a/core/modules/hal/tests/src/Functional/EntityResource/Node/NodeHalJsonAnonTest.php
+++ b/core/modules/hal/tests/src/Functional/EntityResource/Node/NodeHalJsonAnonTest.php
@@ -84,7 +84,7 @@ class NodeHalJsonAnonTest extends NodeResourceTestBase {
],
],
'uuid' => [
- ['value' => $author->uuid()]
+ ['value' => $author->uuid()],
],
],
],
@@ -99,7 +99,7 @@ class NodeHalJsonAnonTest extends NodeResourceTestBase {
],
],
'uuid' => [
- ['value' => $author->uuid()]
+ ['value' => $author->uuid()],
],
'lang' => 'en',
],
diff --git a/core/modules/hal/tests/src/Kernel/EntityTranslationNormalizeTest.php b/core/modules/hal/tests/src/Kernel/EntityTranslationNormalizeTest.php
index 3e27ef6..2ebff20 100644
--- a/core/modules/hal/tests/src/Kernel/EntityTranslationNormalizeTest.php
+++ b/core/modules/hal/tests/src/Kernel/EntityTranslationNormalizeTest.php
@@ -51,7 +51,7 @@ class EntityTranslationNormalizeTest extends NormalizerTestBase {
'sticky' => 0,
'body' => [
'value' => $this->randomMachineName(),
- 'format' => $this->randomMachineName()
+ 'format' => $this->randomMachineName(),
],
'revision_log' => $this->randomString(),
]);
@@ -59,7 +59,7 @@ class EntityTranslationNormalizeTest extends NormalizerTestBase {
'title' => 'German title',
'body' => [
'value' => $this->randomMachineName(),
- 'format' => $this->randomMachineName()
+ 'format' => $this->randomMachineName(),
],
]);
$node->save();
diff --git a/core/modules/hal/tests/src/Kernel/HalLinkManagerTest.php b/core/modules/hal/tests/src/Kernel/HalLinkManagerTest.php
index 50f887d..05a6b39 100644
--- a/core/modules/hal/tests/src/Kernel/HalLinkManagerTest.php
+++ b/core/modules/hal/tests/src/Kernel/HalLinkManagerTest.php
@@ -72,10 +72,10 @@ class HalLinkManagerTest extends KernelTestBase {
public function providerTestGetTypeUri() {
$serialization_context_collecting_cacheability = [
- CacheableNormalizerInterface::SERIALIZATION_CONTEXT_CACHEABILITY => new CacheableMetadata()
+ CacheableNormalizerInterface::SERIALIZATION_CONTEXT_CACHEABILITY => new CacheableMetadata(),
];
$expected_serialization_context_cacheability_url_site = [
- CacheableNormalizerInterface::SERIALIZATION_CONTEXT_CACHEABILITY => (new CacheableMetadata())->setCacheContexts(['url.site'])
+ CacheableNormalizerInterface::SERIALIZATION_CONTEXT_CACHEABILITY => (new CacheableMetadata())->setCacheContexts(['url.site']),
];
$base_test_case = [
@@ -166,10 +166,10 @@ class HalLinkManagerTest extends KernelTestBase {
public function providerTestGetRelationUri() {
$serialization_context_collecting_cacheability = [
- CacheableNormalizerInterface::SERIALIZATION_CONTEXT_CACHEABILITY => new CacheableMetadata()
+ CacheableNormalizerInterface::SERIALIZATION_CONTEXT_CACHEABILITY => new CacheableMetadata(),
];
$expected_serialization_context_cacheability_url_site = [
- CacheableNormalizerInterface::SERIALIZATION_CONTEXT_CACHEABILITY => (new CacheableMetadata())->setCacheContexts(['url.site'])
+ CacheableNormalizerInterface::SERIALIZATION_CONTEXT_CACHEABILITY => (new CacheableMetadata())->setCacheContexts(['url.site']),
];
$field_name = $this->randomMachineName();
@@ -252,7 +252,7 @@ class HalLinkManagerTest extends KernelTestBase {
'entity_type_id' => 'node',
'entity_type' => \Drupal::entityTypeManager()->getDefinition('node'),
'bundle' => 'page',
- 'field_name' => 'field_ref'
+ 'field_name' => 'field_ref',
], $internal_ids);
}
@@ -261,7 +261,7 @@ class HalLinkManagerTest extends KernelTestBase {
*/
public function testHalLinkManagersSetLinkDomain() {
$serialization_context = [
- CacheableNormalizerInterface::SERIALIZATION_CONTEXT_CACHEABILITY => new CacheableMetadata()
+ CacheableNormalizerInterface::SERIALIZATION_CONTEXT_CACHEABILITY => new CacheableMetadata(),
];
/* @var \Drupal\rest\LinkManager\LinkManager $link_manager */
diff --git a/core/modules/hal/tests/src/Kernel/NormalizeTest.php b/core/modules/hal/tests/src/Kernel/NormalizeTest.php
index ffea170..6c93f23 100644
--- a/core/modules/hal/tests/src/Kernel/NormalizeTest.php
+++ b/core/modules/hal/tests/src/Kernel/NormalizeTest.php
@@ -70,7 +70,7 @@ class NormalizeTest extends NormalizerTestBase {
'name' => $this->randomMachineName(),
'field_test_entity_reference' => [
'target_id' => $target_entity_en->id(),
- ]
+ ],
];
$entity = EntityTest::create($values);
diff --git a/core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatter.php b/core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatter.php
index a00d9e2..77714d2 100644
--- a/core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatter.php
+++ b/core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatter.php
@@ -115,7 +115,7 @@ class ImageFormatter extends ImageFormatterBase implements ContainerFactoryPlugi
'#empty_option' => t('None (original image)'),
'#options' => $image_styles,
'#description' => $description_link->toRenderable() + [
- '#access' => $this->currentUser->hasPermission('administer image styles')
+ '#access' => $this->currentUser->hasPermission('administer image styles'),
],
];
$link_types = [
diff --git a/core/modules/image/tests/src/Functional/ImageFieldDefaultImagesTest.php b/core/modules/image/tests/src/Functional/ImageFieldDefaultImagesTest.php
index a06e0d7..66899fb 100644
--- a/core/modules/image/tests/src/Functional/ImageFieldDefaultImagesTest.php
+++ b/core/modules/image/tests/src/Functional/ImageFieldDefaultImagesTest.php
@@ -374,7 +374,7 @@ class ImageFieldDefaultImagesTest extends ImageFieldTestBase {
'settings' => [
'default_image' => [
'uuid' => 100000,
- ]
+ ],
],
]);
$field_storage->save();
@@ -389,7 +389,7 @@ class ImageFieldDefaultImagesTest extends ImageFieldTestBase {
'settings' => [
'default_image' => [
'uuid' => 100000,
- ]
+ ],
],
]);
$field->save();
diff --git a/core/modules/image/tests/src/Functional/ImageFieldValidateTest.php b/core/modules/image/tests/src/Functional/ImageFieldValidateTest.php
index c69a713..aa9441e 100644
--- a/core/modules/image/tests/src/Functional/ImageFieldValidateTest.php
+++ b/core/modules/image/tests/src/Functional/ImageFieldValidateTest.php
@@ -81,27 +81,27 @@ class ImageFieldValidateTest extends ImageFieldTestBase {
];
$min_resolution = [
'width' => 50,
- 'height' => 50
+ 'height' => 50,
];
$max_resolution = [
'width' => 100,
- 'height' => 100
+ 'height' => 100,
];
$no_height_min_resolution = [
'width' => 50,
- 'height' => NULL
+ 'height' => NULL,
];
$no_height_max_resolution = [
'width' => 100,
- 'height' => NULL
+ 'height' => NULL,
];
$no_width_min_resolution = [
'width' => NULL,
- 'height' => 50
+ 'height' => 50,
];
$no_width_max_resolution = [
'width' => NULL,
- 'height' => 100
+ 'height' => 100,
];
$field_settings = [
0 => $this->getFieldSettings($min_resolution, $max_resolution),
diff --git a/core/modules/image/tests/src/Kernel/ImageImportTest.php b/core/modules/image/tests/src/Kernel/ImageImportTest.php
index 14eeaa3..9cf6957 100644
--- a/core/modules/image/tests/src/Kernel/ImageImportTest.php
+++ b/core/modules/image/tests/src/Kernel/ImageImportTest.php
@@ -22,7 +22,7 @@ class ImageImportTest extends KernelTestBase {
*/
public function testImport() {
$style = ImageStyle::create([
- 'name' => 'test'
+ 'name' => 'test',
]);
$style->addImageEffect(['id' => 'image_module_test_null']);
diff --git a/core/modules/image/tests/src/Kernel/ImageThemeFunctionTest.php b/core/modules/image/tests/src/Kernel/ImageThemeFunctionTest.php
index 7abe47e..0e6e3f2 100644
--- a/core/modules/image/tests/src/Kernel/ImageThemeFunctionTest.php
+++ b/core/modules/image/tests/src/Kernel/ImageThemeFunctionTest.php
@@ -127,7 +127,7 @@ class ImageThemeFunctionTest extends KernelTestBase {
':fragment' => '#' . $fragment,
':url' => $url,
':width' => $image->getWidth(),
- ':height' => $image->getHeight()
+ ':height' => $image->getHeight(),
]);
$this->assertEqual(count($elements), 1, 'theme_image_formatter() correctly renders a link fragment.');
}
diff --git a/core/modules/language/src/Form/LanguageFormBase.php b/core/modules/language/src/Form/LanguageFormBase.php
index 8c8f5fa..d30c4b6 100644
--- a/core/modules/language/src/Form/LanguageFormBase.php
+++ b/core/modules/language/src/Form/LanguageFormBase.php
@@ -50,11 +50,11 @@ abstract class LanguageFormBase extends EntityForm {
$form['langcode_view'] = [
'#type' => 'item',
'#title' => $this->t('Language code'),
- '#markup' => $language->id()
+ '#markup' => $language->id(),
];
$form['langcode'] = [
'#type' => 'value',
- '#value' => $language->id()
+ '#value' => $language->id(),
];
}
else {
diff --git a/core/modules/language/src/Form/NegotiationConfigureForm.php b/core/modules/language/src/Form/NegotiationConfigureForm.php
index 21c08c9..0b22bc7 100644
--- a/core/modules/language/src/Form/NegotiationConfigureForm.php
+++ b/core/modules/language/src/Form/NegotiationConfigureForm.php
@@ -235,7 +235,7 @@ class NegotiationConfigureForm extends ConfigFormBase {
'#attributes' => ['class' => ['language-customization-checkbox']],
'#attached' => [
'library' => [
- 'language/drupal.language.admin'
+ 'language/drupal.language.admin',
],
],
];
diff --git a/core/modules/language/tests/src/Functional/LanguageConfigurationElementTest.php b/core/modules/language/tests/src/Functional/LanguageConfigurationElementTest.php
index 87ad05b..0f3dd1f 100644
--- a/core/modules/language/tests/src/Functional/LanguageConfigurationElementTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageConfigurationElementTest.php
@@ -170,7 +170,7 @@ class LanguageConfigurationElementTest extends BrowserTestBase {
$this->assertTrue($configuration->isLanguageAlterable(), 'The alterable language configuration has been saved on the Article content type.');
// Update the article content type by changing the title label.
$edit = [
- 'title_label' => 'Name'
+ 'title_label' => 'Name',
];
$this->drupalPostForm('admin/structure/types/manage/article', $edit, t('Save content type'));
// Check that we still have the settings for the updated node type.
@@ -189,7 +189,7 @@ class LanguageConfigurationElementTest extends BrowserTestBase {
if ($this->profile != 'standard') {
$this->drupalCreateContentType([
'type' => 'article',
- 'name' => 'Article'
+ 'name' => 'Article',
]);
}
$admin_user = $this->drupalCreateUser(['administer content types']);
@@ -240,7 +240,7 @@ class LanguageConfigurationElementTest extends BrowserTestBase {
$this->assertTrue($configuration->isLanguageAlterable(), 'The alterable language configuration has been saved on the Country vocabulary.');
// Update the vocabulary.
$edit = [
- 'name' => 'Nation'
+ 'name' => 'Nation',
];
$this->drupalPostForm('admin/structure/taxonomy/manage/country', $edit, t('Save'));
// Check that we still have the settings for the updated vocabulary.
diff --git a/core/modules/language/tests/src/Functional/LanguageNegotiationContentEntityTest.php b/core/modules/language/tests/src/Functional/LanguageNegotiationContentEntityTest.php
index 27785c0..3ac9406 100644
--- a/core/modules/language/tests/src/Functional/LanguageNegotiationContentEntityTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageNegotiationContentEntityTest.php
@@ -90,7 +90,7 @@ class LanguageNegotiationContentEntityTest extends BrowserTestBase {
$config->set('configurable', [LanguageInterface::TYPE_INTERFACE, LanguageInterface::TYPE_CONTENT]);
$config->set('negotiation.language_content.enabled', [
LanguageNegotiationUrl::METHOD_ID => 0,
- LanguageNegotiationContentEntity::METHOD_ID => 1
+ LanguageNegotiationContentEntity::METHOD_ID => 1,
]);
$config->save();
@@ -105,7 +105,7 @@ class LanguageNegotiationContentEntityTest extends BrowserTestBase {
// language-url.
$config->set('negotiation.language_content.enabled', [
LanguageNegotiationContentEntity::METHOD_ID => 0,
- LanguageNegotiationUrl::METHOD_ID => 1
+ LanguageNegotiationUrl::METHOD_ID => 1,
]);
$config->save();
diff --git a/core/modules/language/tests/src/Functional/LanguageUrlRewritingTest.php b/core/modules/language/tests/src/Functional/LanguageUrlRewritingTest.php
index 7021aa0..07eec52 100644
--- a/core/modules/language/tests/src/Functional/LanguageUrlRewritingTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageUrlRewritingTest.php
@@ -108,7 +108,7 @@ class LanguageUrlRewritingTest extends BrowserTestBase {
$edit = [
'language_negotiation_url_part' => LanguageNegotiationUrl::CONFIG_DOMAIN,
'domain[en]' => $base_url_host,
- 'domain[fr]' => $language_domain
+ 'domain[fr]' => $language_domain,
];
$this->drupalPostForm('admin/config/regional/language/detection/url', $edit, t('Save configuration'));
// Rebuild the container so that the new language gets picked up by services
diff --git a/core/modules/language/tests/src/Kernel/EntityUrlLanguageTest.php b/core/modules/language/tests/src/Kernel/EntityUrlLanguageTest.php
index fb62f48..8154e42 100644
--- a/core/modules/language/tests/src/Kernel/EntityUrlLanguageTest.php
+++ b/core/modules/language/tests/src/Kernel/EntityUrlLanguageTest.php
@@ -74,7 +74,7 @@ class EntityUrlLanguageTest extends LanguageTestBase {
$config->set('configurable', [LanguageInterface::TYPE_INTERFACE, LanguageInterface::TYPE_CONTENT]);
$config->set('negotiation.language_content.enabled', [
LanguageNegotiationContentEntity::METHOD_ID => 0,
- LanguageNegotiationUrl::METHOD_ID => 1
+ LanguageNegotiationUrl::METHOD_ID => 1,
]);
$config->save();
@@ -98,7 +98,7 @@ class EntityUrlLanguageTest extends LanguageTestBase {
// where the language-content-entity is turned off.
$config->set('negotiation.language_content.enabled', [
LanguageNegotiationUrl::METHOD_ID => 0,
- LanguageNegotiationContentEntity::METHOD_ID => 1
+ LanguageNegotiationContentEntity::METHOD_ID => 1,
]);
$config->save();
diff --git a/core/modules/language/tests/src/Kernel/Views/FilterLanguageTest.php b/core/modules/language/tests/src/Kernel/Views/FilterLanguageTest.php
index c94d623..0042072 100644
--- a/core/modules/language/tests/src/Kernel/Views/FilterLanguageTest.php
+++ b/core/modules/language/tests/src/Kernel/Views/FilterLanguageTest.php
@@ -48,7 +48,7 @@ class FilterLanguageTest extends LanguageTestBase {
'en',
'xx-lolspeak',
'und',
- 'zxx'
+ 'zxx',
];
$this->assertIdentical(array_keys($view->filter['langcode']->getValueOptions()), $expected);
diff --git a/core/modules/link/src/Plugin/Field/FieldType/LinkItem.php b/core/modules/link/src/Plugin/Field/FieldType/LinkItem.php
index 5d772a9..8fa765e 100644
--- a/core/modules/link/src/Plugin/Field/FieldType/LinkItem.php
+++ b/core/modules/link/src/Plugin/Field/FieldType/LinkItem.php
@@ -32,7 +32,7 @@ class LinkItem extends FieldItemBase implements LinkItemInterface {
public static function defaultFieldSettings() {
return [
'title' => DRUPAL_OPTIONAL,
- 'link_type' => LinkItemInterface::LINK_GENERIC
+ 'link_type' => LinkItemInterface::LINK_GENERIC,
] + parent::defaultFieldSettings();
}
diff --git a/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php b/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php
index 7570fe9..3a12413 100644
--- a/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php
+++ b/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php
@@ -252,7 +252,7 @@ class LinkWidget extends WidgetBase {
}
$element['title']['#states']['required'] = [
- ':input[name="' . $selector . '[' . $delta . '][uri]"]' => ['filled' => TRUE]
+ ':input[name="' . $selector . '[' . $delta . '][uri]"]' => ['filled' => TRUE],
];
}
}
diff --git a/core/modules/link/src/Tests/Views/LinkViewsTokensTest.php b/core/modules/link/src/Tests/Views/LinkViewsTokensTest.php
index 968c02f..f3ff80a 100644
--- a/core/modules/link/src/Tests/Views/LinkViewsTokensTest.php
+++ b/core/modules/link/src/Tests/Views/LinkViewsTokensTest.php
@@ -45,7 +45,7 @@ class LinkViewsTokensTest extends ViewTestBase {
// Create Basic page node type.
$this->drupalCreateContentType([
'type' => 'page',
- 'name' => 'Basic page'
+ 'name' => 'Basic page',
]);
// Create a field.
diff --git a/core/modules/locale/locale.batch.inc b/core/modules/locale/locale.batch.inc
index c9cfdd5..284b7fc 100644
--- a/core/modules/locale/locale.batch.inc
+++ b/core/modules/locale/locale.batch.inc
@@ -242,7 +242,7 @@ function locale_translation_http_check($uri) {
'allow_redirects' => [
'on_redirect' => function (RequestInterface $request, ResponseInterface $response, UriInterface $request_uri) use (&$actual_uri) {
$actual_uri = (string) $request_uri;
- }
+ },
],
])->head($uri);
$result = [];
diff --git a/core/modules/locale/tests/src/Functional/LocaleConfigTranslationImportTest.php b/core/modules/locale/tests/src/Functional/LocaleConfigTranslationImportTest.php
index 2550031..058d9dd 100644
--- a/core/modules/locale/tests/src/Functional/LocaleConfigTranslationImportTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleConfigTranslationImportTest.php
@@ -131,7 +131,7 @@ class LocaleConfigTranslationImportTest extends BrowserTestBase {
$expected = [
'translatable_no_default' => 'This translation is preserved',
'translatable_default_with_translation' => 'This translation is preserved',
- 'translatable_default_with_no_translation' => 'This translation is preserved'
+ 'translatable_default_with_no_translation' => 'This translation is preserved',
];
$this->assertEqual($expected, $override->get());
}
@@ -204,7 +204,7 @@ class LocaleConfigTranslationImportTest extends BrowserTestBase {
$expected = [
'translatable_default_with_translation' => 'Locale can translate Afrikaans',
'translatable_no_default' => 'This translation is preserved',
- 'translatable_default_with_no_translation' => 'This translation is preserved'
+ 'translatable_default_with_no_translation' => 'This translation is preserved',
];
$this->assertEqual($expected, $override->get());
@@ -226,7 +226,7 @@ class LocaleConfigTranslationImportTest extends BrowserTestBase {
$override = \Drupal::languageManager()->getLanguageConfigOverride('af', 'locale_test_translate.settings');
$expected = [
'translatable_no_default' => 'This translation is preserved',
- 'translatable_default_with_no_translation' => 'This translation is preserved'
+ 'translatable_default_with_no_translation' => 'This translation is preserved',
];
$this->assertEqual($expected, $override->get());
}
diff --git a/core/modules/locale/tests/src/Functional/LocaleFileSystemFormTest.php b/core/modules/locale/tests/src/Functional/LocaleFileSystemFormTest.php
index ee496e2..c38da43 100644
--- a/core/modules/locale/tests/src/Functional/LocaleFileSystemFormTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleFileSystemFormTest.php
@@ -45,7 +45,7 @@ class LocaleFileSystemFormTest extends BrowserTestBase {
// The setting should persist.
$translation_path = $this->publicFilesDirectory . '/translations_changed';
$fields = [
- 'translation_path' => $translation_path
+ 'translation_path' => $translation_path,
];
$this->drupalPostForm(NULL, $fields, t('Save configuration'));
$this->drupalGet('admin/config/media/file-system');
diff --git a/core/modules/locale/tests/src/Functional/LocaleUpdateInterfaceTest.php b/core/modules/locale/tests/src/Functional/LocaleUpdateInterfaceTest.php
index 170605e..0ab5585 100644
--- a/core/modules/locale/tests/src/Functional/LocaleUpdateInterfaceTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleUpdateInterfaceTest.php
@@ -85,7 +85,7 @@ class LocaleUpdateInterfaceTest extends LocaleUpdateBase {
$release_details = new FormattableMarkup('@module (@version). @info', [
'@module' => 'Locale test translate',
'@version' => '1.3-dev',
- '@info' => t('File not found at %local_path', ['%local_path' => 'core/modules/locale/tests/test.de.po'])
+ '@info' => t('File not found at %local_path', ['%local_path' => 'core/modules/locale/tests/test.de.po']),
]);
$this->assertRaw($release_details->__toString(), 'Release details');
diff --git a/core/modules/menu_ui/tests/src/FunctionalJavascript/MenuUiJavascriptTest.php b/core/modules/menu_ui/tests/src/FunctionalJavascript/MenuUiJavascriptTest.php
index b8f4109..6ce4ccc 100644
--- a/core/modules/menu_ui/tests/src/FunctionalJavascript/MenuUiJavascriptTest.php
+++ b/core/modules/menu_ui/tests/src/FunctionalJavascript/MenuUiJavascriptTest.php
@@ -41,7 +41,7 @@ class MenuUiJavascriptTest extends JavascriptTestBase {
$block = $this->drupalPlaceBlock('system_menu_block:' . $menu->id(), [
'label' => 'Custom menu',
- 'provider' => 'system'
+ 'provider' => 'system',
]);
$this->addMenuLink('', '/', $menu->id());
@@ -150,7 +150,7 @@ class MenuUiJavascriptTest extends JavascriptTestBase {
$this->assertMenuLink([
'menu_name' => $menu_id,
'children' => [],
- 'parent' => $parent
+ 'parent' => $parent,
], $menu_link->getPluginId());
return $menu_link;
diff --git a/core/modules/migrate/tests/src/Functional/process/DownloadFunctionalTest.php b/core/modules/migrate/tests/src/Functional/process/DownloadFunctionalTest.php
index ccbebff..5e890a0 100644
--- a/core/modules/migrate/tests/src/Functional/process/DownloadFunctionalTest.php
+++ b/core/modules/migrate/tests/src/Functional/process/DownloadFunctionalTest.php
@@ -41,7 +41,7 @@ class DownloadFunctionalTest extends BrowserTestBase {
'uri' => [
'plugin' => 'download',
'source' => ['url', 'uri'],
- ]
+ ],
],
'destination' => [
'plugin' => 'entity:file',
diff --git a/core/modules/migrate/tests/src/Kernel/MigrateConfigRollbackTest.php b/core/modules/migrate/tests/src/Kernel/MigrateConfigRollbackTest.php
index 14e50b9..27aa45b 100644
--- a/core/modules/migrate/tests/src/Kernel/MigrateConfigRollbackTest.php
+++ b/core/modules/migrate/tests/src/Kernel/MigrateConfigRollbackTest.php
@@ -34,7 +34,7 @@ class MigrateConfigRollbackTest extends MigrateTestBase {
$ids = [
'id' =>
[
- 'type' => 'string'
+ 'type' => 'string',
],
];
$definition = [
@@ -100,12 +100,12 @@ class MigrateConfigRollbackTest extends MigrateTestBase {
$ids = [
'id' =>
[
- 'type' => 'string'
+ 'type' => 'string',
],
'language' =>
[
- 'type' => 'string'
- ]
+ 'type' => 'string',
+ ],
];
$definition = [
'id' => 'i18n_config',
diff --git a/core/modules/migrate/tests/src/Kernel/MigrateRollbackEntityConfigTest.php b/core/modules/migrate/tests/src/Kernel/MigrateRollbackEntityConfigTest.php
index a639959..d43ad8a 100644
--- a/core/modules/migrate/tests/src/Kernel/MigrateRollbackEntityConfigTest.php
+++ b/core/modules/migrate/tests/src/Kernel/MigrateRollbackEntityConfigTest.php
@@ -83,14 +83,14 @@ class MigrateRollbackEntityConfigTest extends MigrateTestBase {
'name' => '1',
'language' => 'fr',
'property' => 'name',
- 'translation' => 'fr - categories'
+ 'translation' => 'fr - categories',
],
[
'id' => '2',
'name' => '2',
'language' => 'fr',
'property' => 'name',
- 'translation' => 'fr - tags'
+ 'translation' => 'fr - tags',
],
];
$ids = [
@@ -106,7 +106,7 @@ class MigrateRollbackEntityConfigTest extends MigrateTestBase {
'ids' => $ids,
'constants' => [
'name' => 'name',
- ]
+ ],
],
'process' => [
'vid' => 'id',
diff --git a/core/modules/migrate/tests/src/Kernel/Plugin/MigrationTest.php b/core/modules/migrate/tests/src/Kernel/Plugin/MigrationTest.php
index 287860a..2cb6f67 100644
--- a/core/modules/migrate/tests/src/Kernel/Plugin/MigrationTest.php
+++ b/core/modules/migrate/tests/src/Kernel/Plugin/MigrationTest.php
@@ -39,7 +39,7 @@ class MigrationTest extends KernelTestBase {
'f1' => 'bar',
'f2' => [
'plugin' => 'migration',
- 'migration' => 'm1'
+ 'migration' => 'm1',
],
'f3' => [
'plugin' => 'sub_process',
@@ -52,7 +52,7 @@ class MigrationTest extends KernelTestBase {
],
'f4' => [
'plugin' => 'migration_lookup',
- 'migration' => 'm3'
+ 'migration' => 'm3',
],
'f5' => [
'plugin' => 'sub_process',
diff --git a/core/modules/migrate/tests/src/Kernel/process/FileCopyTest.php b/core/modules/migrate/tests/src/Kernel/process/FileCopyTest.php
index 644371e..cdc1295 100644
--- a/core/modules/migrate/tests/src/Kernel/process/FileCopyTest.php
+++ b/core/modules/migrate/tests/src/Kernel/process/FileCopyTest.php
@@ -50,17 +50,17 @@ class FileCopyTest extends FileTestBase {
// Test a local to local copy.
[
$this->root . '/core/modules/simpletest/files/image-test.jpg',
- 'public://file1.jpg'
+ 'public://file1.jpg',
],
// Test a temporary file using an absolute path.
[
$file_absolute,
- 'temporary://test.jpg'
+ 'temporary://test.jpg',
],
// Test a temporary file using a relative path.
[
$file_absolute,
- 'temporary://core/modules/simpletest/files/test.jpg'
+ 'temporary://core/modules/simpletest/files/test.jpg',
],
];
foreach ($data_sets as $data) {
@@ -113,17 +113,17 @@ class FileCopyTest extends FileTestBase {
// Test a local to local copy.
[
$local_file,
- 'public://file1.jpg'
+ 'public://file1.jpg',
],
// Test a temporary file using an absolute path.
[
$file_1_absolute,
- 'temporary://test.jpg'
+ 'temporary://test.jpg',
],
// Test a temporary file using a relative path.
[
$file_2_absolute,
- 'temporary://core/modules/simpletest/files/test.jpg'
+ 'temporary://core/modules/simpletest/files/test.jpg',
],
];
foreach ($data_sets as $data) {
diff --git a/core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php b/core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php
index f199562..8f33ba6 100644
--- a/core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php
+++ b/core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php
@@ -384,7 +384,7 @@ class MigrateExecutableTest extends MigrateTestCase {
public function testProcessRow() {
$expected = [
'test' => 'test destination',
- 'test1' => 'test1 destination'
+ 'test1' => 'test1 destination',
];
foreach ($expected as $key => $value) {
$plugins[$key][0] = $this->getMock('Drupal\migrate\Plugin\MigrateProcessInterface');
diff --git a/core/modules/migrate/tests/src/Unit/MigrateSqlIdMapEnsureTablesTest.php b/core/modules/migrate/tests/src/Unit/MigrateSqlIdMapEnsureTablesTest.php
index 3c3cba8..1a33974 100644
--- a/core/modules/migrate/tests/src/Unit/MigrateSqlIdMapEnsureTablesTest.php
+++ b/core/modules/migrate/tests/src/Unit/MigrateSqlIdMapEnsureTablesTest.php
@@ -28,7 +28,7 @@ class MigrateSqlIdMapEnsureTablesTest extends MigrateTestCase {
'type' => 'varchar',
'length' => 64,
'not null' => 1,
- 'description' => 'Hash of source ids. Used as primary key'
+ 'description' => 'Hash of source ids. Used as primary key',
];
$fields['sourceid1'] = [
'type' => 'int',
@@ -101,7 +101,7 @@ class MigrateSqlIdMapEnsureTablesTest extends MigrateTestCase {
'type' => 'varchar',
'length' => 64,
'not null' => 1,
- 'description' => 'Hash of source ids. Used as primary key'
+ 'description' => 'Hash of source ids. Used as primary key',
];
$fields['level'] = [
'type' => 'int',
diff --git a/core/modules/migrate/tests/src/Unit/process/CallbackTest.php b/core/modules/migrate/tests/src/Unit/process/CallbackTest.php
index e672204..e7d1718 100644
--- a/core/modules/migrate/tests/src/Unit/process/CallbackTest.php
+++ b/core/modules/migrate/tests/src/Unit/process/CallbackTest.php
@@ -50,11 +50,11 @@ class CallbackTest extends MigrateProcessTestCase {
return [
'not set' => [
'message' => 'The "callable" must be set.',
- 'configuration' => []
+ 'configuration' => [],
],
'invalid method' => [
'message' => 'The "callable" must be a valid function or method.',
- 'configuration' => ['callable' => 'nonexistent_callable']
+ 'configuration' => ['callable' => 'nonexistent_callable'],
],
];
}
diff --git a/core/modules/migrate/tests/src/Unit/process/FormatDateTest.php b/core/modules/migrate/tests/src/Unit/process/FormatDateTest.php
index 7038c23..994de38 100644
--- a/core/modules/migrate/tests/src/Unit/process/FormatDateTest.php
+++ b/core/modules/migrate/tests/src/Unit/process/FormatDateTest.php
@@ -85,7 +85,7 @@ class FormatDateTest extends MigrateProcessTestCase {
'timezone' => 'America/Managua',
],
'value' => '2004-12-19T10:19:42-0600',
- 'expected' => '2004-12-19T10:19:42-06:00 -06:00'
+ 'expected' => '2004-12-19T10:19:42-06:00 -06:00',
],
];
}
diff --git a/core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/d8/ConfigTest.php b/core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/d8/ConfigTest.php
index 20b8095..3cf4031 100644
--- a/core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/d8/ConfigTest.php
+++ b/core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/d8/ConfigTest.php
@@ -72,7 +72,7 @@ class ConfigTest extends MigrateSqlSourceTestBase {
],
'collections' => [
'language.af',
- ]
+ ],
];
// Test with name and no collection in configuration.
diff --git a/core/modules/migrate_drupal/tests/src/Unit/source/d6/VariableTranslationTest.php b/core/modules/migrate_drupal/tests/src/Unit/source/d6/VariableTranslationTest.php
index 1527067..1d7f2d9 100644
--- a/core/modules/migrate_drupal/tests/src/Unit/source/d6/VariableTranslationTest.php
+++ b/core/modules/migrate_drupal/tests/src/Unit/source/d6/VariableTranslationTest.php
@@ -43,7 +43,7 @@ class VariableTranslationTest extends MigrateSqlSourceTestCase {
'language' => 'mi',
'site_slogan' => 'Ko whakamataku heke',
'site_name' => 'ingoa_pae',
- ]
+ ],
];
/**
diff --git a/core/modules/migrate_drupal/tests/src/Unit/source/d6/i18nVariableTest.php b/core/modules/migrate_drupal/tests/src/Unit/source/d6/i18nVariableTest.php
index d1905b0..d2a1566 100644
--- a/core/modules/migrate_drupal/tests/src/Unit/source/d6/i18nVariableTest.php
+++ b/core/modules/migrate_drupal/tests/src/Unit/source/d6/i18nVariableTest.php
@@ -44,7 +44,7 @@ class i18nVariableTest extends MigrateSqlSourceTestCase {
'language' => 'mi',
'site_slogan' => 'Ko whakamataku heke',
'site_name' => 'ingoa_pae',
- ]
+ ],
];
/**
diff --git a/core/modules/node/node.admin.inc b/core/modules/node/node.admin.inc
index fe48692..bd1b623 100644
--- a/core/modules/node/node.admin.inc
+++ b/core/modules/node/node.admin.inc
@@ -35,7 +35,7 @@ function node_mass_update(array $nodes, array $updates, $langcode = NULL, $load
if (count($nodes) > 10) {
$batch = [
'operations' => [
- ['_node_mass_update_batch_process', [$nodes, $updates, $langcode, $load, $revisions]]
+ ['_node_mass_update_batch_process', [$nodes, $updates, $langcode, $load, $revisions]],
],
'finished' => '_node_mass_update_batch_finished',
'title' => t('Processing'),
diff --git a/core/modules/node/node.api.php b/core/modules/node/node.api.php
index dd151a4..b0a87d8 100644
--- a/core/modules/node/node.api.php
+++ b/core/modules/node/node.api.php
@@ -169,7 +169,7 @@ function hook_node_access_records(\Drupal\node\NodeInterface $node) {
'grant_view' => 1,
'grant_update' => 0,
'grant_delete' => 0,
- 'langcode' => 'ca'
+ 'langcode' => 'ca',
];
}
// For the example_author array, the GID is equivalent to a UID, which
@@ -183,7 +183,7 @@ function hook_node_access_records(\Drupal\node\NodeInterface $node) {
'grant_view' => 1,
'grant_update' => 1,
'grant_delete' => 1,
- 'langcode' => 'ca'
+ 'langcode' => 'ca',
];
}
diff --git a/core/modules/node/node.module b/core/modules/node/node.module
index b26be92..ea27e26 100644
--- a/core/modules/node/node.module
+++ b/core/modules/node/node.module
@@ -841,7 +841,7 @@ function node_page_top(array &$page) {
$page['page_top']['node_preview'] = [
'#type' => 'container',
'#attributes' => [
- 'class' => ['node-preview-container', 'container-inline']
+ 'class' => ['node-preview-container', 'container-inline'],
],
];
@@ -1185,7 +1185,7 @@ function node_access_rebuild($batch_mode = FALSE) {
'operations' => [
['_node_access_rebuild_batch_operation', []],
],
- 'finished' => '_node_access_rebuild_batch_finished'
+ 'finished' => '_node_access_rebuild_batch_finished',
];
batch_set($batch);
}
diff --git a/core/modules/node/src/Form/NodePreviewForm.php b/core/modules/node/src/Form/NodePreviewForm.php
index b06a657..75ed61d 100644
--- a/core/modules/node/src/Form/NodePreviewForm.php
+++ b/core/modules/node/src/Form/NodePreviewForm.php
@@ -107,7 +107,7 @@ class NodePreviewForm extends FormBase {
'#default_value' => $view_mode,
'#attributes' => [
'data-drupal-autosubmit' => TRUE,
- ]
+ ],
];
$form['submit'] = [
diff --git a/core/modules/node/src/NodeForm.php b/core/modules/node/src/NodeForm.php
index 12f276e..702d8d7 100644
--- a/core/modules/node/src/NodeForm.php
+++ b/core/modules/node/src/NodeForm.php
@@ -102,7 +102,7 @@ class NodeForm extends ContentEntityForm {
if ($this->operation == 'edit') {
$form['#title'] = $this->t('<em>Edit @type</em> @title', [
'@type' => node_get_type_label($node),
- '@title' => $node->label()
+ '@title' => $node->label(),
]);
}
diff --git a/core/modules/node/src/NodeTypeListBuilder.php b/core/modules/node/src/NodeTypeListBuilder.php
index be6e5f6..8707298 100644
--- a/core/modules/node/src/NodeTypeListBuilder.php
+++ b/core/modules/node/src/NodeTypeListBuilder.php
@@ -56,7 +56,7 @@ class NodeTypeListBuilder extends ConfigEntityListBuilder {
public function render() {
$build = parent::render();
$build['table']['#empty'] = $this->t('No content types available. <a href=":link">Add content type</a>.', [
- ':link' => Url::fromRoute('node.type_add')->toString()
+ ':link' => Url::fromRoute('node.type_add')->toString(),
]);
return $build;
}
diff --git a/core/modules/node/src/NodeViewBuilder.php b/core/modules/node/src/NodeViewBuilder.php
index 2fc6728..43efecb 100644
--- a/core/modules/node/src/NodeViewBuilder.php
+++ b/core/modules/node/src/NodeViewBuilder.php
@@ -46,7 +46,7 @@ class NodeViewBuilder extends EntityViewBuilder {
'#title' => t('Language'),
'#markup' => $entity->language()->getName(),
'#prefix' => '<div id="field-language-display">',
- '#suffix' => '</div>'
+ '#suffix' => '</div>',
];
}
}
diff --git a/core/modules/node/src/NodeViewsData.php b/core/modules/node/src/NodeViewsData.php
index a122203..e13e76c 100644
--- a/core/modules/node/src/NodeViewsData.php
+++ b/core/modules/node/src/NodeViewsData.php
@@ -322,7 +322,7 @@ class NodeViewsData extends EntityViewsData {
'field' => 'sid',
'table' => 'search_index',
'extra' => "node_search_index.type = 'node_search' AND node_search_index.langcode = node_field_data.langcode",
- ]
+ ],
];
$data['node_search_total']['table']['join'] = [
diff --git a/core/modules/node/src/Plugin/Search/NodeSearch.php b/core/modules/node/src/Plugin/Search/NodeSearch.php
index 52c121e..b043d63 100644
--- a/core/modules/node/src/Plugin/Search/NodeSearch.php
+++ b/core/modules/node/src/Plugin/Search/NodeSearch.php
@@ -487,7 +487,7 @@ class NodeSearch extends ConfigurableSearchPluginBase implements AccessibleInter
'#prefix' => '<h1>',
'#plain_text' => $node->label(),
'#suffix' => '</h1>',
- '#weight' => -1000
+ '#weight' => -1000,
];
$text = $this->renderer->renderPlain($build);
@@ -793,7 +793,7 @@ class NodeSearch extends ConfigurableSearchPluginBase implements AccessibleInter
'#open' => TRUE,
];
$form['content_ranking']['info'] = [
- '#markup' => '<p><em>' . $this->t('Influence is a numeric multiplier used in ordering search results. A higher number means the corresponding factor has more influence on search results; zero means the factor is ignored. Changing these numbers does not require the search index to be rebuilt. Changes take effect immediately.') . '</em></p>'
+ '#markup' => '<p><em>' . $this->t('Influence is a numeric multiplier used in ordering search results. A higher number means the corresponding factor has more influence on search results; zero means the factor is ignored. Changing these numbers does not require the search index to be rebuilt. Changes take effect immediately.') . '</em></p>',
];
// Prepare table.
$header = [$this->t('Factor'), $this->t('Influence')];
diff --git a/core/modules/node/src/Plugin/views/wizard/Node.php b/core/modules/node/src/Plugin/views/wizard/Node.php
index c9929c5..0fd9367 100644
--- a/core/modules/node/src/Plugin/views/wizard/Node.php
+++ b/core/modules/node/src/Plugin/views/wizard/Node.php
@@ -37,7 +37,7 @@ class Node extends WizardPluginBase {
public function getAvailableSorts() {
// You can't execute functions in properties, so override the method
return [
- 'node_field_data-title:ASC' => $this->t('Title')
+ 'node_field_data-title:ASC' => $this->t('Title'),
];
}
diff --git a/core/modules/node/src/Tests/NodeRevisionsTest.php b/core/modules/node/src/Tests/NodeRevisionsTest.php
index c36452d..fdc929a 100644
--- a/core/modules/node/src/Tests/NodeRevisionsTest.php
+++ b/core/modules/node/src/Tests/NodeRevisionsTest.php
@@ -174,7 +174,7 @@ class NodeRevisionsTest extends NodeTestBase {
$this->assertRaw(t('@type %title has been reverted to the revision from %revision-date.', [
'@type' => 'Basic page',
'%title' => $nodes[1]->label(),
- '%revision-date' => format_date($nodes[1]->getRevisionCreationTime())
+ '%revision-date' => format_date($nodes[1]->getRevisionCreationTime()),
]), 'Revision reverted.');
$node_storage->resetCache([$node->id()]);
$reverted_node = $node_storage->load($node->id());
diff --git a/core/modules/node/src/Tests/NodeTestBase.php b/core/modules/node/src/Tests/NodeTestBase.php
index 2dcaba5..643684c 100644
--- a/core/modules/node/src/Tests/NodeTestBase.php
+++ b/core/modules/node/src/Tests/NodeTestBase.php
@@ -105,7 +105,7 @@ abstract class NodeTestBase extends WebTestBase {
[
'@result' => $result ? 'true' : 'false',
'%op' => $operation,
- '%langcode' => !empty($langcode) ? $langcode : 'empty'
+ '%langcode' => !empty($langcode) ? $langcode : 'empty',
]
);
}
diff --git a/core/modules/node/src/Tests/NodeTypeTest.php b/core/modules/node/src/Tests/NodeTypeTest.php
index 70d3ac4..9938bb0 100644
--- a/core/modules/node/src/Tests/NodeTypeTest.php
+++ b/core/modules/node/src/Tests/NodeTypeTest.php
@@ -249,7 +249,7 @@ class NodeTypeTest extends NodeTestBase {
// Navigate to content type administration screen
$this->drupalGet('admin/structure/types');
$this->assertRaw(t('No content types available. <a href=":link">Add content type</a>.', [
- ':link' => Url::fromRoute('node.type_add')->toString()
+ ':link' => Url::fromRoute('node.type_add')->toString(),
]), 'Empty text when there are no content types in the system is correct.');
$bundle_info->clearCachedBundles();
diff --git a/core/modules/node/src/Tests/PagePreviewTest.php b/core/modules/node/src/Tests/PagePreviewTest.php
index e9f607c..bcbe5d7 100644
--- a/core/modules/node/src/Tests/PagePreviewTest.php
+++ b/core/modules/node/src/Tests/PagePreviewTest.php
@@ -133,7 +133,7 @@ class PagePreviewTest extends NodeTestBase {
'type' => 'text',
'settings' => [
'max_length' => 50,
- ]
+ ],
]);
$field_storage->save();
FieldConfig::create([
diff --git a/core/modules/node/tests/src/Functional/NodeAccessFieldTest.php b/core/modules/node/tests/src/Functional/NodeAccessFieldTest.php
index aa22482..ab6f28d 100644
--- a/core/modules/node/tests/src/Functional/NodeAccessFieldTest.php
+++ b/core/modules/node/tests/src/Functional/NodeAccessFieldTest.php
@@ -54,7 +54,7 @@ class NodeAccessFieldTest extends NodeTestBase {
FieldStorageConfig::create([
'field_name' => $this->fieldName,
'entity_type' => 'node',
- 'type' => 'text'
+ 'type' => 'text',
])->save();
FieldConfig::create([
'field_name' => $this->fieldName,
diff --git a/core/modules/node/tests/src/Functional/NodeAccessMenuLinkTest.php b/core/modules/node/tests/src/Functional/NodeAccessMenuLinkTest.php
index 6c5bcd4..5d987b3 100644
--- a/core/modules/node/tests/src/Functional/NodeAccessMenuLinkTest.php
+++ b/core/modules/node/tests/src/Functional/NodeAccessMenuLinkTest.php
@@ -33,7 +33,7 @@ class NodeAccessMenuLinkTest extends NodeTestBase {
$this->contentAdminUser = $this->drupalCreateUser([
'access content',
'administer content types',
- 'administer menu'
+ 'administer menu',
]);
$this->config('user.role.' . RoleInterface::ANONYMOUS_ID)->set('permissions', [])->save();
diff --git a/core/modules/node/tests/src/Functional/NodeAccessRebuildNodeGrantsTest.php b/core/modules/node/tests/src/Functional/NodeAccessRebuildNodeGrantsTest.php
index 9ea75cc..7ed8413 100644
--- a/core/modules/node/tests/src/Functional/NodeAccessRebuildNodeGrantsTest.php
+++ b/core/modules/node/tests/src/Functional/NodeAccessRebuildNodeGrantsTest.php
@@ -52,7 +52,7 @@ class NodeAccessRebuildNodeGrantsTest extends NodeTestBase {
for ($i = 0; $i < 30; $i++) {
$nodes[] = $this->drupalCreateNode([
'uid' => $this->webUser->id(),
- 'private' => [['value' => 1]]
+ 'private' => [['value' => 1]],
]);
}
diff --git a/core/modules/node/tests/src/Functional/NodePreviewAnonymousTest.php b/core/modules/node/tests/src/Functional/NodePreviewAnonymousTest.php
index 66660f9..f10d8b7 100644
--- a/core/modules/node/tests/src/Functional/NodePreviewAnonymousTest.php
+++ b/core/modules/node/tests/src/Functional/NodePreviewAnonymousTest.php
@@ -49,7 +49,7 @@ class NodePreviewAnonymousTest extends BrowserTestBase {
// Fill in node creation form and preview node.
$edit = [
$title_key => $this->randomMachineName(),
- $body_key => $this->randomMachineName()
+ $body_key => $this->randomMachineName(),
];
$this->drupalPostForm('node/add/page', $edit, t('Preview'));
diff --git a/core/modules/node/tests/src/Functional/NodeRevisionsAllTest.php b/core/modules/node/tests/src/Functional/NodeRevisionsAllTest.php
index bee787f..238c731 100644
--- a/core/modules/node/tests/src/Functional/NodeRevisionsAllTest.php
+++ b/core/modules/node/tests/src/Functional/NodeRevisionsAllTest.php
@@ -46,7 +46,7 @@ class NodeRevisionsAllTest extends NodeTestBase {
'revert page revisions',
'delete page revisions',
'edit any page content',
- 'delete any page content'
+ 'delete any page content',
]
);
$this->drupalLogin($web_user);
@@ -122,7 +122,7 @@ class NodeRevisionsAllTest extends NodeTestBase {
'revert all revisions',
'delete all revisions',
'edit any page content',
- 'delete any page content'
+ 'delete any page content',
]
);
$this->drupalLogin($content_admin);
@@ -147,7 +147,7 @@ class NodeRevisionsAllTest extends NodeTestBase {
[
'@type' => 'Basic page',
'%title' => $nodes[1]->getTitle(),
- '%revision-date' => format_date($nodes[1]->getRevisionCreationTime())
+ '%revision-date' => format_date($nodes[1]->getRevisionCreationTime()),
]),
'Revision reverted.');
$node_storage->resetCache([$node->id()]);
diff --git a/core/modules/node/tests/src/Functional/NodeTestBase.php b/core/modules/node/tests/src/Functional/NodeTestBase.php
index 2ef0d73..e527086 100644
--- a/core/modules/node/tests/src/Functional/NodeTestBase.php
+++ b/core/modules/node/tests/src/Functional/NodeTestBase.php
@@ -102,7 +102,7 @@ abstract class NodeTestBase extends BrowserTestBase {
[
'@result' => $result ? 'true' : 'false',
'%op' => $operation,
- '%langcode' => !empty($langcode) ? $langcode : 'empty'
+ '%langcode' => !empty($langcode) ? $langcode : 'empty',
]
);
}
diff --git a/core/modules/node/tests/src/Functional/NodeTranslationUITest.php b/core/modules/node/tests/src/Functional/NodeTranslationUITest.php
index 6bdc065..46516fe 100644
--- a/core/modules/node/tests/src/Functional/NodeTranslationUITest.php
+++ b/core/modules/node/tests/src/Functional/NodeTranslationUITest.php
@@ -99,7 +99,7 @@ class NodeTranslationUITest extends ContentTranslationUITestBase {
$add_url = Url::fromRoute("entity.$entity_type_id.content_translation_add", [
$entity->getEntityTypeId() => $entity->id(),
'source' => $default_langcode,
- 'target' => $langcode
+ 'target' => $langcode,
], ['language' => $language]);
$edit = $this->getEditValues($values, $langcode);
$edit['status[value]'] = FALSE;
diff --git a/core/modules/node/tests/src/Functional/NodeViewTest.php b/core/modules/node/tests/src/Functional/NodeViewTest.php
index b0eaa47..36a26fc 100644
--- a/core/modules/node/tests/src/Functional/NodeViewTest.php
+++ b/core/modules/node/tests/src/Functional/NodeViewTest.php
@@ -47,7 +47,7 @@ class NodeViewTest extends NodeTestBase {
// ensure caches are handled properly.
$this->drupalLogin($this->rootUser);
$edit = [
- 'anonymous[edit own ' . $node->bundle() . ' content]' => TRUE
+ 'anonymous[edit own ' . $node->bundle() . ' content]' => TRUE,
];
$this->drupalPostForm('admin/people/permissions', $edit, 'Save permissions');
$this->drupalLogout();
diff --git a/core/modules/node/tests/src/Functional/Views/FrontPageTest.php b/core/modules/node/tests/src/Functional/Views/FrontPageTest.php
index 37a6b91..618119c 100644
--- a/core/modules/node/tests/src/Functional/Views/FrontPageTest.php
+++ b/core/modules/node/tests/src/Functional/Views/FrontPageTest.php
@@ -284,7 +284,7 @@ class FrontPageTest extends ViewTestBase {
[
'value' => $this->randomMachineName(32),
'format' => filter_default_format(),
- ]
+ ],
],
'type' => 'article',
'created' => $i,
diff --git a/core/modules/node/tests/src/Functional/Views/NodeLanguageTest.php b/core/modules/node/tests/src/Functional/Views/NodeLanguageTest.php
index d2d1b47..31e0852 100644
--- a/core/modules/node/tests/src/Functional/Views/NodeLanguageTest.php
+++ b/core/modules/node/tests/src/Functional/Views/NodeLanguageTest.php
@@ -75,7 +75,7 @@ class NodeLanguageTest extends NodeTestBase {
],
'fr' => [
'Premier nœud fr',
- ]
+ ],
];
// Create nodes with translations.
diff --git a/core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeBundleSettingsTest.php b/core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeBundleSettingsTest.php
index 9f28c06..34c8dd3 100644
--- a/core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeBundleSettingsTest.php
+++ b/core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeBundleSettingsTest.php
@@ -36,7 +36,7 @@ class MigrateNodeBundleSettingsTest extends MigrateDrupal6TestBase {
$this->executeMigrations([
'd6_node_setting_promote',
'd6_node_setting_status',
- 'd6_node_setting_sticky'
+ 'd6_node_setting_sticky',
]);
}
diff --git a/core/modules/options/tests/src/Kernel/Views/OptionsListFilterTest.php b/core/modules/options/tests/src/Kernel/Views/OptionsListFilterTest.php
index bc377b0..06bedad 100644
--- a/core/modules/options/tests/src/Kernel/Views/OptionsListFilterTest.php
+++ b/core/modules/options/tests/src/Kernel/Views/OptionsListFilterTest.php
@@ -78,20 +78,20 @@ class OptionsListFilterTest extends OptionsTestBase {
'operator' => 'or',
'value' => [
$this->fieldValues[0] => $this->fieldValues[0],
- ]
+ ],
],
2 => [
'title' => 'Second',
'operator' => 'or',
'value' => [
$this->fieldValues[1] => $this->fieldValues[1],
- ]
+ ],
],
],
],
'reduce_duplicates' => '',
'plugin_id' => 'list_field',
- ]
+ ],
];
$view->setDisplay();
$view->displayHandlers->get('default')->overrideOption('filters', $filters);
diff --git a/core/modules/page_cache/tests/src/Functional/PageCacheTest.php b/core/modules/page_cache/tests/src/Functional/PageCacheTest.php
index 8b5442c..3e90d8e 100644
--- a/core/modules/page_cache/tests/src/Functional/PageCacheTest.php
+++ b/core/modules/page_cache/tests/src/Functional/PageCacheTest.php
@@ -370,7 +370,7 @@ class PageCacheTest extends BrowserTestBase {
0 => [
'value' => $this->randomString(),
'format' => 'plain_text',
- ]
+ ],
],
];
$entity = EntityTest::create($entity_values);
diff --git a/core/modules/path/src/Form/PathFormBase.php b/core/modules/path/src/Form/PathFormBase.php
index 2aa785c..4b1cbd5 100644
--- a/core/modules/path/src/Form/PathFormBase.php
+++ b/core/modules/path/src/Form/PathFormBase.php
@@ -138,7 +138,7 @@ abstract class PathFormBase extends FormBase {
else {
$form['langcode'] = [
'#type' => 'value',
- '#value' => $this->path['langcode']
+ '#value' => $this->path['langcode'],
];
}
diff --git a/core/modules/path/tests/src/Kernel/PathNoCanonicalLinkTest.php b/core/modules/path/tests/src/Kernel/PathNoCanonicalLinkTest.php
index 602e84f..773b792 100644
--- a/core/modules/path/tests/src/Kernel/PathNoCanonicalLinkTest.php
+++ b/core/modules/path/tests/src/Kernel/PathNoCanonicalLinkTest.php
@@ -42,7 +42,7 @@ class PathNoCanonicalLinkTest extends KernelTestBase {
public function testNoCanonicalLinkTemplate() {
$entity_type = EntityTestTranslatableUISkip::create([
'name' => 'name english',
- 'language' => 'en'
+ 'language' => 'en',
]);
$entity_type->save();
diff --git a/core/modules/quickedit/src/QuickEditController.php b/core/modules/quickedit/src/QuickEditController.php
index 0f470b1..3bed196 100644
--- a/core/modules/quickedit/src/QuickEditController.php
+++ b/core/modules/quickedit/src/QuickEditController.php
@@ -221,7 +221,7 @@ class QuickEditController extends ControllerBase {
$errors = $form_state->getErrors();
if (count($errors)) {
$status_messages = [
- '#type' => 'status_messages'
+ '#type' => 'status_messages',
];
$response->addCommand(new FieldFormValidationErrorsCommand($this->renderer->renderRoot($status_messages)));
}
@@ -293,7 +293,7 @@ class QuickEditController extends ControllerBase {
// to identify it.
$output = [
'entity_type' => $entity->getEntityTypeId(),
- 'entity_id' => $entity->id()
+ 'entity_id' => $entity->id(),
];
// Respond to client that the entity was saved properly.
diff --git a/core/modules/quickedit/src/Tests/QuickEditLoadingTest.php b/core/modules/quickedit/src/Tests/QuickEditLoadingTest.php
index 9957a67..61af1f5 100644
--- a/core/modules/quickedit/src/Tests/QuickEditLoadingTest.php
+++ b/core/modules/quickedit/src/Tests/QuickEditLoadingTest.php
@@ -86,7 +86,7 @@ class QuickEditLoadingTest extends WebTestBase {
0 => [
'value' => '<p>How are you?</p>',
'format' => 'filtered_html',
- ]
+ ],
],
'revision_log' => $this->randomString(),
]);
@@ -187,7 +187,7 @@ class QuickEditLoadingTest extends WebTestBase {
'label' => 'Body',
'access' => TRUE,
'editor' => 'form',
- ]
+ ],
];
$this->assertIdentical(Json::decode($response), $expected, 'The metadata HTTP request answers with the correct JSON response.');
// Restore drupalSettings to build the next requests; simpletest wipes them
@@ -373,7 +373,7 @@ class QuickEditLoadingTest extends WebTestBase {
'label' => 'Title',
'access' => TRUE,
'editor' => 'plain_text',
- ]
+ ],
];
$this->assertIdentical(Json::decode($response), $expected, 'The metadata HTTP request answers with the correct JSON response.');
// Restore drupalSettings to build the next requests; simpletest wipes them
diff --git a/core/modules/quickedit/tests/src/Kernel/MetadataGeneratorTest.php b/core/modules/quickedit/tests/src/Kernel/MetadataGeneratorTest.php
index 42c4103..e0079e4 100644
--- a/core/modules/quickedit/tests/src/Kernel/MetadataGeneratorTest.php
+++ b/core/modules/quickedit/tests/src/Kernel/MetadataGeneratorTest.php
@@ -169,7 +169,7 @@ class MetadataGeneratorTest extends QuickEditTestBase {
'label' => 'Rich text field',
'editor' => 'wysiwyg',
'custom' => [
- 'format' => 'full_html'
+ 'format' => 'full_html',
],
];
$this->assertEqual($expected, $metadata, 'The correct metadata (including custom metadata) is generated.');
diff --git a/core/modules/quickedit/tests/src/Kernel/QuickEditTestBase.php b/core/modules/quickedit/tests/src/Kernel/QuickEditTestBase.php
index 2943748..8cc2d2f 100644
--- a/core/modules/quickedit/tests/src/Kernel/QuickEditTestBase.php
+++ b/core/modules/quickedit/tests/src/Kernel/QuickEditTestBase.php
@@ -97,7 +97,7 @@ abstract class QuickEditTestBase extends KernelTestBase {
->setComponent($field_name, [
'label' => 'above',
'type' => $formatter_type,
- 'settings' => $formatter_settings
+ 'settings' => $formatter_settings,
])
->save();
}
diff --git a/core/modules/rdf/tests/src/Functional/UserAttributesTest.php b/core/modules/rdf/tests/src/Functional/UserAttributesTest.php
index 7e98286..fddd440 100644
--- a/core/modules/rdf/tests/src/Functional/UserAttributesTest.php
+++ b/core/modules/rdf/tests/src/Functional/UserAttributesTest.php
@@ -45,7 +45,7 @@ class UserAttributesTest extends BrowserTestBase {
$authors = [
$this->drupalCreateUser([], $this->randomMachineName(30)),
$this->drupalCreateUser([], $this->randomMachineName(20)),
- $this->drupalCreateUser([], $this->randomMachineName(5))
+ $this->drupalCreateUser([], $this->randomMachineName(5)),
];
$this->drupalLogin($user1);
diff --git a/core/modules/responsive_image/src/ResponsiveImageStyleForm.php b/core/modules/responsive_image/src/ResponsiveImageStyleForm.php
index 3a70951..5a3181a 100644
--- a/core/modules/responsive_image/src/ResponsiveImageStyleForm.php
+++ b/core/modules/responsive_image/src/ResponsiveImageStyleForm.php
@@ -259,7 +259,7 @@ class ResponsiveImageStyleForm extends EntityForm {
'image_mapping' => [
'sizes' => $image_style_mapping['sizes'],
'sizes_image_styles' => array_keys(array_filter($image_style_mapping['sizes_image_styles'])),
- ]
+ ],
];
$responsive_image_style->addImageStyleMapping($breakpoint_id, $multiplier, $mapping);
}
diff --git a/core/modules/responsive_image/src/Tests/ResponsiveImageFieldDisplayTest.php b/core/modules/responsive_image/src/Tests/ResponsiveImageFieldDisplayTest.php
index 04efb7b..3828ab0 100644
--- a/core/modules/responsive_image/src/Tests/ResponsiveImageFieldDisplayTest.php
+++ b/core/modules/responsive_image/src/Tests/ResponsiveImageFieldDisplayTest.php
@@ -51,7 +51,7 @@ class ResponsiveImageFieldDisplayTest extends ImageFieldTestBase {
'create article content',
'edit any article content',
'delete any article content',
- 'administer image styles'
+ 'administer image styles',
]);
$this->drupalLogin($this->adminUser);
// Add responsive image style.
diff --git a/core/modules/responsive_image/src/Tests/ResponsiveImageFieldUiTest.php b/core/modules/responsive_image/src/Tests/ResponsiveImageFieldUiTest.php
index c879e72..2069f61 100644
--- a/core/modules/responsive_image/src/Tests/ResponsiveImageFieldUiTest.php
+++ b/core/modules/responsive_image/src/Tests/ResponsiveImageFieldUiTest.php
@@ -77,7 +77,7 @@ class ResponsiveImageFieldUiTest extends WebTestBase {
])
->addImageStyleMapping('responsive_image_test_module.narrow', '1x', [
'image_mapping_type' => 'image_style',
- 'image_mapping' => 'medium'
+ 'image_mapping' => 'medium',
])
// Test the normal output of mapping to an image style.
->addImageStyleMapping('responsive_image_test_module.wide', '1x', [
diff --git a/core/modules/responsive_image/tests/src/Unit/ResponsiveImageStyleConfigEntityUnitTest.php b/core/modules/responsive_image/tests/src/Unit/ResponsiveImageStyleConfigEntityUnitTest.php
index 0c64b05..f45c927 100644
--- a/core/modules/responsive_image/tests/src/Unit/ResponsiveImageStyleConfigEntityUnitTest.php
+++ b/core/modules/responsive_image/tests/src/Unit/ResponsiveImageStyleConfigEntityUnitTest.php
@@ -248,7 +248,7 @@ class ResponsiveImageStyleConfigEntityUnitTest extends UnitTestCase {
'image_mapping_type' => 'image_style',
'image_mapping' => '_original image_',
],
- ]
+ ],
];
$this->assertEquals($expected, $entity->getKeyedImageStyleMappings());
diff --git a/core/modules/rest/rest.post_update.php b/core/modules/rest/rest.post_update.php
index 6d45178..8ed5a6d 100644
--- a/core/modules/rest/rest.post_update.php
+++ b/core/modules/rest/rest.post_update.php
@@ -53,7 +53,7 @@ function rest_post_update_resource_granularity() {
$resource_config_entity->set('configuration', [
'methods' => array_keys($configuration),
'formats' => $configuration[$first_method]['supported_formats'],
- 'authentication' => $configuration[$first_method]['supported_auth']
+ 'authentication' => $configuration[$first_method]['supported_auth'],
]);
$resource_config_entity->set('granularity', RestResourceConfigInterface::RESOURCE_GRANULARITY);
$resource_config_entity->save();
diff --git a/core/modules/rest/src/Entity/RestResourceConfig.php b/core/modules/rest/src/Entity/RestResourceConfig.php
index 47faa01..c0a4e5c 100644
--- a/core/modules/rest/src/Entity/RestResourceConfig.php
+++ b/core/modules/rest/src/Entity/RestResourceConfig.php
@@ -210,7 +210,7 @@ class RestResourceConfig extends ConfigEntityBase implements RestResourceConfigI
*/
public function getPluginCollections() {
return [
- 'resource' => new DefaultSingleLazyPluginCollection($this->getResourcePluginManager(), $this->plugin_id, [])
+ 'resource' => new DefaultSingleLazyPluginCollection($this->getResourcePluginManager(), $this->plugin_id, []),
];
}
diff --git a/core/modules/rest/src/Tests/RESTTestBase.php b/core/modules/rest/src/Tests/RESTTestBase.php
index f604613..66be4b2 100644
--- a/core/modules/rest/src/Tests/RESTTestBase.php
+++ b/core/modules/rest/src/Tests/RESTTestBase.php
@@ -383,7 +383,7 @@ abstract class RESTTestBase extends WebTestBase {
$resource_config = $this->resourceConfigStorage->create([
'id' => $resource_config_id,
'granularity' => RestResourceConfigInterface::METHOD_GRANULARITY,
- 'configuration' => []
+ 'configuration' => [],
]);
}
$configuration = $resource_config->get('configuration');
diff --git a/core/modules/rest/tests/fixtures/update/drupal-8.rest-rest_update_8201.php b/core/modules/rest/tests/fixtures/update/drupal-8.rest-rest_update_8201.php
index 17a69d5..ac9b191 100644
--- a/core/modules/rest/tests/fixtures/update/drupal-8.rest-rest_update_8201.php
+++ b/core/modules/rest/tests/fixtures/update/drupal-8.rest-rest_update_8201.php
@@ -54,6 +54,6 @@ $data = $connection->insert('config')
->fields([
'name' => 'rest.settings',
'data' => serialize($config),
- 'collection' => ''
+ 'collection' => '',
])
->execute();
diff --git a/core/modules/rest/tests/fixtures/update/drupal-8.rest-rest_update_8203.php b/core/modules/rest/tests/fixtures/update/drupal-8.rest-rest_update_8203.php
index 15acff9..c20ba95 100644
--- a/core/modules/rest/tests/fixtures/update/drupal-8.rest-rest_update_8203.php
+++ b/core/modules/rest/tests/fixtures/update/drupal-8.rest-rest_update_8203.php
@@ -53,6 +53,6 @@ $data = $connection->insert('config')
->fields([
'name' => 'rest.settings',
'data' => serialize($config),
- 'collection' => ''
+ 'collection' => '',
])
->execute();
diff --git a/core/modules/rest/tests/src/Functional/EntityResource/EntityTest/EntityTestResourceTestBase.php b/core/modules/rest/tests/src/Functional/EntityResource/EntityTest/EntityTestResourceTestBase.php
index 0c82ea9..94384ff 100644
--- a/core/modules/rest/tests/src/Functional/EntityResource/EntityTest/EntityTestResourceTestBase.php
+++ b/core/modules/rest/tests/src/Functional/EntityResource/EntityTest/EntityTestResourceTestBase.php
@@ -84,8 +84,8 @@ abstract class EntityTestResourceTestBase extends EntityResourceTestBase {
$normalization = [
'uuid' => [
[
- 'value' => $this->entity->uuid()
- ]
+ 'value' => $this->entity->uuid(),
+ ],
],
'id' => [
[
@@ -100,15 +100,15 @@ abstract class EntityTestResourceTestBase extends EntityResourceTestBase {
'type' => [
[
'value' => 'entity_test',
- ]
+ ],
],
'name' => [
[
'value' => 'Llama',
- ]
+ ],
],
'created' => [
- $this->formatExpectedTimestampItemValues((int) $this->entity->get('created')->value)
+ $this->formatExpectedTimestampItemValues((int) $this->entity->get('created')->value),
],
'user_id' => [
[
@@ -116,7 +116,7 @@ abstract class EntityTestResourceTestBase extends EntityResourceTestBase {
'target_type' => 'user',
'target_uuid' => $author->uuid(),
'url' => $author->toUrl()->toString(),
- ]
+ ],
],
'field_test_text' => [],
];
diff --git a/core/modules/rest/tests/src/Functional/EntityResource/EntityTest/EntityTestTextItemNormalizerTest.php b/core/modules/rest/tests/src/Functional/EntityResource/EntityTest/EntityTestTextItemNormalizerTest.php
index cd8654d..1108832 100644
--- a/core/modules/rest/tests/src/Functional/EntityResource/EntityTest/EntityTestTextItemNormalizerTest.php
+++ b/core/modules/rest/tests/src/Functional/EntityResource/EntityTest/EntityTestTextItemNormalizerTest.php
@@ -123,7 +123,7 @@ class EntityTestTextItemNormalizerTest extends EntityTestResourceTestBase {
'foo:bar',
'foo:baz',
// The cache tags set by the filter_test_cache_merge filter.
- 'merge:tag'
+ 'merge:tag',
], parent::getExpectedCacheTags());
}
diff --git a/core/modules/rest/tests/src/Functional/EntityResource/Feed/FeedResourceTestBase.php b/core/modules/rest/tests/src/Functional/EntityResource/Feed/FeedResourceTestBase.php
index a89bde1..7dce3a2 100644
--- a/core/modules/rest/tests/src/Functional/EntityResource/Feed/FeedResourceTestBase.php
+++ b/core/modules/rest/tests/src/Functional/EntityResource/Feed/FeedResourceTestBase.php
@@ -76,33 +76,33 @@ abstract class FeedResourceTestBase extends EntityResourceTestBase {
return [
'uuid' => [
[
- 'value' => 'abcdefg'
- ]
+ 'value' => 'abcdefg',
+ ],
],
'fid' => [
[
- 'value' => 1
- ]
+ 'value' => 1,
+ ],
],
'langcode' => [
[
- 'value' => 'en'
- ]
+ 'value' => 'en',
+ ],
],
'url' => [
[
- 'value' => 'http://example.com/rss.xml'
- ]
+ 'value' => 'http://example.com/rss.xml',
+ ],
],
'title' => [
[
- 'value' => 'Feed'
- ]
+ 'value' => 'Feed',
+ ],
],
'refresh' => [
[
- 'value' => 900
- ]
+ 'value' => 900,
+ ],
],
'checked' => [
$this->formatExpectedTimestampItemValues(123456789),
@@ -112,28 +112,28 @@ abstract class FeedResourceTestBase extends EntityResourceTestBase {
],
'link' => [
[
- 'value' => 'http://example.com'
- ]
+ 'value' => 'http://example.com',
+ ],
],
'description' => [
[
- 'value' => 'Feed Resource Test 1'
- ]
+ 'value' => 'Feed Resource Test 1',
+ ],
],
'image' => [
[
- 'value' => 'http://example.com/feed_logo'
- ]
+ 'value' => 'http://example.com/feed_logo',
+ ],
],
'hash' => [
[
- 'value' => 'abcdefg'
- ]
+ 'value' => 'abcdefg',
+ ],
],
'etag' => [
[
- 'value' => 'hijklmn'
- ]
+ 'value' => 'hijklmn',
+ ],
],
'modified' => [
$this->formatExpectedTimestampItemValues(123456789),
@@ -148,23 +148,23 @@ abstract class FeedResourceTestBase extends EntityResourceTestBase {
return [
'title' => [
[
- 'value' => 'Feed Resource Post Test'
- ]
+ 'value' => 'Feed Resource Post Test',
+ ],
],
'url' => [
[
- 'value' => 'http://example.com/feed'
- ]
+ 'value' => 'http://example.com/feed',
+ ],
],
'refresh' => [
[
- 'value' => 900
- ]
+ 'value' => 900,
+ ],
],
'description' => [
[
- 'value' => 'Feed Resource Post Test Description'
- ]
+ 'value' => 'Feed Resource Post Test Description',
+ ],
],
];
}
diff --git a/core/modules/rest/tests/src/Functional/EntityResource/Term/TermResourceTestBase.php b/core/modules/rest/tests/src/Functional/EntityResource/Term/TermResourceTestBase.php
index ce60904..5720dac 100644
--- a/core/modules/rest/tests/src/Functional/EntityResource/Term/TermResourceTestBase.php
+++ b/core/modules/rest/tests/src/Functional/EntityResource/Term/TermResourceTestBase.php
@@ -334,16 +334,16 @@ abstract class TermResourceTestBase extends EntityResourceTestBase {
public function providerTestGetTermWithParent() {
return [
'root parent: [0] (= no parent)' => [
- [0]
+ [0],
],
'non-root parent: [2]' => [
- [2]
+ [2],
],
'multiple parents: [0,2] (root + non-root parent)' => [
- [0, 2]
+ [0, 2],
],
'multiple parents: [3,2] (both non-root parents)' => [
- [3, 2]
+ [3, 2],
],
];
}
diff --git a/core/modules/rest/tests/src/Functional/ResourceTest.php b/core/modules/rest/tests/src/Functional/ResourceTest.php
index 1e8babe..d04b990 100644
--- a/core/modules/rest/tests/src/Functional/ResourceTest.php
+++ b/core/modules/rest/tests/src/Functional/ResourceTest.php
@@ -121,7 +121,7 @@ class ResourceTest extends BrowserTestBase {
],
'supported_auth' => [
'cookie',
- ]
+ ],
],
],
])->save();
diff --git a/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php b/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php
index 6de1ec9..b60eb0c 100644
--- a/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php
+++ b/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php
@@ -296,7 +296,7 @@ class StyleSerializerTest extends ViewTestBase {
'entity_test:7',
'entity_test:8',
'entity_test:9',
- 'entity_test_list'
+ 'entity_test_list',
];
$cache_contexts = [
'entity_test_view_grants',
diff --git a/core/modules/rest/tests/src/Kernel/Entity/ConfigDependenciesTest.php b/core/modules/rest/tests/src/Kernel/Entity/ConfigDependenciesTest.php
index c885990..500f375 100644
--- a/core/modules/rest/tests/src/Kernel/Entity/ConfigDependenciesTest.php
+++ b/core/modules/rest/tests/src/Kernel/Entity/ConfigDependenciesTest.php
@@ -239,7 +239,7 @@ class ConfigDependenciesTest extends KernelTestBase {
'methods' => ['GET', 'POST'],
'formats' => ['json'],
'authentication' => ['cookie', 'basic_auth'],
- ]
+ ],
],
'resource with only HAL+JSON format' => [
[
@@ -252,7 +252,7 @@ class ConfigDependenciesTest extends KernelTestBase {
],
],
'hal',
- FALSE
+ FALSE,
],
'resource with multiple authentication providers' => [
[
@@ -269,7 +269,7 @@ class ConfigDependenciesTest extends KernelTestBase {
'methods' => ['GET', 'POST'],
'formats' => ['json', 'hal_json'],
'authentication' => ['cookie'],
- ]
+ ],
],
'resource with only basic_auth authentication' => [
[
diff --git a/core/modules/search/search.module b/core/modules/search/search.module
index d2560df..c7707fd 100644
--- a/core/modules/search/search.module
+++ b/core/modules/search/search.module
@@ -797,7 +797,7 @@ function search_excerpt($keys, $text, $langcode = NULL) {
$text = trim(preg_replace('/' . $preceded_by_boundary . '(?:' . implode('|', $keys) . ')' . $followed_by_boundary . '/iu', '<strong>\0</strong>', ' ' . $text . ' '));
return [
'#markup' => $text,
- '#allowed_tags' => ['strong']
+ '#allowed_tags' => ['strong'],
];
}
diff --git a/core/modules/search/src/SearchPageListBuilder.php b/core/modules/search/src/SearchPageListBuilder.php
index 9442b69..bde195e 100644
--- a/core/modules/search/src/SearchPageListBuilder.php
+++ b/core/modules/search/src/SearchPageListBuilder.php
@@ -157,7 +157,7 @@ class SearchPageListBuilder extends DraggableListBuilder implements FormInterfac
$status = $entity->getPlugin()->indexStatus();
$row['progress']['#markup'] = $this->t('%num_indexed of %num_total indexed', [
'%num_indexed' => $status['total'] - $status['remaining'],
- '%num_total' => $status['total']
+ '%num_total' => $status['total'],
]);
}
else {
@@ -227,7 +227,7 @@ class SearchPageListBuilder extends DraggableListBuilder implements FormInterfac
'#open' => TRUE,
];
$form['indexing_settings']['info'] = [
- '#markup' => $this->t("<p>Search pages that use an index may use the default index provided by the Search module, or they may use a different indexing mechanism. These settings are for the default index. <em>Changing these settings will cause the default search index to be rebuilt to reflect the new settings. Searching will continue to work, based on the existing index, but new content won't be indexed until all existing content has been re-indexed.</em></p><p><em>The default settings should be appropriate for the majority of sites.</em></p>")
+ '#markup' => $this->t("<p>Search pages that use an index may use the default index provided by the Search module, or they may use a different indexing mechanism. These settings are for the default index. <em>Changing these settings will cause the default search index to be rebuilt to reflect the new settings. Searching will continue to work, based on the existing index, but new content won't be indexed until all existing content has been re-indexed.</em></p><p><em>The default settings should be appropriate for the majority of sites.</em></p>"),
];
$form['indexing_settings']['minimum_word_size'] = [
'#type' => 'number',
@@ -241,7 +241,7 @@ class SearchPageListBuilder extends DraggableListBuilder implements FormInterfac
'#type' => 'checkbox',
'#title' => $this->t('Simple CJK handling'),
'#default_value' => $search_settings->get('index.overlap_cjk'),
- '#description' => $this->t('Whether to apply a simple Chinese/Japanese/Korean tokenizer based on overlapping sequences. Turn this off if you want to use an external preprocessor for this instead. Does not affect other languages.')
+ '#description' => $this->t('Whether to apply a simple Chinese/Japanese/Korean tokenizer based on overlapping sequences. Turn this off if you want to use an external preprocessor for this instead. Does not affect other languages.'),
];
// Indexing settings:
diff --git a/core/modules/search/src/Tests/SearchPageCacheTagsTest.php b/core/modules/search/src/Tests/SearchPageCacheTagsTest.php
index 55adf97..0ea0e94 100644
--- a/core/modules/search/src/Tests/SearchPageCacheTagsTest.php
+++ b/core/modules/search/src/Tests/SearchPageCacheTagsTest.php
@@ -153,7 +153,7 @@ class SearchPageCacheTagsTest extends SearchTestBase {
// reference field.
$edit = [
'title[0][value]' => 'Llama shop',
- 'field_test__ref[0][target_id]' => $this->node->getTitle()
+ 'field_test__ref[0][target_id]' => $this->node->getTitle(),
];
$this->drupalPostForm('node/add/' . $type->id(), $edit, t('Save'));
diff --git a/core/modules/search/tests/src/Kernel/SearchMatchTest.php b/core/modules/search/tests/src/Kernel/SearchMatchTest.php
index 7037646..e9d2ac8 100644
--- a/core/modules/search/tests/src/Kernel/SearchMatchTest.php
+++ b/core/modules/search/tests/src/Kernel/SearchMatchTest.php
@@ -156,7 +156,7 @@ class SearchMatchTest extends KernelTestBase {
'"am minim veniam" -"cillum dolore"' => [5, 6],
'"am minim veniam" -"dolore cillum"' => [5, 6, 7],
'xxxxx "minim am veniam es" OR dolore' => [],
- 'xx "minim am veniam es" OR dolore' => []
+ 'xx "minim am veniam es" OR dolore' => [],
];
foreach ($queries as $query => $results) {
$result = db_select('search_index', 'i')
diff --git a/core/modules/shortcut/tests/src/Functional/ShortcutTranslationUITest.php b/core/modules/shortcut/tests/src/Functional/ShortcutTranslationUITest.php
index a1e01e6..5861d99 100644
--- a/core/modules/shortcut/tests/src/Functional/ShortcutTranslationUITest.php
+++ b/core/modules/shortcut/tests/src/Functional/ShortcutTranslationUITest.php
@@ -28,7 +28,7 @@ class ShortcutTranslationUITest extends ContentTranslationUITestBase {
'content_translation',
'link',
'shortcut',
- 'toolbar'
+ 'toolbar',
];
/**
diff --git a/core/modules/shortcut/tests/src/Kernel/Plugin/migrate/source/d7/ShortcutTest.php b/core/modules/shortcut/tests/src/Kernel/Plugin/migrate/source/d7/ShortcutTest.php
index 9f8fd3a..4435e81 100644
--- a/core/modules/shortcut/tests/src/Kernel/Plugin/migrate/source/d7/ShortcutTest.php
+++ b/core/modules/shortcut/tests/src/Kernel/Plugin/migrate/source/d7/ShortcutTest.php
@@ -52,7 +52,7 @@ class ShortcutTest extends MigrateSqlSourceTestBase {
'p8' => '0',
'p9' => '0',
'updated' => '0',
- ]
+ ],
];
// The expected results.
diff --git a/core/modules/simpletest/src/Form/SimpletestResultsForm.php b/core/modules/simpletest/src/Form/SimpletestResultsForm.php
index f24727c..a224157 100644
--- a/core/modules/simpletest/src/Form/SimpletestResultsForm.php
+++ b/core/modules/simpletest/src/Form/SimpletestResultsForm.php
@@ -290,7 +290,7 @@ class SimpletestResultsForm extends FormBase {
'Filename',
'Line',
'Function',
- ['colspan' => 2, 'data' => 'Status']
+ ['colspan' => 2, 'data' => 'Status'],
];
$form['result']['results'] = [];
foreach ($test_results as $group => $assertions) {
diff --git a/core/modules/simpletest/src/Tests/KernelTestBaseTest.php b/core/modules/simpletest/src/Tests/KernelTestBaseTest.php
index 1e9e75d..7131041 100644
--- a/core/modules/simpletest/src/Tests/KernelTestBaseTest.php
+++ b/core/modules/simpletest/src/Tests/KernelTestBaseTest.php
@@ -278,7 +278,7 @@ EOS;
$field_storage = FieldStorageConfig::create([
'field_name' => 'test_field',
'entity_type' => 'entity_test',
- 'type' => 'test_field'
+ 'type' => 'test_field',
]);
$field_storage->save();
FieldConfig::create([
@@ -354,7 +354,7 @@ EOS;
$info = Database::getConnectionInfo();
$connection->query('ATTACH DATABASE :database AS :prefix', [
':database' => $info['default']['database'] . '-' . $this->databasePrefix,
- ':prefix' => $this->databasePrefix
+ ':prefix' => $this->databasePrefix,
]);
$result = $connection->query("SELECT name FROM " . $this->databasePrefix . ".sqlite_master WHERE type = :type AND name LIKE :table_name AND name NOT LIKE :pattern", [
diff --git a/core/modules/simpletest/src/Tests/MissingCheckedRequirementsTest.php b/core/modules/simpletest/src/Tests/MissingCheckedRequirementsTest.php
index d62cc48..d6fe199 100644
--- a/core/modules/simpletest/src/Tests/MissingCheckedRequirementsTest.php
+++ b/core/modules/simpletest/src/Tests/MissingCheckedRequirementsTest.php
@@ -30,7 +30,7 @@ class MissingCheckedRequirementsTest extends WebTestBase {
protected function checkRequirements() {
if ($this->isInChildSite()) {
return [
- 'Test is not allowed to run.'
+ 'Test is not allowed to run.',
];
}
return parent::checkRequirements();
diff --git a/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php b/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php
index bb9da94..957391d 100644
--- a/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php
+++ b/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php
@@ -59,7 +59,7 @@ class SimpleTestBrowserTest extends WebTestBase {
$this->maximumRedirects = 1;
$edit = [
'name' => $user->getUsername(),
- 'pass' => $user->pass_raw
+ 'pass' => $user->pass_raw,
];
$this->drupalPostForm('user/login', $edit, t('Log in'), [
'query' => ['destination' => 'user/logout'],
diff --git a/core/modules/simpletest/src/WebTestBase.php b/core/modules/simpletest/src/WebTestBase.php
index ab2e5e2..83cf00e 100644
--- a/core/modules/simpletest/src/WebTestBase.php
+++ b/core/modules/simpletest/src/WebTestBase.php
@@ -286,7 +286,7 @@ abstract class WebTestBase extends TestBase {
$edit = [
'name' => $account->getUsername(),
- 'pass' => $account->pass_raw
+ 'pass' => $account->pass_raw,
];
$this->drupalPostForm('user/login', $edit, t('Log in'));
@@ -660,7 +660,7 @@ abstract class WebTestBase extends TestBase {
'@method' => !empty($curl_options[CURLOPT_NOBODY]) ? 'HEAD' : (empty($curl_options[CURLOPT_POSTFIELDS]) ? 'GET' : 'POST'),
'@url' => isset($original_url) ? $original_url : $url,
'@status' => $status,
- '@length' => format_size(strlen($this->getRawContent()))
+ '@length' => format_size(strlen($this->getRawContent())),
];
$message = new FormattableMarkup('@method @url returned @status (@length).', $message_vars);
$this->assertTrue($this->getRawContent() !== FALSE, $message, 'Browser');
diff --git a/core/modules/statistics/src/Plugin/Block/StatisticsPopularBlock.php b/core/modules/statistics/src/Plugin/Block/StatisticsPopularBlock.php
index f0ac482..efdb72a 100644
--- a/core/modules/statistics/src/Plugin/Block/StatisticsPopularBlock.php
+++ b/core/modules/statistics/src/Plugin/Block/StatisticsPopularBlock.php
@@ -95,7 +95,7 @@ class StatisticsPopularBlock extends BlockBase implements ContainerFactoryPlugin
return [
'top_day_num' => 0,
'top_all_num' => 0,
- 'top_last_num' => 0
+ 'top_last_num' => 0,
];
}
diff --git a/core/modules/statistics/tests/src/Functional/StatisticsAttachedTest.php b/core/modules/statistics/tests/src/Functional/StatisticsAttachedTest.php
index 787c35b..90a6209 100644
--- a/core/modules/statistics/tests/src/Functional/StatisticsAttachedTest.php
+++ b/core/modules/statistics/tests/src/Functional/StatisticsAttachedTest.php
@@ -46,7 +46,7 @@ class StatisticsAttachedTest extends BrowserTestBase {
$node = Node::create([
'type' => 'page',
'title' => 'Page node',
- 'body' => 'body text'
+ 'body' => 'body text',
]);
$node->save();
$this->drupalGet('node/' . $node->id());
diff --git a/core/modules/system/src/Controller/DbUpdateController.php b/core/modules/system/src/Controller/DbUpdateController.php
index 214e28d..25a2a70 100644
--- a/core/modules/system/src/Controller/DbUpdateController.php
+++ b/core/modules/system/src/Controller/DbUpdateController.php
@@ -524,7 +524,7 @@ class DbUpdateController extends ControllerBase {
$build['status_report'] = [
'#type' => 'status_report',
'#requirements' => $requirements,
- '#suffix' => $this->t('Check the messages and <a href=":url">try again</a>.', [':url' => $try_again_url])
+ '#suffix' => $this->t('Check the messages and <a href=":url">try again</a>.', [':url' => $try_again_url]),
];
$build['#title'] = $this->t('Requirements problem');
diff --git a/core/modules/system/src/Form/PrepareModulesEntityUninstallForm.php b/core/modules/system/src/Form/PrepareModulesEntityUninstallForm.php
index 8641cbc..8531653 100644
--- a/core/modules/system/src/Form/PrepareModulesEntityUninstallForm.php
+++ b/core/modules/system/src/Form/PrepareModulesEntityUninstallForm.php
@@ -159,7 +159,7 @@ class PrepareModulesEntityUninstallForm extends ConfirmFormBase {
'@entity_type_singular' => $entity_type->getSingularLabel(),
'@entity_type_plural' => $entity_type->getPluralLabel(),
]
- )
+ ),
];
}
diff --git a/core/modules/system/src/Form/RegionalForm.php b/core/modules/system/src/Form/RegionalForm.php
index 9ade938..ccd880a 100644
--- a/core/modules/system/src/Form/RegionalForm.php
+++ b/core/modules/system/src/Form/RegionalForm.php
@@ -125,7 +125,7 @@ class RegionalForm extends ConfigFormBase {
'#type' => 'checkbox',
'#title' => t('Remind users at login if their time zone is not set'),
'#default_value' => $system_date->get('timezone.user.warn'),
- '#description' => t('Only applied if users may set their own time zone.')
+ '#description' => t('Only applied if users may set their own time zone.'),
];
$form['timezone']['configurable_timezones_wrapper']['user_default_timezone'] = [
@@ -137,7 +137,7 @@ class RegionalForm extends ConfigFormBase {
DRUPAL_USER_TIMEZONE_EMPTY => t('Empty time zone'),
DRUPAL_USER_TIMEZONE_SELECT => t('Users may set their own time zone at registration'),
],
- '#description' => t('Only applied if users may set their own time zone.')
+ '#description' => t('Only applied if users may set their own time zone.'),
];
return parent::buildForm($form, $form_state);
diff --git a/core/modules/system/src/Form/RssFeedsForm.php b/core/modules/system/src/Form/RssFeedsForm.php
index d7508e6..95c7b42 100644
--- a/core/modules/system/src/Form/RssFeedsForm.php
+++ b/core/modules/system/src/Form/RssFeedsForm.php
@@ -35,7 +35,7 @@ class RssFeedsForm extends ConfigFormBase {
'#type' => 'textarea',
'#title' => t('Feed description'),
'#default_value' => $rss_config->get('channel.description'),
- '#description' => t('Description of your site, included in each feed.')
+ '#description' => t('Description of your site, included in each feed.'),
];
$options = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30];
$form['feed_default_items'] = [
@@ -43,7 +43,7 @@ class RssFeedsForm extends ConfigFormBase {
'#title' => t('Number of items in each feed'),
'#default_value' => $rss_config->get('items.limit'),
'#options' => array_combine($options, $options),
- '#description' => t('Default number of items to include in each feed.')
+ '#description' => t('Default number of items to include in each feed.'),
];
$form['feed_view_mode'] = [
'#type' => 'select',
@@ -54,7 +54,7 @@ class RssFeedsForm extends ConfigFormBase {
'teaser' => t('Titles plus teaser'),
'fulltext' => t('Full text'),
],
- '#description' => t('Global setting for the default display of content items in each feed.')
+ '#description' => t('Global setting for the default display of content items in each feed.'),
];
return parent::buildForm($form, $form_state);
diff --git a/core/modules/system/src/Form/ThemeSettingsForm.php b/core/modules/system/src/Form/ThemeSettingsForm.php
index aeecb98..907e5ce 100644
--- a/core/modules/system/src/Form/ThemeSettingsForm.php
+++ b/core/modules/system/src/Form/ThemeSettingsForm.php
@@ -136,11 +136,11 @@ class ThemeSettingsForm extends ConfigFormBase {
$form['var'] = [
'#type' => 'hidden',
- '#value' => $var
+ '#value' => $var,
];
$form['config_key'] = [
'#type' => 'hidden',
- '#value' => $config_key
+ '#value' => $config_key,
];
// Toggle settings
diff --git a/core/modules/system/src/Tests/Ajax/DialogTest.php b/core/modules/system/src/Tests/Ajax/DialogTest.php
index 90c548b..76ab6fb 100644
--- a/core/modules/system/src/Tests/Ajax/DialogTest.php
+++ b/core/modules/system/src/Tests/Ajax/DialogTest.php
@@ -114,7 +114,7 @@ class DialogTest extends AjaxTestBase {
], [], 'ajax-test/dialog-contents', ['query' => [MainContentViewSubscriber::WRAPPER_FORMAT => 'drupal_dialog']], [], NULL, [
'submit' => [
'dialogOptions[target]' => 'ajax-test-dialog-wrapper-1',
- ]
+ ],
]);
$this->assertEqual($normal_expected_response, $ajax_result[3], 'Normal dialog JSON response matches.');
@@ -126,7 +126,7 @@ class DialogTest extends AjaxTestBase {
'textfield' => 'test',
], [], 'ajax-test/dialog-contents', ['query' => [MainContentViewSubscriber::WRAPPER_FORMAT => 'drupal_dialog']], [], NULL, [
// Don't send a target.
- 'submit' => []
+ 'submit' => [],
]);
// Make sure the selector ID starts with the right string.
$this->assert(strpos($ajax_result[3]['selector'], $no_target_expected_response['selector']) === 0, 'Selector starts with right string.');
diff --git a/core/modules/system/src/Tests/Common/SimpleTestErrorCollectorTest.php b/core/modules/system/src/Tests/Common/SimpleTestErrorCollectorTest.php
index 9af773b..5ad960a 100644
--- a/core/modules/system/src/Tests/Common/SimpleTestErrorCollectorTest.php
+++ b/core/modules/system/src/Tests/Common/SimpleTestErrorCollectorTest.php
@@ -74,7 +74,7 @@ class SimpleTestErrorCollectorTest extends WebTestBase {
$this->collectedErrors[] = [
'message' => $message,
'group' => $group,
- 'caller' => $caller
+ 'caller' => $caller,
];
}
}
diff --git a/core/modules/system/src/Tests/Path/UrlAliasFixtures.php b/core/modules/system/src/Tests/Path/UrlAliasFixtures.php
index bb57c31..41fd896 100644
--- a/core/modules/system/src/Tests/Path/UrlAliasFixtures.php
+++ b/core/modules/system/src/Tests/Path/UrlAliasFixtures.php
@@ -51,23 +51,23 @@ class UrlAliasFixtures {
[
'source' => '/node/1',
'alias' => '/alias_for_node_1_en',
- 'langcode' => 'en'
+ 'langcode' => 'en',
],
[
'source' => '/node/2',
'alias' => '/alias_for_node_2_en',
- 'langcode' => 'en'
+ 'langcode' => 'en',
],
[
'source' => '/node/1',
'alias' => '/alias_for_node_1_fr',
- 'langcode' => 'fr'
+ 'langcode' => 'fr',
],
[
'source' => '/node/1',
'alias' => '/alias_for_node_1_und',
- 'langcode' => 'und'
- ]
+ 'langcode' => 'und',
+ ],
];
}
diff --git a/core/modules/system/src/Tests/Session/SessionTest.php b/core/modules/system/src/Tests/Session/SessionTest.php
index 1be9561..0f219c5 100644
--- a/core/modules/system/src/Tests/Session/SessionTest.php
+++ b/core/modules/system/src/Tests/Session/SessionTest.php
@@ -57,7 +57,7 @@ class SessionTest extends WebTestBase {
// session_test_user_login() which breaks a normal assertion.
$edit = [
'name' => $user->getUsername(),
- 'pass' => $user->pass_raw
+ 'pass' => $user->pass_raw,
];
$this->drupalPostForm('user/login', $edit, t('Log in'));
$this->drupalGet('user');
diff --git a/core/modules/system/src/Tests/System/HtaccessTest.php b/core/modules/system/src/Tests/System/HtaccessTest.php
index fab7a37..ab1840c 100644
--- a/core/modules/system/src/Tests/System/HtaccessTest.php
+++ b/core/modules/system/src/Tests/System/HtaccessTest.php
@@ -75,7 +75,7 @@ class HtaccessTest extends WebTestBase {
// Test extensions that should be permitted.
$file_exts_to_allow = [
- 'php-info.txt'
+ 'php-info.txt',
];
foreach ($file_exts_to_allow as $file_ext) {
@@ -108,7 +108,7 @@ class HtaccessTest extends WebTestBase {
$node = $this->drupalCreateNode([
'title' => 'This is a node',
'type' => $type->id(),
- 'path' => '/test.php'
+ 'path' => '/test.php',
]);
$node->save();
$this->drupalGet('test.php');
diff --git a/core/modules/system/src/Tests/Theme/FunctionsTest.php b/core/modules/system/src/Tests/Theme/FunctionsTest.php
index ca40577..6cc28fe 100644
--- a/core/modules/system/src/Tests/Theme/FunctionsTest.php
+++ b/core/modules/system/src/Tests/Theme/FunctionsTest.php
@@ -209,7 +209,7 @@ class FunctionsTest extends WebTestBase {
'url' => Url::fromRoute('router_test.1'),
'query' => [
'key' => 'value',
- ]
+ ],
],
];
@@ -330,7 +330,7 @@ class FunctionsTest extends WebTestBase {
'url' => Url::fromRoute('router_test.1'),
'query' => [
'key' => 'value',
- ]
+ ],
],
];
diff --git a/core/modules/system/src/Tests/Theme/TwigTransTest.php b/core/modules/system/src/Tests/Theme/TwigTransTest.php
index b73cdaf..5cd34b6 100644
--- a/core/modules/system/src/Tests/Theme/TwigTransTest.php
+++ b/core/modules/system/src/Tests/Theme/TwigTransTest.php
@@ -21,7 +21,7 @@ class TwigTransTest extends WebTestBase {
'theme_test',
'twig_theme_test',
'locale',
- 'language'
+ 'language',
];
/**
@@ -56,7 +56,7 @@ class TwigTransTest extends WebTestBase {
'administer languages',
'access administration pages',
'administer site configuration',
- 'translate interface'
+ 'translate interface',
]);
$this->drupalLogin($this->adminUser);
diff --git a/core/modules/system/system.api.php b/core/modules/system/system.api.php
index 7951ecd..ca1e02c 100644
--- a/core/modules/system/system.api.php
+++ b/core/modules/system/system.api.php
@@ -27,7 +27,7 @@ function hook_system_themes_page_alter(&$theme_groups) {
$theme->operations[] = [
'title' => t('Foo'),
'url' => Url::fromRoute('system.themes_page'),
- 'query' => ['theme' => $theme->getName()]
+ 'query' => ['theme' => $theme->getName()],
];
}
}
diff --git a/core/modules/system/system.install b/core/modules/system/system.install
index a7f9645..2ab05c5 100644
--- a/core/modules/system/system.install
+++ b/core/modules/system/system.install
@@ -51,10 +51,10 @@ function system_requirements($phase) {
'value' => t('%profile_name (%profile-%version)', [
'%profile_name' => $info['name'],
'%profile' => $profile,
- '%version' => $info['version']
+ '%version' => $info['version'],
]),
'severity' => REQUIREMENT_INFO,
- 'weight' => -9
+ 'weight' => -9,
];
}
diff --git a/core/modules/system/tests/fixtures/update/drupal-8.block-context-manager-2354889.php b/core/modules/system/tests/fixtures/update/drupal-8.block-context-manager-2354889.php
index cb35676..c19c6bb 100644
--- a/core/modules/system/tests/fixtures/update/drupal-8.block-context-manager-2354889.php
+++ b/core/modules/system/tests/fixtures/update/drupal-8.block-context-manager-2354889.php
@@ -47,7 +47,7 @@ $existing_blocks = unserialize($existing_blocks);
$connection->update('key_value')
->fields([
- 'value' => serialize(array_merge($existing_blocks, ['block.block.testfor2354889', 'block.block.secondtestfor2354889', 'block.block.thirdtestfor2354889']))
+ 'value' => serialize(array_merge($existing_blocks, ['block.block.testfor2354889', 'block.block.secondtestfor2354889', 'block.block.thirdtestfor2354889'])),
])
->condition('collection', 'config.entity.key_store.block')
->condition('name', 'theme:bartik')
diff --git a/core/modules/system/tests/fixtures/update/drupal-8.local-actions-tasks-into-blocks-507488.php b/core/modules/system/tests/fixtures/update/drupal-8.local-actions-tasks-into-blocks-507488.php
index 6cf44b1..0fa97e4 100644
--- a/core/modules/system/tests/fixtures/update/drupal-8.local-actions-tasks-into-blocks-507488.php
+++ b/core/modules/system/tests/fixtures/update/drupal-8.local-actions-tasks-into-blocks-507488.php
@@ -40,7 +40,7 @@ $existing_blocks = unserialize($existing_blocks);
$connection->update('key_value')
->fields([
- 'value' => serialize(array_merge($existing_blocks, ['block.block.seven_local_actions']))
+ 'value' => serialize(array_merge($existing_blocks, ['block.block.seven_local_actions'])),
])
->condition('collection', 'config.entity.key_store.block')
->condition('name', 'theme:seven')
@@ -55,7 +55,7 @@ $extensions = $connection->select('config')
$extensions = unserialize($extensions);
$connection->update('config')
->fields([
- 'data' => serialize(array_merge_recursive($extensions, ['theme' => ['test_theme' => 0]]))
+ 'data' => serialize(array_merge_recursive($extensions, ['theme' => ['test_theme' => 0]])),
])
->condition('name', 'core.extension')
->execute();
diff --git a/core/modules/system/tests/fixtures/update/drupal-8.page-title-into-block-2476947.php b/core/modules/system/tests/fixtures/update/drupal-8.page-title-into-block-2476947.php
index 766e9a6..b51dbe8 100644
--- a/core/modules/system/tests/fixtures/update/drupal-8.page-title-into-block-2476947.php
+++ b/core/modules/system/tests/fixtures/update/drupal-8.page-title-into-block-2476947.php
@@ -40,7 +40,7 @@ $existing_blocks = unserialize($existing_blocks);
$connection->update('key_value')
->fields([
- 'value' => serialize(array_merge($existing_blocks, ['block.block.bartik_page_title']))
+ 'value' => serialize(array_merge($existing_blocks, ['block.block.bartik_page_title'])),
])
->condition('collection', 'config.entity.key_store.block')
->condition('name', 'theme:bartik')
@@ -55,7 +55,7 @@ $extensions = $connection->select('config')
$extensions = unserialize($extensions);
$connection->update('config')
->fields([
- 'data' => serialize(array_merge_recursive($extensions, ['theme' => ['test_theme' => 0]]))
+ 'data' => serialize(array_merge_recursive($extensions, ['theme' => ['test_theme' => 0]])),
])
->condition('name', 'core.extension')
->execute();
diff --git a/core/modules/system/tests/fixtures/update/drupal-8.seven-secondary-local-tasks-block-2569529.php b/core/modules/system/tests/fixtures/update/drupal-8.seven-secondary-local-tasks-block-2569529.php
index 63582dc..97c1b7b 100644
--- a/core/modules/system/tests/fixtures/update/drupal-8.seven-secondary-local-tasks-block-2569529.php
+++ b/core/modules/system/tests/fixtures/update/drupal-8.seven-secondary-local-tasks-block-2569529.php
@@ -40,7 +40,7 @@ $existing_blocks = unserialize($existing_blocks);
$connection->update('key_value')
->fields([
- 'value' => serialize(array_merge($existing_blocks, ['block.block.seven_secondary_local_tasks']))
+ 'value' => serialize(array_merge($existing_blocks, ['block.block.seven_secondary_local_tasks'])),
])
->condition('collection', 'config.entity.key_store.block')
->condition('name', 'theme:seven')
diff --git a/core/modules/system/tests/fixtures/update/drupal-8.site-branding-into-block-2005546.php b/core/modules/system/tests/fixtures/update/drupal-8.site-branding-into-block-2005546.php
index cd59372..050dd38 100644
--- a/core/modules/system/tests/fixtures/update/drupal-8.site-branding-into-block-2005546.php
+++ b/core/modules/system/tests/fixtures/update/drupal-8.site-branding-into-block-2005546.php
@@ -40,7 +40,7 @@ $existing_blocks = unserialize($existing_blocks);
$connection->update('key_value')
->fields([
- 'value' => serialize(array_merge($existing_blocks, ['block.block.bartik_branding']))
+ 'value' => serialize(array_merge($existing_blocks, ['block.block.bartik_branding'])),
])
->condition('collection', 'config.entity.key_store.block')
->condition('name', 'theme:bartik')
@@ -55,7 +55,7 @@ $extensions = $connection->select('config')
$extensions = unserialize($extensions);
$connection->update('config')
->fields([
- 'data' => serialize(array_merge_recursive($extensions, ['theme' => ['test_theme' => 0]]))
+ 'data' => serialize(array_merge_recursive($extensions, ['theme' => ['test_theme' => 0]])),
])
->condition('name', 'core.extension')
->execute();
diff --git a/core/modules/system/tests/fixtures/update/drupal-8.stable-base-theme-2575421.php b/core/modules/system/tests/fixtures/update/drupal-8.stable-base-theme-2575421.php
index 7b658b4..537ecf1 100644
--- a/core/modules/system/tests/fixtures/update/drupal-8.stable-base-theme-2575421.php
+++ b/core/modules/system/tests/fixtures/update/drupal-8.stable-base-theme-2575421.php
@@ -19,7 +19,7 @@ $extensions = $connection->select('config')
$extensions = unserialize($extensions);
$connection->update('config')
->fields([
- 'data' => serialize(array_merge_recursive($extensions, ['theme' => ['test_stable' => 0]]))
+ 'data' => serialize(array_merge_recursive($extensions, ['theme' => ['test_stable' => 0]])),
])
->condition('name', 'core.extension')
->execute();
diff --git a/core/modules/system/tests/fixtures/update/drupal-8.update-test-block-disabled-2513534.php b/core/modules/system/tests/fixtures/update/drupal-8.update-test-block-disabled-2513534.php
index fa39447..cf5f9df 100644
--- a/core/modules/system/tests/fixtures/update/drupal-8.update-test-block-disabled-2513534.php
+++ b/core/modules/system/tests/fixtures/update/drupal-8.update-test-block-disabled-2513534.php
@@ -43,7 +43,7 @@ $existing_blocks = unserialize($existing_blocks);
$connection->update('key_value')
->fields([
- 'value' => serialize(array_merge($existing_blocks, ['block.block.testfor2513534', 'block.block.secondtestfor2513534']))
+ 'value' => serialize(array_merge($existing_blocks, ['block.block.testfor2513534', 'block.block.secondtestfor2513534'])),
])
->condition('collection', 'config.entity.key_store.block')
->condition('name', 'theme:bartik')
diff --git a/core/modules/system/tests/modules/ajax_test/src/Controller/AjaxTestController.php b/core/modules/system/tests/modules/ajax_test/src/Controller/AjaxTestController.php
index 5ba65e8..a34d288 100644
--- a/core/modules/system/tests/modules/ajax_test/src/Controller/AjaxTestController.php
+++ b/core/modules/system/tests/modules/ajax_test/src/Controller/AjaxTestController.php
@@ -139,7 +139,7 @@ class AjaxTestController {
'data-dialog-type' => 'modal',
'data-dialog-options' => json_encode([
'width' => 400,
- ])
+ ]),
],
],
'link3' => [
@@ -151,7 +151,7 @@ class AjaxTestController {
'data-dialog-options' => json_encode([
'target' => 'ajax-test-dialog-wrapper-1',
'width' => 800,
- ])
+ ]),
],
],
'link4' => [
@@ -179,7 +179,7 @@ class AjaxTestController {
'data-dialog-options' => json_encode([
'width' => 800,
'height' => 500,
- ])
+ ]),
],
],
'link7' => [
@@ -190,7 +190,7 @@ class AjaxTestController {
'data-dialog-type' => 'dialog',
'data-dialog-options' => json_encode([
'width' => 800,
- ])
+ ]),
],
],
'link8' => [
diff --git a/core/modules/system/tests/modules/ajax_test/src/Form/AjaxTestDialogForm.php b/core/modules/system/tests/modules/ajax_test/src/Form/AjaxTestDialogForm.php
index eafe8a9..a0b6060 100644
--- a/core/modules/system/tests/modules/ajax_test/src/Form/AjaxTestDialogForm.php
+++ b/core/modules/system/tests/modules/ajax_test/src/Form/AjaxTestDialogForm.php
@@ -31,7 +31,7 @@ class AjaxTestDialogForm extends FormBase {
// to have a dummy field we can set in WebTestBase::drupalPostForm() else it won't
// submit anything.
$form['textfield'] = [
- '#type' => 'hidden'
+ '#type' => 'hidden',
];
$form['button1'] = [
'#type' => 'submit',
diff --git a/core/modules/system/tests/modules/batch_test/src/Controller/BatchTestController.php b/core/modules/system/tests/modules/batch_test/src/Controller/BatchTestController.php
index 1d34f8a..9a5951e 100644
--- a/core/modules/system/tests/modules/batch_test/src/Controller/BatchTestController.php
+++ b/core/modules/system/tests/modules/batch_test/src/Controller/BatchTestController.php
@@ -19,7 +19,7 @@ class BatchTestController {
return [
'success' => [
'#markup' => 'Redirection successful.',
- ]
+ ],
];
}
@@ -103,7 +103,7 @@ class BatchTestController {
return [
'success' => [
'#markup' => 'Got out of a programmatic batched form.',
- ]
+ ],
];
}
diff --git a/core/modules/system/tests/modules/database_test/database_test.install b/core/modules/system/tests/modules/database_test/database_test.install
index b4e3ca5..a5450b1 100644
--- a/core/modules/system/tests/modules/database_test/database_test.install
+++ b/core/modules/system/tests/modules/database_test/database_test.install
@@ -47,7 +47,7 @@ function database_test_schema() {
],
'primary key' => ['id'],
'unique keys' => [
- 'name' => ['name']
+ 'name' => ['name'],
],
'indexes' => [
'ages' => ['age'],
@@ -148,7 +148,7 @@ function database_test_schema() {
],
'blob2' => [
'description' => 'A second BLOB field.',
- 'type' => 'blob'
+ 'type' => 'blob',
],
],
'primary key' => ['id'],
@@ -212,7 +212,7 @@ function database_test_schema() {
],
'primary key' => ['id'],
'unique keys' => [
- 'name' => ['name']
+ 'name' => ['name'],
],
'indexes' => [
'ages' => ['age'],
@@ -242,7 +242,7 @@ function database_test_schema() {
],
'primary key' => ['id'],
'unique keys' => [
- 'name' => ['name']
+ 'name' => ['name'],
],
];
diff --git a/core/modules/system/tests/modules/early_rendering_controller_test/src/EarlyRenderingTestController.php b/core/modules/system/tests/modules/early_rendering_controller_test/src/EarlyRenderingTestController.php
index 9ba11b7..2a6b839 100644
--- a/core/modules/system/tests/modules/early_rendering_controller_test/src/EarlyRenderingTestController.php
+++ b/core/modules/system/tests/modules/early_rendering_controller_test/src/EarlyRenderingTestController.php
@@ -62,7 +62,7 @@ class EarlyRenderingTestController extends ControllerBase {
'#pre_render' => [function () {
$elements = $this->earlyRenderContent();
return $elements;
- }
+ },
],
];
}
diff --git a/core/modules/system/tests/modules/entity_test/entity_test.module b/core/modules/system/tests/modules/entity_test/entity_test.module
index d7dc635..f98ae10 100644
--- a/core/modules/system/tests/modules/entity_test/entity_test.module
+++ b/core/modules/system/tests/modules/entity_test/entity_test.module
@@ -306,7 +306,7 @@ function entity_test_entity_extra_field_info() {
'description' => t('An extra field on the display side, hidden by default.'),
'visible' => FALSE,
],
- ]
+ ],
];
return $extra;
diff --git a/core/modules/system/tests/modules/entity_test/src/Plugin/Field/FieldWidget/ShapeOnlyColorEditableWidget.php b/core/modules/system/tests/modules/entity_test/src/Plugin/Field/FieldWidget/ShapeOnlyColorEditableWidget.php
index ae5dd30..6283bc3 100644
--- a/core/modules/system/tests/modules/entity_test/src/Plugin/Field/FieldWidget/ShapeOnlyColorEditableWidget.php
+++ b/core/modules/system/tests/modules/entity_test/src/Plugin/Field/FieldWidget/ShapeOnlyColorEditableWidget.php
@@ -25,7 +25,7 @@ class ShapeOnlyColorEditableWidget extends WidgetBase {
public function formElement(FieldItemListInterface $items, $delta, array $element, array &$form, FormStateInterface $form_state) {
$element['shape'] = [
'#type' => 'hidden',
- '#value' => $items[$delta]->shape
+ '#value' => $items[$delta]->shape,
];
$element['color'] = [
diff --git a/core/modules/system/tests/modules/error_test/src/Controller/ErrorTestController.php b/core/modules/system/tests/modules/error_test/src/Controller/ErrorTestController.php
index dd526b8..2ba4869 100644
--- a/core/modules/system/tests/modules/error_test/src/Controller/ErrorTestController.php
+++ b/core/modules/system/tests/modules/error_test/src/Controller/ErrorTestController.php
@@ -88,7 +88,7 @@ class ErrorTestController extends ControllerBase {
'#post_render' => [
function () {
throw new \Exception('This is an exception that occurs during rendering');
- }
+ },
],
];
}
diff --git a/core/modules/system/tests/modules/form_test/src/Form/FormTestMachineNameForm.php b/core/modules/system/tests/modules/form_test/src/Form/FormTestMachineNameForm.php
index ee287f4..121cd31 100644
--- a/core/modules/system/tests/modules/form_test/src/Form/FormTestMachineNameForm.php
+++ b/core/modules/system/tests/modules/form_test/src/Form/FormTestMachineNameForm.php
@@ -33,7 +33,7 @@ class FormTestMachineNameForm extends FormBase {
'#title' => 'Machine name 1',
'#description' => 'A machine name.',
'#machine_name' => [
- 'source' => ['machine_name_1_label']
+ 'source' => ['machine_name_1_label'],
],
];
$form['machine_name_2_label'] = [
@@ -45,7 +45,7 @@ class FormTestMachineNameForm extends FormBase {
'#title' => 'Machine name 2',
'#description' => 'Another machine name.',
'#machine_name' => [
- 'source' => ['machine_name_2_label']
+ 'source' => ['machine_name_2_label'],
],
];
$form['submit'] = [
diff --git a/core/modules/system/tests/modules/js_webassert_test/src/Form/JsWebAssertTestForm.php b/core/modules/system/tests/modules/js_webassert_test/src/Form/JsWebAssertTestForm.php
index 1bc25bb..3197aa5 100644
--- a/core/modules/system/tests/modules/js_webassert_test/src/Form/JsWebAssertTestForm.php
+++ b/core/modules/system/tests/modules/js_webassert_test/src/Form/JsWebAssertTestForm.php
@@ -135,7 +135,7 @@ class JsWebAssertTestForm extends FormBase {
$form['added_link'] = [
'#title' => 'Added link',
'#type' => 'link',
- '#url' => Url::fromRoute('js_webassert_test.js_webassert_test_form')
+ '#url' => Url::fromRoute('js_webassert_test.js_webassert_test_form'),
];
return $form;
}
diff --git a/core/modules/system/tests/modules/menu_test/src/TestControllers.php b/core/modules/system/tests/modules/menu_test/src/TestControllers.php
index ca0f8d6..dafaab0 100644
--- a/core/modules/system/tests/modules/menu_test/src/TestControllers.php
+++ b/core/modules/system/tests/modules/menu_test/src/TestControllers.php
@@ -77,9 +77,9 @@ class TestControllers {
'#contextual_links' => [
'menu_test_menu' => [
'route_parameters' => ['bar' => 1],
- ]
- ]
- ]
+ ],
+ ],
+ ],
];
}
diff --git a/core/modules/system/tests/modules/pager_test/src/Controller/PagerTestController.php b/core/modules/system/tests/modules/pager_test/src/Controller/PagerTestController.php
index 3253b0c..4f1fdad 100644
--- a/core/modules/system/tests/modules/pager_test/src/Controller/PagerTestController.php
+++ b/core/modules/system/tests/modules/pager_test/src/Controller/PagerTestController.php
@@ -69,7 +69,7 @@ class PagerTestController extends ControllerBase {
],
'#pre_render' => [
'Drupal\pager_test\Controller\PagerTestController::showPagerCacheContext',
- ]
+ ],
];
return $build;
diff --git a/core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockMenuBlockDeriver.php b/core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockMenuBlockDeriver.php
index d5f6d6c..b8aedac 100644
--- a/core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockMenuBlockDeriver.php
+++ b/core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockMenuBlockDeriver.php
@@ -45,7 +45,7 @@ class MockMenuBlockDeriver implements DeriverInterface {
// Instead of the derivative label, the specific label will be used.
'label' => t('Derivative label'),
// This setting will be merged in.
- 'setting' => 'default'
+ 'setting' => 'default',
] + $base_plugin_definition,
];
diff --git a/core/modules/system/tests/modules/twig_extension_test/src/TwigExtensionTestController.php b/core/modules/system/tests/modules/twig_extension_test/src/TwigExtensionTestController.php
index c15b16d..c51d3c8 100644
--- a/core/modules/system/tests/modules/twig_extension_test/src/TwigExtensionTestController.php
+++ b/core/modules/system/tests/modules/twig_extension_test/src/TwigExtensionTestController.php
@@ -20,8 +20,8 @@ class TwigExtensionTestController {
'#safe_join_items' => [
'<em>will be escaped</em>',
$this->t('<em>will be markup</em>'),
- ['#markup' => '<strong>will be rendered</strong>']
- ]
+ ['#markup' => '<strong>will be rendered</strong>'],
+ ],
];
}
diff --git a/core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php b/core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php
index 8e1f69e..1e995c5 100644
--- a/core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php
+++ b/core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php
@@ -100,7 +100,7 @@ class TwigThemeTestController {
public function renderable() {
return [
'#theme' => 'twig_theme_test_renderable',
- '#renderable' => new ExampleRenderable()
+ '#renderable' => new ExampleRenderable(),
];
}
diff --git a/core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php b/core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php
index d2114fd..488fa6e 100644
--- a/core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php
+++ b/core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php
@@ -33,7 +33,7 @@ class DrupalDateTimeTest extends BrowserTestBase {
$options = [
'query' => [
'date' => 'Tue+Sep+17+2013+21%3A35%3A31+GMT%2B0100+(BST)#',
- ]
+ ],
];
// Query the AJAX Timezone Callback with a long-format date.
$response = $this->drupalGet('system/timezone/BST/3600/1', $options);
diff --git a/core/modules/system/tests/src/Functional/Entity/Update/MoveRevisionMetadataFieldsUpdateTest.php b/core/modules/system/tests/src/Functional/Entity/Update/MoveRevisionMetadataFieldsUpdateTest.php
index b4888db..2c501ac 100644
--- a/core/modules/system/tests/src/Functional/Entity/Update/MoveRevisionMetadataFieldsUpdateTest.php
+++ b/core/modules/system/tests/src/Functional/Entity/Update/MoveRevisionMetadataFieldsUpdateTest.php
@@ -141,7 +141,7 @@ class MoveRevisionMetadataFieldsUpdateTest extends UpdatePathTestBase {
$revision_metadata_keys = [
'revision_user' => 'revision_user',
'revision_created' => 'revision_created',
- 'revision_log_message' => 'revision_log_message'
+ 'revision_log_message' => 'revision_log_message',
];
$this->assertEquals($revision_metadata_keys, $entity_type->getRevisionMetadataKeys(TRUE));
@@ -167,7 +167,7 @@ class MoveRevisionMetadataFieldsUpdateTest extends UpdatePathTestBase {
$definition = [
'id' => 'entity_test_mul_revlog',
'revision_metadata_keys' => [
- 'revision_default' => 'revision_default'
+ 'revision_default' => 'revision_default',
],
];
$entity_type = new ContentEntityType($definition);
diff --git a/core/modules/system/tests/src/Functional/FileTransfer/FileTransferTest.php b/core/modules/system/tests/src/Functional/FileTransfer/FileTransferTest.php
index 04b1f66..a4fbb66 100644
--- a/core/modules/system/tests/src/Functional/FileTransfer/FileTransferTest.php
+++ b/core/modules/system/tests/src/Functional/FileTransfer/FileTransferTest.php
@@ -28,11 +28,11 @@ class FileTransferTest extends BrowserTestBase {
'fake.module',
'fake.info.yml',
'theme' => [
- 'fake.html.twig'
+ 'fake.html.twig',
],
'inc' => [
- 'fake.inc'
- ]
+ 'fake.inc',
+ ],
];
return $files;
}
diff --git a/core/modules/system/tests/src/Functional/Form/LanguageSelectElementTest.php b/core/modules/system/tests/src/Functional/Form/LanguageSelectElementTest.php
index 1bfa19f..2262670 100644
--- a/core/modules/system/tests/src/Functional/Form/LanguageSelectElementTest.php
+++ b/core/modules/system/tests/src/Functional/Form/LanguageSelectElementTest.php
@@ -45,7 +45,7 @@ class LanguageSelectElementTest extends BrowserTestBase {
'edit-languages-all' => LanguageInterface::STATE_ALL,
'edit-languages-configurable' => LanguageInterface::STATE_CONFIGURABLE,
'edit-languages-locked' => LanguageInterface::STATE_LOCKED,
- 'edit-languages-config-and-locked' => LanguageInterface::STATE_CONFIGURABLE | LanguageInterface::STATE_LOCKED
+ 'edit-languages-config-and-locked' => LanguageInterface::STATE_CONFIGURABLE | LanguageInterface::STATE_LOCKED,
];
foreach ($ids as $id => $flags) {
$this->assertField($id, format_string('The @id field was found on the page.', ['@id' => $id]));
diff --git a/core/modules/system/tests/src/Functional/Render/AjaxPageStateTest.php b/core/modules/system/tests/src/Functional/Render/AjaxPageStateTest.php
index 6f5dc7d..586b1c9 100644
--- a/core/modules/system/tests/src/Functional/Render/AjaxPageStateTest.php
+++ b/core/modules/system/tests/src/Functional/Render/AjaxPageStateTest.php
@@ -67,9 +67,9 @@ class AjaxPageStateTest extends BrowserTestBase {
"query" =>
[
'ajax_page_state' => [
- 'libraries' => 'core/html5shiv'
- ]
- ]
+ 'libraries' => 'core/html5shiv',
+ ],
+ ],
]
);
$this->assertNoRaw(
diff --git a/core/modules/system/tests/src/Functional/Update/RecalculatedDependencyTest.php b/core/modules/system/tests/src/Functional/Update/RecalculatedDependencyTest.php
index 6eb51a2..fd9caf5 100644
--- a/core/modules/system/tests/src/Functional/Update/RecalculatedDependencyTest.php
+++ b/core/modules/system/tests/src/Functional/Update/RecalculatedDependencyTest.php
@@ -58,7 +58,7 @@ class RecalculatedDependencyTest extends UpdatePathTestBase {
$this->assertEqual([
'field.storage.node.field_tags',
'node.type.article',
- 'taxonomy.vocabulary.tags'
+ 'taxonomy.vocabulary.tags',
], $data['dependencies']['config']);
$data = \Drupal::config('field.field.user.user.user_picture')->get();
diff --git a/core/modules/system/tests/src/Kernel/Block/SystemMenuBlockTest.php b/core/modules/system/tests/src/Kernel/Block/SystemMenuBlockTest.php
index 663bff6..7a6d668 100644
--- a/core/modules/system/tests/src/Kernel/Block/SystemMenuBlockTest.php
+++ b/core/modules/system/tests/src/Kernel/Block/SystemMenuBlockTest.php
@@ -162,13 +162,13 @@ class SystemMenuBlockTest extends KernelTestBase {
$dependencies = $block->calculateDependencies()->getDependencies();
$expected = [
'config' => [
- 'system.menu.' . $this->menu->id()
+ 'system.menu.' . $this->menu->id(),
],
'module' => [
- 'system'
+ 'system',
],
'theme' => [
- 'stark'
+ 'stark',
],
];
$this->assertIdentical($expected, $dependencies);
@@ -247,7 +247,7 @@ class SystemMenuBlockTest extends KernelTestBase {
'test.example2' => [
'test.example3' => [
'test.example4' => [],
- ]
+ ],
],
'test.example5' => [
'test.example7' => [],
diff --git a/core/modules/system/tests/src/Kernel/Form/ProgrammaticTest.php b/core/modules/system/tests/src/Kernel/Form/ProgrammaticTest.php
index 03d22af..28d056c 100644
--- a/core/modules/system/tests/src/Kernel/Form/ProgrammaticTest.php
+++ b/core/modules/system/tests/src/Kernel/Form/ProgrammaticTest.php
@@ -95,7 +95,7 @@ class ProgrammaticTest extends KernelTestBase {
public function testProgrammaticAccessBypass() {
$form_state = (new FormState())->setValues([
'textfield' => 'dummy value',
- 'field_restricted' => 'dummy value'
+ 'field_restricted' => 'dummy value',
]);
// Programmatically submit the form with a value for the restricted field.
diff --git a/core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php b/core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php
index cb7f5eb..f111d7b 100644
--- a/core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php
+++ b/core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php
@@ -35,7 +35,7 @@ class DbCommandBaseTest extends KernelTestBase {
Database::addConnectionInfo('magic_db', 'default', Database::getConnectionInfo('default')['default']);
$command_tester->execute([
- '--database' => 'magic_db'
+ '--database' => 'magic_db',
]);
$this->assertEquals('magic_db', $command->getDatabaseConnection($command_tester->getInput())->getKey(),
'Special db key is returned');
@@ -48,7 +48,7 @@ class DbCommandBaseTest extends KernelTestBase {
$command = new DbCommandBaseTester();
$command_tester = new CommandTester($command);
$command_tester->execute([
- '--database' => 'dne'
+ '--database' => 'dne',
]);
$this->setExpectedException(ConnectionNotDefinedException::class);
$command->getDatabaseConnection($command_tester->getInput());
@@ -63,13 +63,13 @@ class DbCommandBaseTest extends KernelTestBase {
$command = new DbCommandBaseTester();
$command_tester = new CommandTester($command);
$command_tester->execute([
- '-db-url' => $connection_info['driver'] . '://' . $connection_info['username'] . ':' . $connection_info['password'] . '@' . $connection_info['host'] . '/' . $connection_info['database']
+ '-db-url' => $connection_info['driver'] . '://' . $connection_info['username'] . ':' . $connection_info['password'] . '@' . $connection_info['host'] . '/' . $connection_info['database'],
]);
$this->assertEquals('db-tools', $command->getDatabaseConnection($command_tester->getInput())->getKey());
Database::removeConnection('db-tools');
$command_tester->execute([
- '--database-url' => $connection_info['driver'] . '://' . $connection_info['username'] . ':' . $connection_info['password'] . '@' . $connection_info['host'] . '/' . $connection_info['database']
+ '--database-url' => $connection_info['driver'] . '://' . $connection_info['username'] . ':' . $connection_info['password'] . '@' . $connection_info['host'] . '/' . $connection_info['database'],
]);
$this->assertEquals('db-tools', $command->getDatabaseConnection($command_tester->getInput())->getKey());
}
diff --git a/core/modules/system/tests/src/Unit/Menu/MenuLinkTreeTest.php b/core/modules/system/tests/src/Unit/Menu/MenuLinkTreeTest.php
index a3c5730..a4e5bcc 100644
--- a/core/modules/system/tests/src/Unit/Menu/MenuLinkTreeTest.php
+++ b/core/modules/system/tests/src/Unit/Menu/MenuLinkTreeTest.php
@@ -134,7 +134,7 @@ class MenuLinkTreeTest extends UnitTestCase {
'#theme' => 'menu__mock',
'#items' => [
// To be filled when generating test cases, using $get_built_element().
- ]
+ ],
];
$get_built_element = function (MenuLinkTreeElement $element) {
@@ -248,10 +248,10 @@ class MenuLinkTreeTest extends UnitTestCase {
new MenuLinkTreeElement($multi_level_root_a, TRUE, 0, FALSE, [
new MenuLinkTreeElement($multi_level_parent_c, TRUE, 0, FALSE, [
new MenuLinkTreeElement($links[0], FALSE, 0, FALSE, []),
- ])
+ ]),
]),
new MenuLinkTreeElement($multi_level_root_b, TRUE, 0, FALSE, [
- new MenuLinkTreeElement($links[1], FALSE, 1, FALSE, [])
+ new MenuLinkTreeElement($links[1], FALSE, 1, FALSE, []),
]),
];
$tree[0]->subtree[0]->subtree[0]->access = $access;
diff --git a/core/modules/taxonomy/src/Plugin/EntityReferenceSelection/TermSelection.php b/core/modules/taxonomy/src/Plugin/EntityReferenceSelection/TermSelection.php
index 9d97a55..a312111 100644
--- a/core/modules/taxonomy/src/Plugin/EntityReferenceSelection/TermSelection.php
+++ b/core/modules/taxonomy/src/Plugin/EntityReferenceSelection/TermSelection.php
@@ -28,7 +28,7 @@ class TermSelection extends DefaultSelection {
'sort' => [
'field' => 'name',
'direction' => 'asc',
- ]
+ ],
] + parent::defaultConfiguration();
}
diff --git a/core/modules/taxonomy/src/Plugin/migrate/source/d7/Vocabulary.php b/core/modules/taxonomy/src/Plugin/migrate/source/d7/Vocabulary.php
index 1859901..82048a3 100644
--- a/core/modules/taxonomy/src/Plugin/migrate/source/d7/Vocabulary.php
+++ b/core/modules/taxonomy/src/Plugin/migrate/source/d7/Vocabulary.php
@@ -43,7 +43,7 @@ class Vocabulary extends DrupalSqlBase {
'hierarchy' => $this->t('The type of hierarchy allowed within the vocabulary. (0 = disabled, 1 = single, 2 = multiple)'),
'module' => $this->t('Module responsible for the vocabulary.'),
'weight' => $this->t('The weight of the vocabulary in relation to other vocabularies.'),
- 'machine_name' => $this->t('Unique machine name of the vocabulary.')
+ 'machine_name' => $this->t('Unique machine name of the vocabulary.'),
];
}
diff --git a/core/modules/taxonomy/src/TermViewsData.php b/core/modules/taxonomy/src/TermViewsData.php
index 6d47f3f..469c3e8 100644
--- a/core/modules/taxonomy/src/TermViewsData.php
+++ b/core/modules/taxonomy/src/TermViewsData.php
@@ -61,7 +61,7 @@ class TermViewsData extends EntityViewsData {
'argument field' => 'tid',
'base' => 'node_field_data',
'field' => 'nid',
- 'relationship' => 'node_field_data:term_node_tid'
+ 'relationship' => 'node_field_data:term_node_tid',
],
];
@@ -216,7 +216,7 @@ class TermViewsData extends EntityViewsData {
'title' => $this->t('Post date'),
'help' => $this->t('The date the content related to a term was posted.'),
'sort' => [
- 'id' => 'date'
+ 'id' => 'date',
],
'filter' => [
'id' => 'date',
diff --git a/core/modules/taxonomy/src/Tests/TermAutocompleteTest.php b/core/modules/taxonomy/src/Tests/TermAutocompleteTest.php
index 00f0ee7..ce28b12 100644
--- a/core/modules/taxonomy/src/Tests/TermAutocompleteTest.php
+++ b/core/modules/taxonomy/src/Tests/TermAutocompleteTest.php
@@ -188,7 +188,7 @@ class TermAutocompleteTest extends TaxonomyTestBase {
foreach ($expectedResults as $termName) {
$expected[] = [
'value' => $termName . ' (' . $this->termIds[$termName] . ')',
- 'label' => $termName
+ 'label' => $termName,
];
}
diff --git a/core/modules/taxonomy/src/VocabularyListBuilder.php b/core/modules/taxonomy/src/VocabularyListBuilder.php
index 7ae420f..b6f6921 100644
--- a/core/modules/taxonomy/src/VocabularyListBuilder.php
+++ b/core/modules/taxonomy/src/VocabularyListBuilder.php
@@ -177,7 +177,7 @@ class VocabularyListBuilder extends DraggableListBuilder {
$this->renderer->addCacheableDependency($build['table'], $create_access);
if ($create_access->isAllowed()) {
$build['table']['#empty'] = t('No vocabularies available. <a href=":link">Add vocabulary</a>.', [
- ':link' => Url::fromRoute('entity.taxonomy_vocabulary.add_form')->toString()
+ ':link' => Url::fromRoute('entity.taxonomy_vocabulary.add_form')->toString(),
]);
}
else {
diff --git a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyIndexTidUiTest.php b/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyIndexTidUiTest.php
index 4de7370..992e5be 100644
--- a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyIndexTidUiTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyIndexTidUiTest.php
@@ -199,7 +199,7 @@ class TaxonomyIndexTidUiTest extends UITestBase {
// Select 'Term' and 'Vocabulary' as filters.
$edit = [
'name[taxonomy_term_field_data.tid]' => TRUE,
- 'name[taxonomy_term_field_data.vid]' => TRUE
+ 'name[taxonomy_term_field_data.vid]' => TRUE,
];
$this->drupalPostForm('admin/structure/views/nojs/add-handler/test_taxonomy_term_name/default/filter', $edit, 'Add and configure filter criteria');
// Select 'Empty Vocabulary' and 'Autocomplete' from the list of options.
diff --git a/core/modules/taxonomy/tests/src/Functional/VocabularyCrudTest.php b/core/modules/taxonomy/tests/src/Functional/VocabularyCrudTest.php
index f7c2f7c..7803f39 100644
--- a/core/modules/taxonomy/tests/src/Functional/VocabularyCrudTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/VocabularyCrudTest.php
@@ -148,7 +148,7 @@ class VocabularyCrudTest extends TaxonomyTestBase {
'field_name' => $field_name,
'entity_type' => 'taxonomy_term',
'type' => 'text',
- 'cardinality' => 4
+ 'cardinality' => 4,
];
FieldStorageConfig::create($storage_definition)->save();
$field_definition = [
diff --git a/core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTest.php b/core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTest.php
index 474969d..4a8b153 100644
--- a/core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTest.php
+++ b/core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTest.php
@@ -47,7 +47,7 @@ class MigrateTaxonomyTermTest extends MigrateDrupal7TestBase {
'd7_field',
'd7_taxonomy_vocabulary',
'd7_field_instance',
- 'd7_taxonomy_term'
+ 'd7_taxonomy_term',
]);
}
diff --git a/core/modules/telephone/src/Plugin/Field/FieldType/TelephoneItem.php b/core/modules/telephone/src/Plugin/Field/FieldType/TelephoneItem.php
index f2aa1cc..17fc9d5 100644
--- a/core/modules/telephone/src/Plugin/Field/FieldType/TelephoneItem.php
+++ b/core/modules/telephone/src/Plugin/Field/FieldType/TelephoneItem.php
@@ -67,7 +67,7 @@ class TelephoneItem extends FieldItemBase {
'Length' => [
'max' => $max_length,
'maxMessage' => t('%name: the telephone number may not be longer than @max characters.', ['%name' => $this->getFieldDefinition()->getLabel(), '@max' => $max_length]),
- ]
+ ],
],
]);
diff --git a/core/modules/telephone/tests/src/Functional/TelephoneFieldTest.php b/core/modules/telephone/tests/src/Functional/TelephoneFieldTest.php
index 18bedf0..75e626f 100644
--- a/core/modules/telephone/tests/src/Functional/TelephoneFieldTest.php
+++ b/core/modules/telephone/tests/src/Functional/TelephoneFieldTest.php
@@ -21,7 +21,7 @@ class TelephoneFieldTest extends BrowserTestBase {
public static $modules = [
'field',
'node',
- 'telephone'
+ 'telephone',
];
/**
diff --git a/core/modules/text/src/Plugin/Field/FieldType/TextItem.php b/core/modules/text/src/Plugin/Field/FieldType/TextItem.php
index 447a0b1..dcee583 100644
--- a/core/modules/text/src/Plugin/Field/FieldType/TextItem.php
+++ b/core/modules/text/src/Plugin/Field/FieldType/TextItem.php
@@ -62,7 +62,7 @@ class TextItem extends TextItemBase {
'Length' => [
'max' => $max_length,
'maxMessage' => t('%name: the text may not be longer than @max characters.', ['%name' => $this->getFieldDefinition()->getLabel(), '@max' => $max_length]),
- ]
+ ],
],
]);
}
diff --git a/core/modules/text/src/Tests/TextFieldTest.php b/core/modules/text/src/Tests/TextFieldTest.php
index 52286a6..ecdb0af 100644
--- a/core/modules/text/src/Tests/TextFieldTest.php
+++ b/core/modules/text/src/Tests/TextFieldTest.php
@@ -43,7 +43,7 @@ class TextFieldTest extends StringFieldTest {
'type' => 'text',
'settings' => [
'max_length' => $max_length,
- ]
+ ],
]);
$field_storage->save();
FieldConfig::create([
@@ -89,7 +89,7 @@ class TextFieldTest extends StringFieldTest {
$field_storage = FieldStorageConfig::create([
'field_name' => $file_field_name,
'entity_type' => 'entity_test',
- 'type' => 'file'
+ 'type' => 'file',
]);
$field_storage->save();
FieldConfig::create([
@@ -116,7 +116,7 @@ class TextFieldTest extends StringFieldTest {
$this->drupalPostForm('entity_test/add', $edit, 'Upload');
$this->assertResponse(200);
$edit = [
- 'text_long[0][value]' => 'Long text'
+ 'text_long[0][value]' => 'Long text',
];
$this->drupalPostForm(NULL, $edit, 'Save');
$this->assertResponse(200);
@@ -152,7 +152,7 @@ class TextFieldTest extends StringFieldTest {
$field_storage = FieldStorageConfig::create([
'field_name' => $field_name,
'entity_type' => 'entity_test',
- 'type' => $field_type
+ 'type' => $field_type,
]);
$field_storage->save();
FieldConfig::create([
diff --git a/core/modules/text/tests/src/Kernel/TextWithSummaryItemTest.php b/core/modules/text/tests/src/Kernel/TextWithSummaryItemTest.php
index 1f4a5bf..c110ba1 100644
--- a/core/modules/text/tests/src/Kernel/TextWithSummaryItemTest.php
+++ b/core/modules/text/tests/src/Kernel/TextWithSummaryItemTest.php
@@ -105,7 +105,7 @@ class TextWithSummaryItemTest extends FieldKernelTestBase {
'type' => 'text_with_summary',
'settings' => [
'max_length' => 10,
- ]
+ ],
]);
$this->fieldStorage->save();
$this->field = FieldConfig::create([
diff --git a/core/modules/text/tests/src/Unit/Migrate/TextCckTest.php b/core/modules/text/tests/src/Unit/Migrate/TextCckTest.php
index 2273c18..51ec9af 100644
--- a/core/modules/text/tests/src/Unit/Migrate/TextCckTest.php
+++ b/core/modules/text/tests/src/Unit/Migrate/TextCckTest.php
@@ -76,7 +76,7 @@ class TextCckTest extends UnitTestCase {
'widget_type' => 'optionwidgets_onoff',
'global_settings' => [
'allowed_values' => "foo\nbar",
- ]
+ ],
];
$this->plugin->processCckFieldValues($this->migration, 'field', $info);
@@ -101,7 +101,7 @@ class TextCckTest extends UnitTestCase {
'widget_type' => 'optionwidgets_onoff',
'global_settings' => [
'allowed_values' => "foo|Foo\nbaz|Baz",
- ]
+ ],
];
$this->plugin->processCckFieldValues($this->migration, 'field', $info);
diff --git a/core/modules/text/tests/src/Unit/Migrate/d6/TextFieldTest.php b/core/modules/text/tests/src/Unit/Migrate/d6/TextFieldTest.php
index 8bf5d2a..e17404e 100644
--- a/core/modules/text/tests/src/Unit/Migrate/d6/TextFieldTest.php
+++ b/core/modules/text/tests/src/Unit/Migrate/d6/TextFieldTest.php
@@ -76,7 +76,7 @@ class TextFieldTest extends UnitTestCase {
'widget_type' => 'optionwidgets_onoff',
'global_settings' => [
'allowed_values' => "foo\nbar",
- ]
+ ],
];
$this->plugin->processFieldValues($this->migration, 'field', $info);
@@ -101,7 +101,7 @@ class TextFieldTest extends UnitTestCase {
'widget_type' => 'optionwidgets_onoff',
'global_settings' => [
'allowed_values' => "foo|Foo\nbaz|Baz",
- ]
+ ],
];
$this->plugin->processFieldValues($this->migration, 'field', $info);
diff --git a/core/modules/text/tests/src/Unit/Plugin/migrate/cckfield/TextCckTest.php b/core/modules/text/tests/src/Unit/Plugin/migrate/cckfield/TextCckTest.php
index acd7790..696c34c 100644
--- a/core/modules/text/tests/src/Unit/Plugin/migrate/cckfield/TextCckTest.php
+++ b/core/modules/text/tests/src/Unit/Plugin/migrate/cckfield/TextCckTest.php
@@ -76,7 +76,7 @@ class TextCckTest extends UnitTestCase {
'widget_type' => 'optionwidgets_onoff',
'global_settings' => [
'allowed_values' => "foo\nbar",
- ]
+ ],
];
$this->plugin->processCckFieldValues($this->migration, 'field', $info);
@@ -101,7 +101,7 @@ class TextCckTest extends UnitTestCase {
'widget_type' => 'optionwidgets_onoff',
'global_settings' => [
'allowed_values' => "foo|Foo\nbaz|Baz",
- ]
+ ],
];
$this->plugin->processCckFieldValues($this->migration, 'field', $info);
diff --git a/core/modules/text/tests/src/Unit/Plugin/migrate/field/d6/TextFieldTest.php b/core/modules/text/tests/src/Unit/Plugin/migrate/field/d6/TextFieldTest.php
index b79a0b5..4cc1bad 100644
--- a/core/modules/text/tests/src/Unit/Plugin/migrate/field/d6/TextFieldTest.php
+++ b/core/modules/text/tests/src/Unit/Plugin/migrate/field/d6/TextFieldTest.php
@@ -75,7 +75,7 @@ class TextFieldTest extends UnitTestCase {
'widget_type' => 'optionwidgets_onoff',
'global_settings' => [
'allowed_values' => "foo\nbar",
- ]
+ ],
];
$this->plugin->processFieldValues($this->migration, 'field', $info);
@@ -100,7 +100,7 @@ class TextFieldTest extends UnitTestCase {
'widget_type' => 'optionwidgets_onoff',
'global_settings' => [
'allowed_values' => "foo|Foo\nbaz|Baz",
- ]
+ ],
];
$this->plugin->processFieldValues($this->migration, 'field', $info);
diff --git a/core/modules/tour/src/Tests/TourTest.php b/core/modules/tour/src/Tests/TourTest.php
index 738bae8..05d3ae6 100644
--- a/core/modules/tour/src/Tests/TourTest.php
+++ b/core/modules/tour/src/Tests/TourTest.php
@@ -66,7 +66,7 @@ class TourTest extends TourTestBase {
$this->drupalPlaceBlock('local_actions_block', [
'theme' => 'seven',
- 'region' => 'content'
+ 'region' => 'content',
]);
}
diff --git a/core/modules/tour/tests/src/Functional/TourTest.php b/core/modules/tour/tests/src/Functional/TourTest.php
index 55f3743..1db1bb8 100644
--- a/core/modules/tour/tests/src/Functional/TourTest.php
+++ b/core/modules/tour/tests/src/Functional/TourTest.php
@@ -45,7 +45,7 @@ class TourTest extends TourTestBasic {
$this->drupalPlaceBlock('local_actions_block', [
'theme' => 'seven',
- 'region' => 'content'
+ 'region' => 'content',
]);
}
@@ -130,7 +130,7 @@ class TourTest extends TourTestBasic {
'url' => 'http://local/image.png',
'weight' => 1,
'attributes' => [
- 'data-id' => 'tour-code-test-2'
+ 'data-id' => 'tour-code-test-2',
],
],
],
diff --git a/core/modules/tracker/tests/src/Functional/Views/TrackerUserUidTest.php b/core/modules/tracker/tests/src/Functional/Views/TrackerUserUidTest.php
index 7bd675b..9f2b0a7 100644
--- a/core/modules/tracker/tests/src/Functional/Views/TrackerUserUidTest.php
+++ b/core/modules/tracker/tests/src/Functional/Views/TrackerUserUidTest.php
@@ -31,7 +31,7 @@ class TrackerUserUidTest extends TrackerTestBase {
[
'nid' => $this->node->id(),
'title' => $this->node->label(),
- ]
+ ],
];
$view = Views::getView('test_tracker_user_uid');
diff --git a/core/modules/tracker/tests/src/Kernel/Plugin/migrate/source/d7/TrackerNodeTest.php b/core/modules/tracker/tests/src/Kernel/Plugin/migrate/source/d7/TrackerNodeTest.php
index 0318b8e..28d3772 100644
--- a/core/modules/tracker/tests/src/Kernel/Plugin/migrate/source/d7/TrackerNodeTest.php
+++ b/core/modules/tracker/tests/src/Kernel/Plugin/migrate/source/d7/TrackerNodeTest.php
@@ -30,7 +30,7 @@ class TrackerNodeTest extends MigrateSqlSourceTestBase {
'nid' => '2',
'published' => '1',
'changed' => '1421727536',
- ]
+ ],
];
// The expected results are identical to the source data.
diff --git a/core/modules/tracker/tests/src/Kernel/Plugin/migrate/source/d7/TrackerUserTest.php b/core/modules/tracker/tests/src/Kernel/Plugin/migrate/source/d7/TrackerUserTest.php
index ffcee93..293e559 100644
--- a/core/modules/tracker/tests/src/Kernel/Plugin/migrate/source/d7/TrackerUserTest.php
+++ b/core/modules/tracker/tests/src/Kernel/Plugin/migrate/source/d7/TrackerUserTest.php
@@ -31,7 +31,7 @@ class TrackerUserTest extends MigrateSqlSourceTestBase {
'uid' => '2',
'published' => '1',
'changed' => '1421727536',
- ]
+ ],
];
// The expected results are identical to the source data.
diff --git a/core/modules/tracker/tracker.views.inc b/core/modules/tracker/tracker.views.inc
index 5440287..be15d57 100644
--- a/core/modules/tracker/tracker.views.inc
+++ b/core/modules/tracker/tracker.views.inc
@@ -173,7 +173,7 @@ function tracker_views_data_alter(&$data) {
'field' => 'uid',
'name table' => 'users_field_data',
'name field' => 'name',
- 'id' => 'tracker_user_uid'
+ 'id' => 'tracker_user_uid',
],
];
}
diff --git a/core/modules/update/src/Controller/UpdateController.php b/core/modules/update/src/Controller/UpdateController.php
index 30b25c2..6a8ec6a 100644
--- a/core/modules/update/src/Controller/UpdateController.php
+++ b/core/modules/update/src/Controller/UpdateController.php
@@ -45,7 +45,7 @@ class UpdateController extends ControllerBase {
*/
public function updateStatus() {
$build = [
- '#theme' => 'update_report'
+ '#theme' => 'update_report',
];
if ($available = update_get_available(TRUE)) {
$this->moduleHandler()->loadInclude('update', 'compare.inc');
diff --git a/core/modules/update/src/UpdateSettingsForm.php b/core/modules/update/src/UpdateSettingsForm.php
index ac8981c..2a4e30d 100644
--- a/core/modules/update/src/UpdateSettingsForm.php
+++ b/core/modules/update/src/UpdateSettingsForm.php
@@ -95,7 +95,7 @@ class UpdateSettingsForm extends ConfigFormBase implements ContainerInjectionInt
'all' => t('All newer versions'),
'security' => t('Only security updates'),
],
- '#description' => t('You can choose to send email only if a security update is available, or to be notified about all newer versions. If there are updates available of Drupal core or any of your installed modules and themes, your site will always print a message on the <a href=":status_report">status report</a> page, and will also display an error message on administration pages if there is a security update.', [':status_report' => $this->url('system.status')])
+ '#description' => t('You can choose to send email only if a security update is available, or to be notified about all newer versions. If there are updates available of Drupal core or any of your installed modules and themes, your site will always print a message on the <a href=":status_report">status report</a> page, and will also display an error message on administration pages if there is a security update.', [':status_report' => $this->url('system.status')]),
];
return parent::buildForm($form, $form_state);
diff --git a/core/modules/update/update.authorize.inc b/core/modules/update/update.authorize.inc
index 1c2cc60..664f25f 100644
--- a/core/modules/update/update.authorize.inc
+++ b/core/modules/update/update.authorize.inc
@@ -261,7 +261,7 @@ function update_authorize_update_batch_finished($success, $results) {
'absolute' => TRUE,
'base_url' => $GLOBALS['base_url'],
],
- '#access' => $url->access(\Drupal::currentUser())
+ '#access' => $url->access(\Drupal::currentUser()),
];
// Unset the variable since it is no longer needed.
diff --git a/core/modules/update/update.report.inc b/core/modules/update/update.report.inc
index 9186463..e42093c 100644
--- a/core/modules/update/update.report.inc
+++ b/core/modules/update/update.report.inc
@@ -30,7 +30,7 @@ function template_preprocess_update_report(&$variables) {
'library' => [
'update/drupal.update.admin',
],
- ]
+ ],
];
// For no project update data, populate no data message.
@@ -230,7 +230,7 @@ function template_preprocess_update_project_status(&$variables) {
$extra_item['data'] = [
'#prefix' => '<em>',
'#markup' => $value['data'],
- '#suffix' => '</em>'
+ '#suffix' => '</em>',
];
$variables['extras'][] = $extra_item;
}
diff --git a/core/modules/user/src/AccountForm.php b/core/modules/user/src/AccountForm.php
index 9301f80..3624a9c 100644
--- a/core/modules/user/src/AccountForm.php
+++ b/core/modules/user/src/AccountForm.php
@@ -347,7 +347,7 @@ abstract class AccountForm extends ContentEntityForm {
'timezone',
'langcode',
'preferred_langcode',
- 'preferred_admin_langcode'
+ 'preferred_admin_langcode',
], parent::getEditedFieldNames($form_state));
}
@@ -365,7 +365,7 @@ abstract class AccountForm extends ContentEntityForm {
'timezone',
'langcode',
'preferred_langcode',
- 'preferred_admin_langcode'
+ 'preferred_admin_langcode',
];
foreach ($violations->getByFields($field_names) as $violation) {
list($field_name) = explode('.', $violation->getPropertyPath(), 2);
diff --git a/core/modules/user/src/AccountSettingsForm.php b/core/modules/user/src/AccountSettingsForm.php
index bd80dd7..4a1b5af 100644
--- a/core/modules/user/src/AccountSettingsForm.php
+++ b/core/modules/user/src/AccountSettingsForm.php
@@ -154,13 +154,13 @@ class AccountSettingsForm extends ConfigFormBase {
USER_REGISTER_ADMINISTRATORS_ONLY => $this->t('Administrators only'),
USER_REGISTER_VISITORS => $this->t('Visitors'),
USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL => $this->t('Visitors, but administrator approval is required'),
- ]
+ ],
];
$form['registration_cancellation']['user_email_verification'] = [
'#type' => 'checkbox',
'#title' => $this->t('Require email verification when a visitor creates an account'),
'#default_value' => $config->get('verify_mail'),
- '#description' => $this->t('New users will be required to validate their email address prior to logging into the site, and will be assigned a system-generated password. With this setting disabled, users will be logged in immediately upon registering, and may select their own passwords during registration.')
+ '#description' => $this->t('New users will be required to validate their email address prior to logging into the site, and will be assigned a system-generated password. With this setting disabled, users will be logged in immediately upon registering, and may select their own passwords during registration.'),
];
$form['registration_cancellation']['user_password_strength'] = [
'#type' => 'checkbox',
diff --git a/core/modules/user/src/Entity/User.php b/core/modules/user/src/Entity/User.php
index 7f4f4cd..b867586 100644
--- a/core/modules/user/src/Entity/User.php
+++ b/core/modules/user/src/Entity/User.php
@@ -428,7 +428,7 @@ class User extends ContentEntityBase implements UserInterface {
'name' => [LanguageInterface::LANGCODE_DEFAULT => ''],
// Explicitly set the langcode to ensure that field definitions do not
// need to be fetched to figure out a default.
- 'langcode' => [LanguageInterface::LANGCODE_DEFAULT => LanguageInterface::LANGCODE_NOT_SPECIFIED]
+ 'langcode' => [LanguageInterface::LANGCODE_DEFAULT => LanguageInterface::LANGCODE_NOT_SPECIFIED],
], $entity_type->id());
}
return clone static::$anonymousUser;
diff --git a/core/modules/user/src/Plugin/views/wizard/Users.php b/core/modules/user/src/Plugin/views/wizard/Users.php
index 00b6863..6ba045f 100644
--- a/core/modules/user/src/Plugin/views/wizard/Users.php
+++ b/core/modules/user/src/Plugin/views/wizard/Users.php
@@ -37,7 +37,7 @@ class Users extends WizardPluginBase {
'plugin_id' => 'boolean',
'entity_type' => 'user',
'entity_field' => 'status',
- ]
+ ],
];
/**
diff --git a/core/modules/user/src/UserViewsData.php b/core/modules/user/src/UserViewsData.php
index 854f679..955ab59 100644
--- a/core/modules/user/src/UserViewsData.php
+++ b/core/modules/user/src/UserViewsData.php
@@ -60,7 +60,7 @@ class UserViewsData extends EntityViewsData {
'argument field' => 'uid',
'base' => 'node_field_data',
'field' => 'nid',
- 'relationship' => 'node_field_data:uid'
+ 'relationship' => 'node_field_data:uid',
],
];
diff --git a/core/modules/user/tests/fixtures/update/drupal-8.user-email-token-2587275.php b/core/modules/user/tests/fixtures/update/drupal-8.user-email-token-2587275.php
index eaa2a9a..8f19b6e 100644
--- a/core/modules/user/tests/fixtures/update/drupal-8.user-email-token-2587275.php
+++ b/core/modules/user/tests/fixtures/update/drupal-8.user-email-token-2587275.php
@@ -18,5 +18,5 @@ $connection->insert('config')
->values([
'collection' => '',
'name' => 'user.mail',
- 'data' => "a:10:{s:14:\"cancel_confirm\";a:2:{s:4:\"body\";s:369:\"[user:name],\n\nA request to cancel your account has been made at [site:name].\n\nYou may now cancel your account on [site:url-brief] by clicking this link or copying and pasting it into your browser:\n\n[user:cancel-url]\n\nNOTE: The cancellation of your account is not reversible.\n\nThis link expires in one day and nothing will happen if it is not used.\n\n-- [site:name] team\";s:7:\"subject\";s:59:\"Account cancellation request for [user:name] at [site:name]\";}s:14:\"password_reset\";a:2:{s:4:\"body\";s:397:\"[user:name],\n\nA request to reset the password for your account has been made at [site:name].\n\nYou may now log in by clicking this link or copying and pasting it to your browser:\n\n[user:one-time-login-url]\n\nThis link can only be used once to log in and will lead you to a page where you can set your password. It expires after one day and nothing will happen if it's not used.\n\n-- [site:name] team\";s:7:\"subject\";s:60:\"Replacement login information for [user:name] at [site:name]\";}s:22:\"register_admin_created\";a:2:{s:4:\"body\";s:463:\"[user:name],\n\nA site administrator at [site:name] has created an account for you. You may now log in by clicking this link or copying and pasting it to your browser:\n\n[user:one-time-login-url]\n\nThis link can only be used once to log in and will lead you to a page where you can set your password.\n\nAfter setting your password, you will be able to log in at [site:login-url] in the future using:\n\nusername: [user:name]\npassword: Your password\n\n-- [site:name] team\";s:7:\"subject\";s:58:\"An administrator created an account for you at [site:name]\";}s:29:\"register_no_approval_required\";a:2:{s:4:\"body\";s:437:\"[user:name],\n\nThank you for registering at [site:name]. You may now log in by clicking this link or copying and pasting it to your browser:\n\n[user:one-time-login-url]\n\nThis link can only be used once to log in and will lead you to a page where you can set your password.\n\nAfter setting your password, you will be able to log in at [site:login-url] in the future using:\n\nusername: [user:name]\npassword: Your password\n\n-- [site:name] team\";s:7:\"subject\";s:46:\"Account details for [user:name] at [site:name]\";}s:25:\"register_pending_approval\";a:2:{s:4:\"body\";s:281:\"[user:name],\n\nThank you for registering at [site:name]. Your application for an account is currently pending approval. Once it has been approved, you will receive another email containing information about how to log in, set your password, and other details.\n\n\n-- [site:name] team\";s:7:\"subject\";s:71:\"Account details for [user:name] at [site:name] (pending admin approval)\";}s:31:\"register_pending_approval_admin\";a:2:{s:4:\"body\";s:56:\"[user:name] has applied for an account.\n\n[user:edit-url]\";s:7:\"subject\";s:71:\"Account details for [user:name] at [site:name] (pending admin approval)\";}s:16:\"status_activated\";a:2:{s:4:\"body\";s:446:\"[user:name],\n\nYour account at [site:name] has been activated.\n\nYou may now log in by clicking this link or copying and pasting it into your browser:\n\n[user:one-time-login-url]\n\nThis link can only be used once to log in and will lead you to a page where you can set your password.\n\nAfter setting your password, you will be able to log in at [site:login-url] in the future using:\n\nusername: [user:name]\npassword: Your password\n\n-- [site:name] team\";s:7:\"subject\";s:57:\"Account details for [user:name] at [site:name] (approved)\";}s:14:\"status_blocked\";a:2:{s:4:\"body\";s:89:\"[user:name],\n\nYour account on [site:account-name] has been blocked.\n\n-- [site:name] team\";s:7:\"subject\";s:56:\"Account details for [user:name] at [site:name] (blocked)\";}s:15:\"status_canceled\";a:2:{s:4:\"body\";s:82:\"[user:name],\n\nYour account on [site:name] has been canceled.\n\n-- [site:name] team\";s:7:\"subject\";s:57:\"Account details for [user:name] at [site:name] (canceled)\";}s:8:\"langcode\";s:2:\"en\";}"
+ 'data' => "a:10:{s:14:\"cancel_confirm\";a:2:{s:4:\"body\";s:369:\"[user:name],\n\nA request to cancel your account has been made at [site:name].\n\nYou may now cancel your account on [site:url-brief] by clicking this link or copying and pasting it into your browser:\n\n[user:cancel-url]\n\nNOTE: The cancellation of your account is not reversible.\n\nThis link expires in one day and nothing will happen if it is not used.\n\n-- [site:name] team\";s:7:\"subject\";s:59:\"Account cancellation request for [user:name] at [site:name]\";}s:14:\"password_reset\";a:2:{s:4:\"body\";s:397:\"[user:name],\n\nA request to reset the password for your account has been made at [site:name].\n\nYou may now log in by clicking this link or copying and pasting it to your browser:\n\n[user:one-time-login-url]\n\nThis link can only be used once to log in and will lead you to a page where you can set your password. It expires after one day and nothing will happen if it's not used.\n\n-- [site:name] team\";s:7:\"subject\";s:60:\"Replacement login information for [user:name] at [site:name]\";}s:22:\"register_admin_created\";a:2:{s:4:\"body\";s:463:\"[user:name],\n\nA site administrator at [site:name] has created an account for you. You may now log in by clicking this link or copying and pasting it to your browser:\n\n[user:one-time-login-url]\n\nThis link can only be used once to log in and will lead you to a page where you can set your password.\n\nAfter setting your password, you will be able to log in at [site:login-url] in the future using:\n\nusername: [user:name]\npassword: Your password\n\n-- [site:name] team\";s:7:\"subject\";s:58:\"An administrator created an account for you at [site:name]\";}s:29:\"register_no_approval_required\";a:2:{s:4:\"body\";s:437:\"[user:name],\n\nThank you for registering at [site:name]. You may now log in by clicking this link or copying and pasting it to your browser:\n\n[user:one-time-login-url]\n\nThis link can only be used once to log in and will lead you to a page where you can set your password.\n\nAfter setting your password, you will be able to log in at [site:login-url] in the future using:\n\nusername: [user:name]\npassword: Your password\n\n-- [site:name] team\";s:7:\"subject\";s:46:\"Account details for [user:name] at [site:name]\";}s:25:\"register_pending_approval\";a:2:{s:4:\"body\";s:281:\"[user:name],\n\nThank you for registering at [site:name]. Your application for an account is currently pending approval. Once it has been approved, you will receive another email containing information about how to log in, set your password, and other details.\n\n\n-- [site:name] team\";s:7:\"subject\";s:71:\"Account details for [user:name] at [site:name] (pending admin approval)\";}s:31:\"register_pending_approval_admin\";a:2:{s:4:\"body\";s:56:\"[user:name] has applied for an account.\n\n[user:edit-url]\";s:7:\"subject\";s:71:\"Account details for [user:name] at [site:name] (pending admin approval)\";}s:16:\"status_activated\";a:2:{s:4:\"body\";s:446:\"[user:name],\n\nYour account at [site:name] has been activated.\n\nYou may now log in by clicking this link or copying and pasting it into your browser:\n\n[user:one-time-login-url]\n\nThis link can only be used once to log in and will lead you to a page where you can set your password.\n\nAfter setting your password, you will be able to log in at [site:login-url] in the future using:\n\nusername: [user:name]\npassword: Your password\n\n-- [site:name] team\";s:7:\"subject\";s:57:\"Account details for [user:name] at [site:name] (approved)\";}s:14:\"status_blocked\";a:2:{s:4:\"body\";s:89:\"[user:name],\n\nYour account on [site:account-name] has been blocked.\n\n-- [site:name] team\";s:7:\"subject\";s:56:\"Account details for [user:name] at [site:name] (blocked)\";}s:15:\"status_canceled\";a:2:{s:4:\"body\";s:82:\"[user:name],\n\nYour account on [site:name] has been canceled.\n\n-- [site:name] team\";s:7:\"subject\";s:57:\"Account details for [user:name] at [site:name] (canceled)\";}s:8:\"langcode\";s:2:\"en\";}",
])->execute();
diff --git a/core/modules/user/tests/src/Functional/UserAdminTest.php b/core/modules/user/tests/src/Functional/UserAdminTest.php
index 4e69346..82e5df8 100644
--- a/core/modules/user/tests/src/Functional/UserAdminTest.php
+++ b/core/modules/user/tests/src/Functional/UserAdminTest.php
@@ -108,7 +108,7 @@ class UserAdminTest extends BrowserTestBase {
$this->drupalPostForm('admin/people', $edit, t('Apply to selected items'), [
// Sort the table by username so that we know reliably which user will be
// targeted with the blocking action.
- 'query' => ['order' => 'name', 'sort' => 'asc']
+ 'query' => ['order' => 'name', 'sort' => 'asc'],
]);
$site_name = $this->config('system.site')->get('name');
$this->assertMailString('body', 'Your account on ' . $site_name . ' has been blocked.', 1, 'Blocked message found in the mail sent to user C.');
@@ -129,7 +129,7 @@ class UserAdminTest extends BrowserTestBase {
$this->drupalPostForm('admin/people', $editunblock, t('Apply to selected items'), [
// Sort the table by username so that we know reliably which user will be
// targeted with the blocking action.
- 'query' => ['order' => 'name', 'sort' => 'asc']
+ 'query' => ['order' => 'name', 'sort' => 'asc'],
]);
$user_storage->resetCache([$user_c->id()]);
$account = $user_storage->load($user_c->id());
diff --git a/core/modules/user/tests/src/Functional/UserMailNotifyTest.php b/core/modules/user/tests/src/Functional/UserMailNotifyTest.php
index 57bebc0..df22f9c 100644
--- a/core/modules/user/tests/src/Functional/UserMailNotifyTest.php
+++ b/core/modules/user/tests/src/Functional/UserMailNotifyTest.php
@@ -30,7 +30,7 @@ class UserMailNotifyTest extends EntityKernelTestBase {
['status_canceled', ['status_canceled']],
['register_admin_created', ['register_admin_created']],
['register_no_approval_required', ['register_no_approval_required']],
- ['register_pending_approval', ['register_pending_approval', 'register_pending_approval_admin']]
+ ['register_pending_approval', ['register_pending_approval', 'register_pending_approval_admin']],
];
}
diff --git a/core/modules/user/tests/src/Functional/Views/HandlerFilterUserNameTest.php b/core/modules/user/tests/src/Functional/Views/HandlerFilterUserNameTest.php
index fd6fdd2..a5d2710 100644
--- a/core/modules/user/tests/src/Functional/Views/HandlerFilterUserNameTest.php
+++ b/core/modules/user/tests/src/Functional/Views/HandlerFilterUserNameTest.php
@@ -95,7 +95,7 @@ class HandlerFilterUserNameTest extends ViewTestBase {
$users = [$this->randomMachineName()];
$users = array_map('strtolower', $users);
$edit = [
- 'options[value]' => implode(', ', $users)
+ 'options[value]' => implode(', ', $users),
];
$this->drupalPostForm($path, $edit, t('Apply'));
$this->assertRaw(t('There are no entities matching "%value".', ['%value' => implode(', ', $users)]));
@@ -105,7 +105,7 @@ class HandlerFilterUserNameTest extends ViewTestBase {
$users = [$random_name, $this->names[0]];
$users = array_map('strtolower', $users);
$edit = [
- 'options[value]' => implode(', ', $users)
+ 'options[value]' => implode(', ', $users),
];
$users = [$users[0]];
$this->drupalPostForm($path, $edit, t('Apply'));
@@ -115,7 +115,7 @@ class HandlerFilterUserNameTest extends ViewTestBase {
$users = $this->names;
$users = array_map('strtolower', $users);
$edit = [
- 'options[value]' => implode(', ', $users)
+ 'options[value]' => implode(', ', $users),
];
$this->drupalPostForm($path, $edit, t('Apply'));
$this->assertNoRaw(t('There are no entities matching "%value".', ['%value' => implode(', ', $users)]));
diff --git a/core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php b/core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php
index 5393805..0ca7f09 100644
--- a/core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php
+++ b/core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php
@@ -60,7 +60,7 @@ class MigrateUserRoleTest extends MigrateDrupal6TestBase {
'access content',
'migrate test anonymous permission',
// From filter_format tables.
- 'use text format filtered_html'
+ 'use text format filtered_html',
];
$this->assertRole('anonymous', $permissions, 1, $id_map);
@@ -81,7 +81,7 @@ class MigrateUserRoleTest extends MigrateDrupal6TestBase {
'migrate test role 1 test permission',
// From filter format.
'use text format full_html',
- 'use text format php_code'
+ 'use text format php_code',
];
$this->assertRole('migrate_test_role_1', $permissions, 3, $id_map);
@@ -126,7 +126,7 @@ class MigrateUserRoleTest extends MigrateDrupal6TestBase {
'administrator1',
'migrate_test_role_11',
'migrate_test_role_21',
- 'migrate_test_role_3_that_is_longer_than_thirty_two_characters1'
+ 'migrate_test_role_3_that_is_longer_than_thirty_two_characters1',
];
$this->assertEmpty(Role::loadMultiple($roles));
diff --git a/core/modules/user/tests/src/Kernel/Plugin/migrate/source/ProfileFieldTest.php b/core/modules/user/tests/src/Kernel/Plugin/migrate/source/ProfileFieldTest.php
index c321185..99c61fd 100644
--- a/core/modules/user/tests/src/Kernel/Plugin/migrate/source/ProfileFieldTest.php
+++ b/core/modules/user/tests/src/Kernel/Plugin/migrate/source/ProfileFieldTest.php
@@ -99,7 +99,7 @@ class ProfileFieldTest extends MigrateSqlSourceTestBase {
'fid' => 4,
'uid' => 1,
'value' => 'yellow',
- ]
+ ],
];
// Expected options are:
@@ -114,7 +114,7 @@ class ProfileFieldTest extends MigrateSqlSourceTestBase {
'blue' => 'blue',
'green' => 'green',
'yellow' => 'yellow',
- ]
+ ],
];
$tests[0]['expected_data'] = $profile_fields;
diff --git a/core/modules/user/tests/src/Unit/PermissionAccessCheckTest.php b/core/modules/user/tests/src/Unit/PermissionAccessCheckTest.php
index 84290cc..b7c9f68 100644
--- a/core/modules/user/tests/src/Unit/PermissionAccessCheckTest.php
+++ b/core/modules/user/tests/src/Unit/PermissionAccessCheckTest.php
@@ -79,7 +79,7 @@ class PermissionAccessCheckTest extends UnitTestCase {
->will($this->returnValueMap([
['allowed', TRUE],
['denied', FALSE],
- ['other', FALSE]
+ ['other', FALSE],
]
));
$route = new Route('', [], $requirements);
diff --git a/core/modules/user/tests/src/Unit/PermissionHandlerTest.php b/core/modules/user/tests/src/Unit/PermissionHandlerTest.php
index 2918d2f..a621455 100644
--- a/core/modules/user/tests/src/Unit/PermissionHandlerTest.php
+++ b/core/modules/user/tests/src/Unit/PermissionHandlerTest.php
@@ -400,7 +400,7 @@ class TestPermissionCallbacks {
public function singleDescription() {
return [
- 'access_module_a' => 'single_description'
+ 'access_module_a' => 'single_description',
];
}
diff --git a/core/modules/user/tests/src/Unit/Views/Argument/RolesRidTest.php b/core/modules/user/tests/src/Unit/Views/Argument/RolesRidTest.php
index 4e48fba..efcead4 100644
--- a/core/modules/user/tests/src/Unit/Views/Argument/RolesRidTest.php
+++ b/core/modules/user/tests/src/Unit/Views/Argument/RolesRidTest.php
@@ -23,7 +23,7 @@ class RolesRidTest extends UnitTestCase {
public function testTitleQuery() {
$role1 = new Role([
'id' => 'test_rid_1',
- 'label' => 'test rid 1'
+ 'label' => 'test rid 1',
], 'user_role');
$role2 = new Role([
'id' => 'test_rid_2',
diff --git a/core/modules/user/user.module b/core/modules/user/user.module
index db016a1..a2b6464 100644
--- a/core/modules/user/user.module
+++ b/core/modules/user/user.module
@@ -609,7 +609,7 @@ function user_pass_reset_url($account, $options = []) {
],
[
'absolute' => TRUE,
- 'language' => \Drupal::languageManager()->getLanguage($langcode)
+ 'language' => \Drupal::languageManager()->getLanguage($langcode),
]
);
}
@@ -638,7 +638,7 @@ function user_cancel_url(UserInterface $account, $options = []) {
return \Drupal::url('user.cancel_confirm', [
'user' => $account->id(),
'timestamp' => $timestamp,
- 'hashed_pass' => user_pass_rehash($account, $timestamp)
+ 'hashed_pass' => user_pass_rehash($account, $timestamp),
], $url_options);
}
diff --git a/core/modules/views/src/Entity/View.php b/core/modules/views/src/Entity/View.php
index 47d33a9..11a0938 100644
--- a/core/modules/views/src/Entity/View.php
+++ b/core/modules/views/src/Entity/View.php
@@ -431,7 +431,7 @@ class View extends ConfigEntityBase implements ViewEntityInterface {
'position' => 0,
'display_options' => [],
],
- ]
+ ],
];
}
diff --git a/core/modules/views/src/EntityViewsData.php b/core/modules/views/src/EntityViewsData.php
index 079ee3b..f5672d3 100644
--- a/core/modules/views/src/EntityViewsData.php
+++ b/core/modules/views/src/EntityViewsData.php
@@ -207,7 +207,7 @@ class EntityViewsData implements EntityHandlerInterface, EntityViewsDataInterfac
$data[$base_table]['table']['join'][$data_table] = [
'left_field' => $base_field,
'field' => $base_field,
- 'type' => 'INNER'
+ 'type' => 'INNER',
];
$data[$data_table]['table']['group'] = $this->entityType->getLabel();
$data[$data_table]['table']['provider'] = $this->entityType->getProvider();
diff --git a/core/modules/views/src/Form/ViewsExposedForm.php b/core/modules/views/src/Form/ViewsExposedForm.php
index 125cd1f..173dd77 100644
--- a/core/modules/views/src/Form/ViewsExposedForm.php
+++ b/core/modules/views/src/Form/ViewsExposedForm.php
@@ -103,7 +103,7 @@ class ViewsExposedForm extends FormBase {
}
$form['actions'] = [
- '#type' => 'actions'
+ '#type' => 'actions',
];
$form['actions']['submit'] = [
// Prevent from showing up in \Drupal::request()->query.
diff --git a/core/modules/views/src/Plugin/Derivative/DefaultWizardDeriver.php b/core/modules/views/src/Plugin/Derivative/DefaultWizardDeriver.php
index de9bb26..a2616e8 100644
--- a/core/modules/views/src/Plugin/Derivative/DefaultWizardDeriver.php
+++ b/core/modules/views/src/Plugin/Derivative/DefaultWizardDeriver.php
@@ -26,7 +26,7 @@ class DefaultWizardDeriver extends DeriverBase {
'id' => 'standard',
'base_table' => $table,
'title' => $views_info['table']['base']['title'],
- 'class' => 'Drupal\views\Plugin\views\wizard\Standard'
+ 'class' => 'Drupal\views\Plugin\views\wizard\Standard',
];
}
}
diff --git a/core/modules/views/src/Plugin/Derivative/ViewsExposedFilterBlock.php b/core/modules/views/src/Plugin/Derivative/ViewsExposedFilterBlock.php
index fc2e9b8..f700f16 100644
--- a/core/modules/views/src/Plugin/Derivative/ViewsExposedFilterBlock.php
+++ b/core/modules/views/src/Plugin/Derivative/ViewsExposedFilterBlock.php
@@ -91,8 +91,8 @@ class ViewsExposedFilterBlock implements ContainerDeriverInterface {
'config_dependencies' => [
'config' => [
$view->getConfigDependencyName(),
- ]
- ]
+ ],
+ ],
];
$this->derivatives[$delta] += $base_plugin_definition;
}
diff --git a/core/modules/views/src/Plugin/views/PluginBase.php b/core/modules/views/src/Plugin/views/PluginBase.php
index 7c17d2b..d5614c6 100644
--- a/core/modules/views/src/Plugin/views/PluginBase.php
+++ b/core/modules/views/src/Plugin/views/PluginBase.php
@@ -400,7 +400,7 @@ abstract class PluginBase extends ComponentPluginBase implements ContainerFactor
'#post_render' => [
function ($children, $elements) {
return Xss::filterAdmin($children);
- }
+ },
],
];
diff --git a/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php b/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php
index 96a41f3..b1e2b1d 100644
--- a/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php
+++ b/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php
@@ -549,7 +549,7 @@ abstract class ArgumentPluginBase extends HandlerBase implements CacheableDepend
'#type' => 'checkbox',
'#title' => $this->t('Skip default argument for view URL'),
'#default_value' => $this->options['default_argument_skip_url'],
- '#description' => $this->t('Select whether to include this default argument when constructing the URL for this view. Skipping default arguments is useful e.g. in the case of feeds.')
+ '#description' => $this->t('Select whether to include this default argument when constructing the URL for this view. Skipping default arguments is useful e.g. in the case of feeds.'),
];
$form['default_argument_type'] = [
@@ -639,7 +639,7 @@ abstract class ArgumentPluginBase extends HandlerBase implements CacheableDepend
'#default_value' => $this->options['summary']['number_of_records'],
'#options' => [
0 => $this->getSortName(),
- 1 => $this->t('Number of records')
+ 1 => $this->t('Number of records'),
],
'#states' => [
'visible' => [
diff --git a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
index 29d188c..4f1cb2e 100644
--- a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
+++ b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
@@ -1032,13 +1032,13 @@ abstract class DisplayPluginBase extends PluginBase implements DisplayPluginInte
'js' => 'nojs',
'view' => $this->view->storage->id(),
'display_id' => $this->display['id'],
- 'type' => $section
+ 'type' => $section,
], [
'attributes' => [
'class' => ['views-ajax-link', $class],
'title' => $title,
- 'id' => Html::getUniqueId('views-' . $this->display['id'] . '-' . $section)
- ]
+ 'id' => Html::getUniqueId('views-' . $this->display['id'] . '-' . $section),
+ ],
]));
}
@@ -2586,7 +2586,7 @@ abstract class DisplayPluginBase extends PluginBase implements DisplayPluginInte
public function getPagerText() {
return [
'items per page title' => $this->t('Items to display'),
- 'items per page description' => $this->t('Enter 0 for no limit.')
+ 'items per page description' => $this->t('Enter 0 for no limit.'),
];
}
diff --git a/core/modules/views/src/Plugin/views/display/Page.php b/core/modules/views/src/Plugin/views/display/Page.php
index baf1434..23409ec 100644
--- a/core/modules/views/src/Plugin/views/display/Page.php
+++ b/core/modules/views/src/Plugin/views/display/Page.php
@@ -259,7 +259,7 @@ class Page extends PathPluginBase {
'none' => $this->t('No menu entry'),
'normal' => $this->t('Normal menu entry'),
'tab' => $this->t('Menu tab'),
- 'default tab' => $this->t('Default menu tab')
+ 'default tab' => $this->t('Default menu tab'),
],
'#default_value' => $menu['type'],
];
@@ -532,7 +532,7 @@ class Page extends PathPluginBase {
public function getPagerText() {
return [
'items per page title' => $this->t('Items per page'),
- 'items per page description' => $this->t('Enter 0 for no limit.')
+ 'items per page description' => $this->t('Enter 0 for no limit.'),
];
}
diff --git a/core/modules/views/src/Plugin/views/field/EntityField.php b/core/modules/views/src/Plugin/views/field/EntityField.php
index ee2882c..faf8da1 100644
--- a/core/modules/views/src/Plugin/views/field/EntityField.php
+++ b/core/modules/views/src/Plugin/views/field/EntityField.php
@@ -408,10 +408,10 @@ class EntityField extends FieldPluginBase implements CacheableDependencyInterfac
];
$options['multi_type'] = [
- 'default' => 'separator'
+ 'default' => 'separator',
];
$options['separator'] = [
- 'default' => ', '
+ 'default' => ', ',
];
$options['field_api_classes'] = [
diff --git a/core/modules/views/src/Plugin/views/field/FieldPluginBase.php b/core/modules/views/src/Plugin/views/field/FieldPluginBase.php
index 033bda0..d382681 100644
--- a/core/modules/views/src/Plugin/views/field/FieldPluginBase.php
+++ b/core/modules/views/src/Plugin/views/field/FieldPluginBase.php
@@ -311,7 +311,7 @@ abstract class FieldPluginBase extends HandlerBase implements FieldHandlerInterf
// @todo Add possible html5 elements.
$elements = [
'' => $this->t('- Use default -'),
- '0' => $this->t('- None -')
+ '0' => $this->t('- None -'),
];
$elements += \Drupal::config('views.settings')->get('field_rewrite_elements');
}
@@ -1387,7 +1387,7 @@ abstract class FieldPluginBase extends HandlerBase implements FieldHandlerInterf
];
$alter += [
- 'path' => NULL
+ 'path' => NULL,
];
$path = $alter['path'];
diff --git a/core/modules/views/src/Plugin/views/field/PrerenderList.php b/core/modules/views/src/Plugin/views/field/PrerenderList.php
index f27973e..4ed091f 100644
--- a/core/modules/views/src/Plugin/views/field/PrerenderList.php
+++ b/core/modules/views/src/Plugin/views/field/PrerenderList.php
@@ -78,8 +78,8 @@ abstract class PrerenderList extends FieldPluginBase implements MultiItemsFieldH
'#template' => '{{ items|safe_join(separator) }}',
'#context' => [
'items' => $items,
- 'separator' => $this->sanitizeValue($this->options['separator'], 'xss_admin')
- ]
+ 'separator' => $this->sanitizeValue($this->options['separator'], 'xss_admin'),
+ ],
];
}
else {
diff --git a/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php b/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
index b49190b..5b35b6a 100644
--- a/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
+++ b/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
@@ -1103,7 +1103,7 @@ abstract class FilterPluginBase extends HandlerBase implements CacheableDependen
'#required' => TRUE,
'#attributes' => [
'class' => ['default-radios'],
- ]
+ ],
];
// From all groups, let chose which is the default.
$form['group_info']['default_group_multiple'] = [
@@ -1112,7 +1112,7 @@ abstract class FilterPluginBase extends HandlerBase implements CacheableDependen
'#default_value' => $this->options['group_info']['default_group_multiple'],
'#attributes' => [
'class' => ['default-checkboxes'],
- ]
+ ],
];
$form['group_info']['add_group'] = [
diff --git a/core/modules/views/src/Plugin/views/filter/NumericFilter.php b/core/modules/views/src/Plugin/views/filter/NumericFilter.php
index ed19bee..d2a6ab0 100644
--- a/core/modules/views/src/Plugin/views/filter/NumericFilter.php
+++ b/core/modules/views/src/Plugin/views/filter/NumericFilter.php
@@ -300,7 +300,7 @@ class NumericFilter extends FilterPluginBase {
// Ensure there is something in the 'value'.
$form['value'] = [
'#type' => 'value',
- '#value' => NULL
+ '#value' => NULL,
];
}
}
diff --git a/core/modules/views/src/Plugin/views/filter/StringFilter.php b/core/modules/views/src/Plugin/views/filter/StringFilter.php
index f6b7e24..f744519 100644
--- a/core/modules/views/src/Plugin/views/filter/StringFilter.php
+++ b/core/modules/views/src/Plugin/views/filter/StringFilter.php
@@ -257,7 +257,7 @@ class StringFilter extends FilterPluginBase {
// Ensure there is something in the 'value'.
$form['value'] = [
'#type' => 'value',
- '#value' => NULL
+ '#value' => NULL,
];
}
}
diff --git a/core/modules/views/src/Plugin/views/join/JoinPluginBase.php b/core/modules/views/src/Plugin/views/join/JoinPluginBase.php
index a7ac37d..a0bbedf 100644
--- a/core/modules/views/src/Plugin/views/join/JoinPluginBase.php
+++ b/core/modules/views/src/Plugin/views/join/JoinPluginBase.php
@@ -226,7 +226,7 @@ class JoinPluginBase extends PluginBase implements JoinPluginInterface {
// Merge in some default values.
$configuration += [
'type' => 'LEFT',
- 'extra_operator' => 'AND'
+ 'extra_operator' => 'AND',
];
$this->configuration = $configuration;
diff --git a/core/modules/views/src/Plugin/views/query/Sql.php b/core/modules/views/src/Plugin/views/query/Sql.php
index 512a99d..99d0aa8 100644
--- a/core/modules/views/src/Plugin/views/query/Sql.php
+++ b/core/modules/views/src/Plugin/views/query/Sql.php
@@ -188,7 +188,7 @@ class Sql extends QueryPluginBase {
'link' => NULL,
'table' => $base_table,
'alias' => $base_table,
- 'base' => $base_table
+ 'base' => $base_table,
];
// init the table queue with our primary table.
@@ -1045,7 +1045,7 @@ class Sql extends QueryPluginBase {
$this->orderby[] = [
'field' => $as,
- 'direction' => strtoupper($order)
+ 'direction' => strtoupper($order),
];
}
@@ -1793,7 +1793,7 @@ class Sql extends QueryPluginBase {
'filter' => 'groupby_numeric',
'sort' => 'groupby_numeric',
],
- ]
+ ],
];
}
diff --git a/core/modules/views/src/Plugin/views/relationship/EntityReverse.php b/core/modules/views/src/Plugin/views/relationship/EntityReverse.php
index 568bcd2..1510d22 100644
--- a/core/modules/views/src/Plugin/views/relationship/EntityReverse.php
+++ b/core/modules/views/src/Plugin/views/relationship/EntityReverse.php
@@ -53,7 +53,7 @@ class EntityReverse extends RelationshipPluginBase {
'left_field' => $left_field,
'table' => $this->definition['field table'],
'field' => $this->definition['field field'],
- 'adjusted' => TRUE
+ 'adjusted' => TRUE,
];
if (!empty($this->options['required'])) {
$first['type'] = 'INNER';
@@ -80,7 +80,7 @@ class EntityReverse extends RelationshipPluginBase {
'left_field' => 'entity_id',
'table' => $this->definition['base'],
'field' => $this->definition['base field'],
- 'adjusted' => TRUE
+ 'adjusted' => TRUE,
];
if (!empty($this->options['required'])) {
diff --git a/core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php b/core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php
index 0b3dcc9..890432a 100644
--- a/core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php
+++ b/core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php
@@ -177,7 +177,7 @@ abstract class WizardPluginBase extends PluginBase implements WizardInterface {
'plugin_id' => 'boolean',
'entity_type' => $this->entityTypeId,
'entity_field' => $field_name,
- ]
+ ],
] + $this->filters;
}
diff --git a/core/modules/views/src/Tests/FieldApiDataTest.php b/core/modules/views/src/Tests/FieldApiDataTest.php
index d2d035c..b20a871 100644
--- a/core/modules/views/src/Tests/FieldApiDataTest.php
+++ b/core/modules/views/src/Tests/FieldApiDataTest.php
@@ -45,7 +45,7 @@ class FieldApiDataTest extends FieldTestBase {
'field_name' => $field_names[0],
'entity_type' => 'node',
'bundle' => 'page',
- 'label' => 'GiraffeA" label'
+ 'label' => 'GiraffeA" label',
];
FieldConfig::create($field)->save();
@@ -55,7 +55,7 @@ class FieldApiDataTest extends FieldTestBase {
'field_name' => $field_names[0],
'entity_type' => 'node',
'bundle' => 'article',
- 'label' => 'GiraffeB" label'
+ 'label' => 'GiraffeB" label',
])->save();
// Now create some example nodes/users for the view result.
@@ -230,7 +230,7 @@ class FieldApiDataTest extends FieldTestBase {
'field_name' => $this->fieldStorages[0]->getName(),
'entity_type' => 'node',
'bundle' => 'news',
- 'label' => 'GiraffeB" label'
+ 'label' => 'GiraffeB" label',
])->save();
$this->container->get('views.views_data')->clear();
$data = $this->getViewsData();
diff --git a/core/modules/views/src/Tests/ViewTestData.php b/core/modules/views/src/Tests/ViewTestData.php
index 27ddf7c..f0c8cfc 100644
--- a/core/modules/views/src/Tests/ViewTestData.php
+++ b/core/modules/views/src/Tests/ViewTestData.php
@@ -108,7 +108,7 @@ class ViewTestData {
],
'primary key' => ['id'],
'unique keys' => [
- 'name' => ['name']
+ 'name' => ['name'],
],
'indexes' => [
'ages' => ['age'],
diff --git a/core/modules/views/tests/modules/views_test_data/src/Plugin/views/query/QueryTest.php b/core/modules/views/tests/modules/views_test_data/src/Plugin/views/query/QueryTest.php
index 230e428..71aa2de 100644
--- a/core/modules/views/tests/modules/views_test_data/src/Plugin/views/query/QueryTest.php
+++ b/core/modules/views/tests/modules/views_test_data/src/Plugin/views/query/QueryTest.php
@@ -60,7 +60,7 @@ class QueryTest extends QueryPluginBase {
$this->conditions[] = [
'field' => $field,
'value' => $value,
- 'operator' => $operator
+ 'operator' => $operator,
];
}
diff --git a/core/modules/views/tests/modules/views_test_data/views_test_data.install b/core/modules/views/tests/modules/views_test_data/views_test_data.install
index 3590440..1ef6036 100644
--- a/core/modules/views/tests/modules/views_test_data/views_test_data.install
+++ b/core/modules/views/tests/modules/views_test_data/views_test_data.install
@@ -29,7 +29,7 @@ function views_test_data_install() {
'p' => 'P',
'strong' => 'STRONG',
'em' => 'EM',
- 'marquee' => 'MARQUEE'
+ 'marquee' => 'MARQUEE',
];
\Drupal::configFactory()->getEditable('views.settings')->set('field_rewrite_elements', $values)->save();
}
diff --git a/core/modules/views/tests/src/Functional/DefaultViewsTest.php b/core/modules/views/tests/src/Functional/DefaultViewsTest.php
index c3e8f56..b612070 100644
--- a/core/modules/views/tests/src/Functional/DefaultViewsTest.php
+++ b/core/modules/views/tests/src/Functional/DefaultViewsTest.php
@@ -96,7 +96,7 @@ class DefaultViewsTest extends ViewTestBase {
'status' => CommentInterface::PUBLISHED,
'entity_id' => $node->id(),
'entity_type' => 'node',
- 'field_name' => 'comment'
+ 'field_name' => 'comment',
];
Comment::create($comment)->save();
diff --git a/core/modules/views/tests/src/Functional/Entity/FieldEntityTest.php b/core/modules/views/tests/src/Functional/Entity/FieldEntityTest.php
index a46e54c..2393b6d 100644
--- a/core/modules/views/tests/src/Functional/Entity/FieldEntityTest.php
+++ b/core/modules/views/tests/src/Functional/Entity/FieldEntityTest.php
@@ -65,7 +65,7 @@ class FieldEntityTest extends ViewTestBase {
'uid' => $account->id(),
'entity_id' => $node->id(),
'entity_type' => 'node',
- 'field_name' => 'comment'
+ 'field_name' => 'comment',
]);
$comment->save();
diff --git a/core/modules/views/tests/src/Functional/Entity/FilterEntityBundleTest.php b/core/modules/views/tests/src/Functional/Entity/FilterEntityBundleTest.php
index 993293c..22bb643 100644
--- a/core/modules/views/tests/src/Functional/Entity/FilterEntityBundleTest.php
+++ b/core/modules/views/tests/src/Functional/Entity/FilterEntityBundleTest.php
@@ -81,7 +81,7 @@ class FilterEntityBundleTest extends ViewTestBase {
'node.type.test_bundle_2',
],
'module' => [
- 'node'
+ 'node',
],
];
$this->assertIdentical($expected, $view->getDependencies());
diff --git a/core/modules/views/tests/src/Functional/GlossaryTest.php b/core/modules/views/tests/src/Functional/GlossaryTest.php
index 276737f..ed247f1 100644
--- a/core/modules/views/tests/src/Functional/GlossaryTest.php
+++ b/core/modules/views/tests/src/Functional/GlossaryTest.php
@@ -40,7 +40,7 @@ class GlossaryTest extends ViewTestBase {
$nodes_by_char = [];
foreach ($nodes_per_char as $char => $count) {
$setting = [
- 'type' => $type->id()
+ 'type' => $type->id(),
];
for ($i = 0; $i < $count; $i++) {
$node = $setting;
diff --git a/core/modules/views/tests/src/Functional/Handler/AreaTest.php b/core/modules/views/tests/src/Functional/Handler/AreaTest.php
index cf877d1..1827319 100644
--- a/core/modules/views/tests/src/Functional/Handler/AreaTest.php
+++ b/core/modules/views/tests/src/Functional/Handler/AreaTest.php
@@ -41,8 +41,8 @@ class AreaTest extends ViewTestBase {
'title' => 'Test Example area',
'help' => 'A area handler which just exists for tests.',
'area' => [
- 'id' => 'test_example'
- ]
+ 'id' => 'test_example',
+ ],
];
return $data;
diff --git a/core/modules/views/tests/src/Functional/Handler/FieldWebTest.php b/core/modules/views/tests/src/Functional/Handler/FieldWebTest.php
index 41849b2..eda5b81 100644
--- a/core/modules/views/tests/src/Functional/Handler/FieldWebTest.php
+++ b/core/modules/views/tests/src/Functional/Handler/FieldWebTest.php
@@ -483,7 +483,7 @@ class FieldWebTest extends ViewTestBase {
'p',
'strong',
'em',
- 'marquee'
+ 'marquee',
];
$this->assertEqual(array_keys($element_types), $expected_elements);
@@ -580,28 +580,28 @@ class FieldWebTest extends ViewTestBase {
[
'value' => $random_text_8,
'trimmed_value' => '',
- 'trimmed' => TRUE
+ 'trimmed' => TRUE,
],
// Create one string with two words which doesn't fit both into the limit.
[
'value' => $random_text_8 . ' ' . $random_text_8,
'trimmed_value' => '',
- 'trimmed' => TRUE
+ 'trimmed' => TRUE,
],
// Create one string which contains of two words, of which only the first
// fits into the limit.
[
'value' => $random_text_4 . ' ' . $random_text_8,
'trimmed_value' => $random_text_4,
- 'trimmed' => TRUE
+ 'trimmed' => TRUE,
],
// Create one string which contains of two words, of which both fits into
// the limit.
[
'value' => $random_text_2 . ' ' . $random_text_2,
'trimmed_value' => $random_text_2 . ' ' . $random_text_2,
- 'trimmed' => FALSE
- ]
+ 'trimmed' => FALSE,
+ ],
];
foreach ($tuples as $tuple) {
diff --git a/core/modules/views/tests/src/Functional/Plugin/ArgumentDefaultTest.php b/core/modules/views/tests/src/Functional/Plugin/ArgumentDefaultTest.php
index 816af90..b12e43e 100644
--- a/core/modules/views/tests/src/Functional/Plugin/ArgumentDefaultTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/ArgumentDefaultTest.php
@@ -55,9 +55,9 @@ class ArgumentDefaultTest extends ViewTestBase {
$options = [
'default_argument_type' => 'argument_default_test',
'default_argument_options' => [
- 'value' => 'John'
+ 'value' => 'John',
],
- 'default_action' => 'default'
+ 'default_action' => 'default',
];
$id = $view->addHandler('default', 'argument', 'views_test_data', 'name', $options);
$view->initHandlers();
diff --git a/core/modules/views/tests/src/Functional/Plugin/CacheWebTest.php b/core/modules/views/tests/src/Functional/Plugin/CacheWebTest.php
index f8ce5a9..c919bcb 100644
--- a/core/modules/views/tests/src/Functional/Plugin/CacheWebTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/CacheWebTest.php
@@ -51,8 +51,8 @@ class CacheWebTest extends ViewTestBase {
'type' => 'time',
'options' => [
'results_lifespan' => '3600',
- 'output_lifespan' => '3600'
- ]
+ 'output_lifespan' => '3600',
+ ],
]);
$view->save();
$this->container->get('router.builder')->rebuildIfNeeded();
@@ -70,7 +70,7 @@ class CacheWebTest extends ViewTestBase {
'config:user.role.anonymous',
'config:views.view.test_display',
'node_list',
- 'rendered'
+ 'rendered',
];
$this->assertCacheTags($cache_tags);
diff --git a/core/modules/views/tests/src/Functional/Plugin/ContextualFiltersBlockContextTest.php b/core/modules/views/tests/src/Functional/Plugin/ContextualFiltersBlockContextTest.php
index 215ee28..41356b6 100644
--- a/core/modules/views/tests/src/Functional/Plugin/ContextualFiltersBlockContextTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/ContextualFiltersBlockContextTest.php
@@ -110,7 +110,7 @@ class ContextualFiltersBlockContextTest extends ViewTestBase {
'label_display' => 'visible',
'views_label' => '',
'items_per_page' => 'none',
- 'context_mapping' => ['nid' => '@node.node_route_context:node']
+ 'context_mapping' => ['nid' => '@node.node_route_context:node'],
];
$this->assertEqual($block->getPlugin()->getConfiguration(), $expected_settings, 'Block settings are correct.');
diff --git a/core/modules/views/tests/src/Functional/Plugin/DisplayTest.php b/core/modules/views/tests/src/Functional/Plugin/DisplayTest.php
index 6748152..d8deaa5 100644
--- a/core/modules/views/tests/src/Functional/Plugin/DisplayTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/DisplayTest.php
@@ -285,7 +285,7 @@ class DisplayTest extends ViewTestBase {
'table' => 'views_test_data',
'field' => 'id',
'id' => 'id',
- 'value' => ['value' => 7297]
+ 'value' => ['value' => 7297],
];
$view->setHandler('default', 'filter', 'id', $item);
$this->executeView($view);
diff --git a/core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php b/core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php
index eaa5aaa..4cd81d2 100644
--- a/core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php
@@ -104,9 +104,9 @@ class ExposedFormTest extends ViewTestBase {
'label' => 'Content: Type',
'operator_id' => 'type_op',
'reduce' => FALSE,
- 'description' => 'Exposed overridden description'
+ 'description' => 'Exposed overridden description',
],
- ]
+ ],
]);
$view->save();
$this->drupalGet('test_exposed_form_buttons', ['query' => [$identifier => 'article']]);
@@ -131,9 +131,9 @@ class ExposedFormTest extends ViewTestBase {
'label' => 'Content: Type',
'operator_id' => 'type_op',
'reduce' => FALSE,
- 'description' => 'Exposed overridden description'
+ 'description' => 'Exposed overridden description',
],
- ]
+ ],
]);
$this->executeView($view);
@@ -286,7 +286,7 @@ class ExposedFormTest extends ViewTestBase {
'entity_test_view_grants',
'theme',
'url.query_args',
- 'languages:language_content'
+ 'languages:language_content',
];
$this->drupalGet('test_exposed_form_sort_items_per_page');
diff --git a/core/modules/views/tests/src/Functional/Plugin/PagerTest.php b/core/modules/views/tests/src/Functional/Plugin/PagerTest.php
index c80fa09..272a3f0 100644
--- a/core/modules/views/tests/src/Functional/Plugin/PagerTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/PagerTest.php
@@ -418,7 +418,7 @@ class PagerTest extends ViewTestBase {
// Create source string.
$source = $this->localeStorage->createString(
[
- 'source' => $label
+ 'source' => $label,
]
);
$source->save();
diff --git a/core/modules/views/tests/src/Functional/Plugin/ViewsBulkTest.php b/core/modules/views/tests/src/Functional/Plugin/ViewsBulkTest.php
index 1b3078b..e3faa88 100644
--- a/core/modules/views/tests/src/Functional/Plugin/ViewsBulkTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/ViewsBulkTest.php
@@ -41,7 +41,7 @@ class ViewsBulkTest extends ViewTestBase {
$node_1 = $this->drupalCreateNode([
'type' => 'page',
'title' => 'The first node',
- 'changed' => \Drupal::time()->getRequestTime() - 180
+ 'changed' => \Drupal::time()->getRequestTime() - 180,
]);
// Login as administrator and go to admin/content.
@@ -53,7 +53,7 @@ class ViewsBulkTest extends ViewTestBase {
$node_2 = $this->drupalCreateNode([
'type' => 'page',
'title' => 'The second node',
- 'changed' => \Drupal::time()->getRequestTime() - 120
+ 'changed' => \Drupal::time()->getRequestTime() - 120,
]);
// Now click 'Apply to selected items' and assert the first node is selected
diff --git a/core/modules/views/tests/src/Functional/Update/ArgumentPlaceholderUpdatePathTest.php b/core/modules/views/tests/src/Functional/Update/ArgumentPlaceholderUpdatePathTest.php
index 8d60f35..fd12451 100644
--- a/core/modules/views/tests/src/Functional/Update/ArgumentPlaceholderUpdatePathTest.php
+++ b/core/modules/views/tests/src/Functional/Update/ArgumentPlaceholderUpdatePathTest.php
@@ -20,7 +20,7 @@ class ArgumentPlaceholderUpdatePathTest extends UpdatePathTestBase {
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz',
- __DIR__ . '/../../../fixtures/update/argument-placeholder.php'
+ __DIR__ . '/../../../fixtures/update/argument-placeholder.php',
];
}
diff --git a/core/modules/views/tests/src/Functional/Update/BulkFormUpdateTest.php b/core/modules/views/tests/src/Functional/Update/BulkFormUpdateTest.php
index 5db54d2..6530252 100644
--- a/core/modules/views/tests/src/Functional/Update/BulkFormUpdateTest.php
+++ b/core/modules/views/tests/src/Functional/Update/BulkFormUpdateTest.php
@@ -18,7 +18,7 @@ class BulkFormUpdateTest extends UpdatePathTestBase {
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz',
- __DIR__ . '/../../../fixtures/update/legacy-bulk-form-update.php'
+ __DIR__ . '/../../../fixtures/update/legacy-bulk-form-update.php',
];
}
diff --git a/core/modules/views/tests/src/Kernel/Entity/ViewEntityDependenciesTest.php b/core/modules/views/tests/src/Kernel/Entity/ViewEntityDependenciesTest.php
index 32aac17..34f5812 100644
--- a/core/modules/views/tests/src/Kernel/Entity/ViewEntityDependenciesTest.php
+++ b/core/modules/views/tests/src/Kernel/Entity/ViewEntityDependenciesTest.php
@@ -89,7 +89,7 @@ class ViewEntityDependenciesTest extends ViewsKernelTestBase {
'comment',
'node',
'user',
- ]
+ ],
];
// Tests dependencies of relationships.
$expected['test_relationship_dependency'] = [
@@ -97,7 +97,7 @@ class ViewEntityDependenciesTest extends ViewsKernelTestBase {
'comment',
'node',
'user',
- ]
+ ],
];
$expected['test_plugin_dependencies'] = [
'module' => [
@@ -108,24 +108,24 @@ class ViewEntityDependenciesTest extends ViewsKernelTestBase {
'RowTest',
'StaticTest',
'StyleTest',
- ]
+ ],
];
$expected['test_argument_dependency'] = [
'config' => [
'core.entity_view_mode.node.teaser',
- 'field.storage.node.body'
+ 'field.storage.node.body',
],
'content' => [
'ArgumentDefaultTest',
- 'ArgumentValidatorTest'
+ 'ArgumentValidatorTest',
],
'module' => [
'node',
// The argument handler is provided by the search module.
'search',
'text',
- 'user'
+ 'user',
],
];
@@ -145,25 +145,25 @@ class ViewEntityDependenciesTest extends ViewsKernelTestBase {
],
'content' => [
'ArgumentDefaultTest',
- 'ArgumentValidatorTest'
+ 'ArgumentValidatorTest',
],
'module' => [
'core',
'node',
'search',
'user',
- 'views'
+ 'views',
],
];
$expected_display['page'] = [
'config' => [
- 'field.storage.node.body'
+ 'field.storage.node.body',
],
'module' => [
'core',
'node',
'text',
- 'views'
+ 'views',
],
];
diff --git a/core/modules/views/tests/src/Kernel/Handler/AreaEmptyTest.php b/core/modules/views/tests/src/Kernel/Handler/AreaEmptyTest.php
index 0f209ca..a113f0c 100644
--- a/core/modules/views/tests/src/Kernel/Handler/AreaEmptyTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/AreaEmptyTest.php
@@ -35,8 +35,8 @@ class AreaEmptyTest extends ViewsKernelTestBase {
'title' => 'Test Example area',
'help' => 'A area handler which just exists for tests.',
'area' => [
- 'id' => 'test_example'
- ]
+ 'id' => 'test_example',
+ ],
];
return $data;
diff --git a/core/modules/views/tests/src/Kernel/Handler/FieldCounterTest.php b/core/modules/views/tests/src/Kernel/Handler/FieldCounterTest.php
index b5c52fe..dbd04d8 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FieldCounterTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FieldCounterTest.php
@@ -62,7 +62,7 @@ class FieldCounterTest extends ViewsKernelTestBase {
'table' => 'views',
'field' => 'counter',
'relationship' => 'none',
- 'counter_start' => $rand_start
+ 'counter_start' => $rand_start,
],
'name' => [
'id' => 'name',
diff --git a/core/modules/views/tests/src/Kernel/Handler/FieldFieldTest.php b/core/modules/views/tests/src/Kernel/Handler/FieldFieldTest.php
index 8bdab81..a738dcf 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FieldFieldTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FieldFieldTest.php
@@ -82,7 +82,7 @@ class FieldFieldTest extends ViewsKernelTestBase {
$this->testUsers[$i] = User::create([
'name' => 'test ' . $i,
'timezone' => User::getAllowedTimezones()[$i],
- 'created' => REQUEST_TIME - rand(0, 3600)
+ 'created' => REQUEST_TIME - rand(0, 3600),
]);
$this->testUsers[$i]->save();
}
@@ -279,8 +279,8 @@ class FieldFieldTest extends ViewsKernelTestBase {
$render = $executable->display_handler->render();
$expected_attachments = [
'library' => [
- 'views/views.module'
- ]
+ 'views/views.module',
+ ],
];
foreach ($this->entities as $entity) {
$expected_attachments['library'][] = 'foo/fake_library';
diff --git a/core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php b/core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php
index aefa484..f3ea97c 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php
@@ -809,7 +809,7 @@ class FieldKernelTest extends ViewsKernelTestBase {
'khoảng cách từ đại lí đến',
'của hãng bao gồm ba dòng',
'сд асд асд ас',
- 'асд асд асд ас'
+ 'асд асд асд ас',
];
// Just test maxlength without word boundary.
$alter = [
diff --git a/core/modules/views/tests/src/Kernel/Handler/SortTranslationTest.php b/core/modules/views/tests/src/Kernel/Handler/SortTranslationTest.php
index e49ef7a..ac8000a 100644
--- a/core/modules/views/tests/src/Kernel/Handler/SortTranslationTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/SortTranslationTest.php
@@ -59,7 +59,7 @@ class SortTranslationTest extends ViewsKernelTestBase {
'entity_type' => 'node',
'bundle' => 'article',
'label' => 'Translated text',
- 'translatable' => TRUE
+ 'translatable' => TRUE,
])->save();
FieldStorageConfig::create([
diff --git a/core/modules/views/tests/src/Kernel/Plugin/ArgumentValidatorTest.php b/core/modules/views/tests/src/Kernel/Plugin/ArgumentValidatorTest.php
index 34d426d..82876f1 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/ArgumentValidatorTest.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/ArgumentValidatorTest.php
@@ -41,8 +41,8 @@ class ArgumentValidatorTest extends ViewsKernelTestBase {
$options = [
'specify_validation' => TRUE,
'validate' => [
- 'type' => 'argument_validator_test'
- ]
+ 'type' => 'argument_validator_test',
+ ],
];
$id = $view->addHandler('default', 'argument', 'views_test_data', 'name', $options);
$view->initHandlers();
diff --git a/core/modules/views/tests/src/Kernel/Plugin/BlockDependenciesTest.php b/core/modules/views/tests/src/Kernel/Plugin/BlockDependenciesTest.php
index 1a9f32e..5b634af 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/BlockDependenciesTest.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/BlockDependenciesTest.php
@@ -37,7 +37,7 @@ class BlockDependenciesTest extends ViewsKernelTestBase {
$expected = [
'config' => ['views.view.test_exposed_block'],
'module' => ['views'],
- 'theme' => ['stark']
+ 'theme' => ['stark'],
];
$this->assertIdentical($expected, $dependencies);
}
@@ -53,7 +53,7 @@ class BlockDependenciesTest extends ViewsKernelTestBase {
$expected = [
'config' => ['views.view.content_recent'],
'module' => ['views'],
- 'theme' => ['stark']
+ 'theme' => ['stark'],
];
$this->assertIdentical($expected, $dependencies);
}
diff --git a/core/modules/views/tests/src/Kernel/Plugin/CacheTest.php b/core/modules/views/tests/src/Kernel/Plugin/CacheTest.php
index 708b404..caa479b 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/CacheTest.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/CacheTest.php
@@ -74,7 +74,7 @@ class CacheTest extends ViewsKernelTestBase {
'options' => [
'results_lifespan' => '3600',
'output_lifespan' => '3600',
- ]
+ ],
]);
// Test the default (non-paged) display.
@@ -188,7 +188,7 @@ class CacheTest extends ViewsKernelTestBase {
'options' => [
'results_lifespan' => '3600',
'output_lifespan' => '3600',
- ]
+ ],
]);
$mapping = ['views_test_data_name' => 'name'];
@@ -271,7 +271,7 @@ class CacheTest extends ViewsKernelTestBase {
'type' => 'time',
'options' => [
'output_lifespan' => '3600',
- ]
+ ],
]);
$output = $view->buildRenderable();
@@ -330,7 +330,7 @@ class CacheTest extends ViewsKernelTestBase {
'options' => [
'results_lifespan' => '3600',
'output_lifespan' => '3600',
- ]
+ ],
]);
$this->executeView($view);
@@ -392,9 +392,9 @@ class CacheTest extends ViewsKernelTestBase {
$options = [
'default_argument_type' => 'argument_default_test',
'default_argument_options' => [
- 'value' => 'John'
+ 'value' => 'John',
],
- 'default_action' => 'default'
+ 'default_action' => 'default',
];
$view->addHandler('default', 'argument', 'views_test_data', 'name', $options);
$view->initHandlers();
diff --git a/core/modules/views/tests/src/Kernel/Plugin/Display/ViewsMenuLinkTest.php b/core/modules/views/tests/src/Kernel/Plugin/Display/ViewsMenuLinkTest.php
index d08adaa..a6776b5 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/Display/ViewsMenuLinkTest.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/Display/ViewsMenuLinkTest.php
@@ -17,7 +17,7 @@ class ViewsMenuLinkTest extends ViewsKernelTestBase {
public static $modules = [
'menu_ui',
'user',
- 'views'
+ 'views',
];
/**
diff --git a/core/modules/views/tests/src/Kernel/Plugin/FieldOrLanguageJoinTest.php b/core/modules/views/tests/src/Kernel/Plugin/FieldOrLanguageJoinTest.php
index 940ab7a..34e4f93 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/FieldOrLanguageJoinTest.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/FieldOrLanguageJoinTest.php
@@ -88,12 +88,12 @@ class FieldOrLanguageJoinTest extends RelationshipJoinTestBase {
$configuration['extra'] = [
[
'field' => 'name',
- 'value' => $random_name_1
+ 'value' => $random_name_1,
],
[
'field' => 'name',
'value' => $random_name_2,
- 'operator' => '<>'
+ 'operator' => '<>',
],
];
$join_info = $this->buildJoin($view, $configuration, 'users3');
@@ -110,7 +110,7 @@ class FieldOrLanguageJoinTest extends RelationshipJoinTestBase {
$configuration['extra'] = [
[
'field' => 'name',
- 'value' => $random_name_1
+ 'value' => $random_name_1,
],
[
'field' => 'name',
diff --git a/core/modules/views/tests/src/Kernel/Plugin/JoinTest.php b/core/modules/views/tests/src/Kernel/Plugin/JoinTest.php
index 1c196a1..1086612 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/JoinTest.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/JoinTest.php
@@ -129,12 +129,12 @@ class JoinTest extends RelationshipJoinTestBase {
$configuration['extra'] = [
[
'field' => 'name',
- 'value' => $random_name_1
+ 'value' => $random_name_1,
],
[
'field' => 'name',
'value' => $random_name_2,
- 'operator' => '<>'
+ 'operator' => '<>',
],
];
$join = $this->manager->createInstance('standard', $configuration);
@@ -156,7 +156,7 @@ class JoinTest extends RelationshipJoinTestBase {
$configuration['extra'] = [
[
'field' => 'name',
- 'value' => $random_name_1
+ 'value' => $random_name_1,
],
[
'field' => 'name',
@@ -178,7 +178,7 @@ class JoinTest extends RelationshipJoinTestBase {
$configuration['extra'] = [
[
'field' => 'langcode',
- 'value' => 'en'
+ 'value' => 'en',
],
[
'left_field' => 'status',
@@ -187,7 +187,7 @@ class JoinTest extends RelationshipJoinTestBase {
],
[
'field' => 'name',
- 'left_field' => 'name'
+ 'left_field' => 'name',
],
];
$join = $this->manager->createInstance('standard', $configuration);
diff --git a/core/modules/views/tests/src/Kernel/Plugin/RelationshipJoinTestBase.php b/core/modules/views/tests/src/Kernel/Plugin/RelationshipJoinTestBase.php
index 19d5e95..191024e 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/RelationshipJoinTestBase.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/RelationshipJoinTestBase.php
@@ -55,7 +55,7 @@ abstract class RelationshipJoinTestBase extends PluginKernelTestBase {
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
- 'default' => 0
+ 'default' => 0,
];
return $schema;
@@ -74,8 +74,8 @@ abstract class RelationshipJoinTestBase extends PluginKernelTestBase {
'relationship' => [
'id' => 'standard',
'base' => 'users_field_data',
- 'base field' => 'uid'
- ]
+ 'base field' => 'uid',
+ ],
];
return $data;
diff --git a/core/modules/views/tests/src/Kernel/Plugin/RelationshipTest.php b/core/modules/views/tests/src/Kernel/Plugin/RelationshipTest.php
index 802befe..9734626 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/RelationshipTest.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/RelationshipTest.php
@@ -78,8 +78,8 @@ class RelationshipTest extends RelationshipJoinTestBase {
$expected_result = [
[
'name' => 'John',
- 'uid' => 1
- ]
+ 'uid' => 1,
+ ],
];
$this->assertIdenticalResultset($view, $expected_result, $this->columnMap);
$view->destroy();
@@ -101,8 +101,8 @@ class RelationshipTest extends RelationshipJoinTestBase {
$expected_result = [
[
'name' => 'John',
- 'uid' => 1
- ]
+ 'uid' => 1,
+ ],
];
$this->assertIdenticalResultset($view, $expected_result, $this->columnMap);
$view->destroy();
diff --git a/core/modules/views/tests/src/Kernel/Plugin/ViewsBlockTest.php b/core/modules/views/tests/src/Kernel/Plugin/ViewsBlockTest.php
index 879f6d4..7c49327 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/ViewsBlockTest.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/ViewsBlockTest.php
@@ -103,7 +103,7 @@ class ViewsBlockTest extends ViewsKernelTestBase {
'title' => 'Overridden title',
'default_argument_type' => 'fixed',
'default_argument_options' => [
- 'argument' => 'fixed'
+ 'argument' => 'fixed',
],
'validate' => [
'type' => 'none',
@@ -113,7 +113,7 @@ class ViewsBlockTest extends ViewsKernelTestBase {
'table' => 'views_test_data',
'field' => 'name',
'plugin_id' => 'string',
- ]
+ ],
]);
$view->save();
diff --git a/core/modules/views/tests/src/Kernel/ViewStorageTest.php b/core/modules/views/tests/src/Kernel/ViewStorageTest.php
index 7cf953a..e6cce86 100644
--- a/core/modules/views/tests/src/Kernel/ViewStorageTest.php
+++ b/core/modules/views/tests/src/Kernel/ViewStorageTest.php
@@ -183,22 +183,22 @@ class ViewStorageTest extends ViewsKernelTestBase {
'display_plugin' => 'page',
'id' => 'page_2',
'display_title' => 'Page 1',
- 'position' => 1
+ 'position' => 1,
],
'feed_1' => [
'display_options' => ['path' => 'test.xml'],
'display_plugin' => 'feed',
'id' => 'feed',
'display_title' => 'Feed',
- 'position' => 2
+ 'position' => 2,
],
'page_2' => [
'display_options' => ['path' => 'test/%/extra'],
'display_plugin' => 'page',
'id' => 'page_2',
'display_title' => 'Page 2',
- 'position' => 3
- ]
+ 'position' => 3,
+ ],
];
$view = $this->controller->create($config);
@@ -275,8 +275,8 @@ class ViewStorageTest extends ViewsKernelTestBase {
$options = [
'alter' => [
- 'text' => $this->randomMachineName()
- ]
+ 'text' => $this->randomMachineName(),
+ ],
];
$id2 = $view->addHandler($display_id, 'field', 'views_test_data', 'name', $options);
$item2 = $view->getHandler($display_id, 'field', 'name');
@@ -296,7 +296,7 @@ class ViewStorageTest extends ViewsKernelTestBase {
$item = [
'alter' => [
'text' => $this->randomMachineName(),
- ]
+ ],
] + $item1;
$expected_items[$id1] = $item;
$view->setHandler($display_id, 'field', $id1, $item);
diff --git a/core/modules/views/tests/src/Unit/EntityViewsDataTest.php b/core/modules/views/tests/src/Unit/EntityViewsDataTest.php
index a581c86..956f7dc 100644
--- a/core/modules/views/tests/src/Unit/EntityViewsDataTest.php
+++ b/core/modules/views/tests/src/Unit/EntityViewsDataTest.php
@@ -457,7 +457,7 @@ class EntityViewsDataTest extends UnitTestCase {
->setLabel('ID')
->setDescription('The ID of the user entity.')
->setReadOnly(TRUE)
- ->setSetting('unsigned', TRUE)
+ ->setSetting('unsigned', TRUE),
];
$this->entityManager->expects($this->any())
->method('getBaseFieldDefinitions')
@@ -578,7 +578,7 @@ class EntityViewsDataTest extends UnitTestCase {
->setLabel('ID')
->setDescription('The ID of the user entity.')
->setReadOnly(TRUE)
- ->setSetting('unsigned', TRUE)
+ ->setSetting('unsigned', TRUE),
];
$entity_test_type = new ConfigEntityType(['id' => 'entity_test_bundle']);
@@ -730,7 +730,7 @@ class EntityViewsDataTest extends UnitTestCase {
->setLabel('ID')
->setDescription('The ID of the user entity.')
->setReadOnly(TRUE)
- ->setSetting('unsigned', TRUE)
+ ->setSetting('unsigned', TRUE),
];
$this->entityManager->expects($this->any())
->method('getBaseFieldDefinitions')
diff --git a/core/modules/views/tests/src/Unit/Plugin/Derivative/ViewsLocalTaskTest.php b/core/modules/views/tests/src/Unit/Plugin/Derivative/ViewsLocalTaskTest.php
index 7ecf9ef..c63258a 100644
--- a/core/modules/views/tests/src/Unit/Plugin/Derivative/ViewsLocalTaskTest.php
+++ b/core/modules/views/tests/src/Unit/Plugin/Derivative/ViewsLocalTaskTest.php
@@ -39,7 +39,7 @@ class ViewsLocalTaskTest extends UnitTestCase {
protected $baseDefinition = [
'class' => '\Drupal\views\Plugin\Menu\LocalTask\ViewsLocalTask',
- 'deriver' => '\Drupal\views\Plugin\Derivative\ViewsLocalTask'
+ 'deriver' => '\Drupal\views\Plugin\Derivative\ViewsLocalTask',
];
/**
diff --git a/core/modules/views/tests/src/Unit/Plugin/HandlerBaseTest.php b/core/modules/views/tests/src/Unit/Plugin/HandlerBaseTest.php
index ac5a1fe..ec79b52 100644
--- a/core/modules/views/tests/src/Unit/Plugin/HandlerBaseTest.php
+++ b/core/modules/views/tests/src/Unit/Plugin/HandlerBaseTest.php
@@ -44,7 +44,7 @@ class HandlerBaseTest extends UnitTestCase {
->method('get')
->with('test_entity_type_table')
->willReturn([
- 'table' => ['entity type' => 'test_entity_type']
+ 'table' => ['entity type' => 'test_entity_type'],
]);
$handler->setViewsData($this->viewsData);
diff --git a/core/modules/views/tests/src/Unit/Plugin/area/ViewTest.php b/core/modules/views/tests/src/Unit/Plugin/area/ViewTest.php
index 98a1554..c3c180a 100644
--- a/core/modules/views/tests/src/Unit/Plugin/area/ViewTest.php
+++ b/core/modules/views/tests/src/Unit/Plugin/area/ViewTest.php
@@ -54,7 +54,7 @@ class ViewTest extends UnitTestCase {
->method('load')
->willReturnMap([
['this', $view_this],
- ['other', $view_other]
+ ['other', $view_other],
]);
$this->viewHandler->view->storage = $view_this;
diff --git a/core/modules/views/tests/src/Unit/Plugin/field/FieldTest.php b/core/modules/views/tests/src/Unit/Plugin/field/FieldTest.php
index 2b929f3..b12b49c 100644
--- a/core/modules/views/tests/src/Unit/Plugin/field/FieldTest.php
+++ b/core/modules/views/tests/src/Unit/Plugin/field/FieldTest.php
@@ -118,7 +118,7 @@ class FieldTest extends UnitTestCase {
public function testDefineOptionsWithNoOptions() {
$definition = [
'entity_type' => 'test_entity',
- 'field_name' => 'title'
+ 'field_name' => 'title',
];
$handler = new EntityField([], 'field', $definition, $this->entityManager, $this->formatterPluginManager, $this->fieldTypePluginManager, $this->languageManager, $this->renderer);
@@ -147,7 +147,7 @@ class FieldTest extends UnitTestCase {
'entity_type' => 'test_entity',
'field_name' => 'title',
'default_formatter' => 'test_example',
- 'default_formatter_settings' => ['link_to_entity' => TRUE]
+ 'default_formatter_settings' => ['link_to_entity' => TRUE],
];
$handler = new EntityField([], 'field', $definition, $this->entityManager, $this->formatterPluginManager, $this->fieldTypePluginManager, $this->languageManager, $this->renderer);
@@ -174,7 +174,7 @@ class FieldTest extends UnitTestCase {
$definition = [
'entity_type' => 'test_entity',
'field_name' => 'title',
- 'default_formatter_settings' => ['link_to_entity' => TRUE]
+ 'default_formatter_settings' => ['link_to_entity' => TRUE],
];
$handler = new EntityField([], 'field', $definition, $this->entityManager, $this->formatterPluginManager, $this->fieldTypePluginManager, $this->languageManager, $this->renderer);
@@ -200,7 +200,7 @@ class FieldTest extends UnitTestCase {
public function testCalculateDependenciesWithBaseField() {
$definition = [
'entity_type' => 'test_entity',
- 'field_name' => 'title'
+ 'field_name' => 'title',
];
$handler = new EntityField([], 'field', $definition, $this->entityManager, $this->formatterPluginManager, $this->fieldTypePluginManager, $this->languageManager, $this->renderer);
@@ -222,7 +222,7 @@ class FieldTest extends UnitTestCase {
public function testCalculateDependenciesWithConfiguredField() {
$definition = [
'entity_type' => 'test_entity',
- 'field_name' => 'body'
+ 'field_name' => 'body',
];
$handler = new EntityField([], 'field', $definition, $this->entityManager, $this->formatterPluginManager, $this->fieldTypePluginManager, $this->languageManager, $this->renderer);
@@ -263,7 +263,7 @@ class FieldTest extends UnitTestCase {
->method('get')
->with('test_entity_table')
->willReturn([
- 'table' => ['entity type' => 'test_entity']
+ 'table' => ['entity type' => 'test_entity'],
]);
$access_control_handler = $this->getMock('Drupal\Core\Entity\EntityAccessControlHandlerInterface');
diff --git a/core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php b/core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php
index ef0e812..d948407 100644
--- a/core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php
+++ b/core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php
@@ -196,7 +196,7 @@ class PagerPluginBaseTest extends UnitTestCase {
// Now we are on the second page, which has just a single one left.
[5, 6, 1, FALSE],
// Increase the total items, so we have some available on the third page.
- [5, 12, 1, TRUE]
+ [5, 12, 1, TRUE],
];
}
diff --git a/core/modules/views/tests/src/Unit/Plugin/views/field/EntityOperationsUnitTest.php b/core/modules/views/tests/src/Unit/Plugin/views/field/EntityOperationsUnitTest.php
index 0900df6..022f532 100644
--- a/core/modules/views/tests/src/Unit/Plugin/views/field/EntityOperationsUnitTest.php
+++ b/core/modules/views/tests/src/Unit/Plugin/views/field/EntityOperationsUnitTest.php
@@ -116,7 +116,7 @@ class EntityOperationsUnitTest extends UnitTestCase {
$expected_build = [
'#type' => 'operations',
- '#links' => $operations
+ '#links' => $operations,
];
$expected_build['#links']['foo']['query'] = ['destination' => 'foobar'];
$build = $this->plugin->render($result);
@@ -158,7 +158,7 @@ class EntityOperationsUnitTest extends UnitTestCase {
$expected_build = [
'#type' => 'operations',
- '#links' => $operations
+ '#links' => $operations,
];
$build = $this->plugin->render($result);
$this->assertSame($expected_build, $build);
diff --git a/core/modules/views/tests/src/Unit/Plugin/views/query/SqliteDateSqlTest.php b/core/modules/views/tests/src/Unit/Plugin/views/query/SqliteDateSqlTest.php
index f296507..749a1ef 100644
--- a/core/modules/views/tests/src/Unit/Plugin/views/query/SqliteDateSqlTest.php
+++ b/core/modules/views/tests/src/Unit/Plugin/views/query/SqliteDateSqlTest.php
@@ -66,7 +66,7 @@ class SqliteDateSqlTest extends UnitTestCase {
['foo.field', 'Y-y-M-m', "strftime('%Y-%Y-%m-%m', foo.field, 'unixepoch')"],
['bar.field', 'n-F D d l', "strftime('%m-%m %d %d %d', bar.field, 'unixepoch')"],
['baz.bar_field', 'j/W/H-h i s A', "strftime('%d/%W/%H-%H %M %S ', baz.bar_field, 'unixepoch')"],
- ['foo.field', 'W', "CAST(((strftime('%j', date(strftime('%Y-%m-%d', foo.field, 'unixepoch'), '-3 days', 'weekday 4')) - 1) / 7 + 1) AS NUMERIC)"]
+ ['foo.field', 'W', "CAST(((strftime('%j', date(strftime('%Y-%m-%d', foo.field, 'unixepoch'), '-3 days', 'weekday 4')) - 1) / 7 + 1) AS NUMERIC)"],
];
}
diff --git a/core/modules/views/tests/src/Unit/PluginBaseTest.php b/core/modules/views/tests/src/Unit/PluginBaseTest.php
index 622b42a..afa849f 100644
--- a/core/modules/views/tests/src/Unit/PluginBaseTest.php
+++ b/core/modules/views/tests/src/Unit/PluginBaseTest.php
@@ -101,7 +101,7 @@ class PluginBaseTest extends UnitTestCase {
'expected' => [
'key' => 'value2',
],
- ''
+ '',
];
// Set no storage but an options value, so the options value should be kept.
$test_parameters[] = [
diff --git a/core/modules/views/tests/src/Unit/ViewExecutableTest.php b/core/modules/views/tests/src/Unit/ViewExecutableTest.php
index b6d3c91..a86ead1 100644
--- a/core/modules/views/tests/src/Unit/ViewExecutableTest.php
+++ b/core/modules/views/tests/src/Unit/ViewExecutableTest.php
@@ -295,7 +295,7 @@ class ViewExecutableTest extends UnitTestCase {
unset($view->display_handler);
$expected = [
'test_hook__test_view',
- 'test_hook'
+ 'test_hook',
];
$this->assertEquals($expected, $view->buildThemeFunctions('test_hook'));
@@ -307,7 +307,7 @@ class ViewExecutableTest extends UnitTestCase {
'test_hook__two',
'test_hook__and_three',
'test_hook__test_view',
- 'test_hook'
+ 'test_hook',
];
$this->assertEquals($expected, $view->buildThemeFunctions('test_hook'));
@@ -323,7 +323,7 @@ class ViewExecutableTest extends UnitTestCase {
'test_hook__test_view__default2',
'test_hook__default2',
'test_hook__test_view',
- 'test_hook'
+ 'test_hook',
];
$this->assertEquals($expected, $view->buildThemeFunctions('test_hook'));
}
diff --git a/core/modules/views/tests/src/Unit/ViewsTest.php b/core/modules/views/tests/src/Unit/ViewsTest.php
index 00476c5..e94068f 100644
--- a/core/modules/views/tests/src/Unit/ViewsTest.php
+++ b/core/modules/views/tests/src/Unit/ViewsTest.php
@@ -123,7 +123,7 @@ class ViewsTest extends UnitTestCase {
'type_a' => [
'display_plugin' => 'type_a',
'display_options' => [
- 'enabled' => FALSE
+ 'enabled' => FALSE,
],
],
// Type D intentionally doesn't exist.
diff --git a/core/modules/views/views.theme.inc b/core/modules/views/views.theme.inc
index a26742b..f3f287e 100644
--- a/core/modules/views/views.theme.inc
+++ b/core/modules/views/views.theme.inc
@@ -575,12 +575,12 @@ function template_preprocess_views_view_table(&$variables) {
if (!empty($column_reference['content']) && !empty($options['info'][$column]['separator'])) {
$column_reference['content'][] = [
'separator' => ['#markup' => $options['info'][$column]['separator']],
- 'field_output' => ['#markup' => $field_output]
+ 'field_output' => ['#markup' => $field_output],
];
}
else {
$column_reference['content'][] = [
- 'field_output' => ['#markup' => $field_output]
+ 'field_output' => ['#markup' => $field_output],
];
}
}
diff --git a/core/modules/views_ui/admin.inc b/core/modules/views_ui/admin.inc
index 1b8b88f..63c6190 100644
--- a/core/modules/views_ui/admin.inc
+++ b/core/modules/views_ui/admin.inc
@@ -286,7 +286,7 @@ function views_ui_build_form_url(FormStateInterface $form_state) {
$route_parameters = [
'js' => $ajax,
'view' => $name,
- 'display_id' => $display_id
+ 'display_id' => $display_id,
];
$url = Url::fromRoute($route_name, $route_parameters);
if ($type = $form_state->get('type')) {
diff --git a/core/modules/views_ui/src/Form/AdvancedSettingsForm.php b/core/modules/views_ui/src/Form/AdvancedSettingsForm.php
index 534006c..f6efde4 100644
--- a/core/modules/views_ui/src/Form/AdvancedSettingsForm.php
+++ b/core/modules/views_ui/src/Form/AdvancedSettingsForm.php
@@ -78,7 +78,7 @@ class AdvancedSettingsForm extends ConfigFormBase {
'#default_value' => array_filter($config->get('display_extenders')),
'#options' => $options,
'#type' => 'checkboxes',
- '#description' => $this->t('Select extensions of the views interface.')
+ '#description' => $this->t('Select extensions of the views interface.'),
];
}
diff --git a/core/modules/views_ui/src/Form/Ajax/Rearrange.php b/core/modules/views_ui/src/Form/Ajax/Rearrange.php
index b2b1e8e..c904ff3 100644
--- a/core/modules/views_ui/src/Form/Ajax/Rearrange.php
+++ b/core/modules/views_ui/src/Form/Ajax/Rearrange.php
@@ -85,7 +85,7 @@ class Rearrange extends ViewsFormBase {
'action' => 'order',
'relationship' => 'sibling',
'group' => 'weight',
- ]
+ ],
],
'#tree' => TRUE,
'#prefix' => '<div class="scroll" data-drupal-views-scroll>',
diff --git a/core/modules/views_ui/src/Form/Ajax/ReorderDisplays.php b/core/modules/views_ui/src/Form/Ajax/ReorderDisplays.php
index 81eb6f2..7e5f83f 100644
--- a/core/modules/views_ui/src/Form/Ajax/ReorderDisplays.php
+++ b/core/modules/views_ui/src/Form/Ajax/ReorderDisplays.php
@@ -44,7 +44,7 @@ class ReorderDisplays extends ViewsFormBase {
]);
$form['view'] = [
'#type' => 'value',
- '#value' => $view
+ '#value' => $view,
];
$displays = $view->get('display');
@@ -68,7 +68,7 @@ class ReorderDisplays extends ViewsFormBase {
'action' => 'order',
'relationship' => 'sibling',
'group' => 'weight',
- ]
+ ],
],
'#tree' => TRUE,
'#prefix' => '<div class="scroll" data-drupal-views-scroll>',
diff --git a/core/modules/views_ui/src/Tests/RowUITest.php b/core/modules/views_ui/src/Tests/RowUITest.php
index 5689009..e8aa2c3 100644
--- a/core/modules/views_ui/src/Tests/RowUITest.php
+++ b/core/modules/views_ui/src/Tests/RowUITest.php
@@ -34,13 +34,13 @@ class RowUITest extends UITestBase {
$this->assertFieldByName('row[type]', 'fields', 'The default row plugin selected in the UI should be fields.');
$edit = [
- 'row[type]' => 'test_row'
+ 'row[type]' => 'test_row',
];
$this->drupalPostForm(NULL, $edit, t('Apply'));
$this->assertFieldByName('row_options[test_option]', NULL, 'Make sure the custom settings form from the test plugin appears.');
$random_name = $this->randomMachineName();
$edit = [
- 'row_options[test_option]' => $random_name
+ 'row_options[test_option]' => $random_name,
];
$this->drupalPostForm(NULL, $edit, t('Apply'));
$this->drupalGet($row_options_url);
diff --git a/core/modules/views_ui/src/ViewPreviewForm.php b/core/modules/views_ui/src/ViewPreviewForm.php
index 4bc8eaa..787527b 100644
--- a/core/modules/views_ui/src/ViewPreviewForm.php
+++ b/core/modules/views_ui/src/ViewPreviewForm.php
@@ -77,7 +77,7 @@ class ViewPreviewForm extends ViewFormBase {
return [
'#attributes' => [
'id' => 'preview-submit-wrapper',
- 'class' => ['preview-submit-wrapper']
+ 'class' => ['preview-submit-wrapper'],
],
'button' => [
'#type' => 'submit',
diff --git a/core/modules/views_ui/src/ViewUI.php b/core/modules/views_ui/src/ViewUI.php
index beb5fff..6b49fdc 100644
--- a/core/modules/views_ui/src/ViewUI.php
+++ b/core/modules/views_ui/src/ViewUI.php
@@ -713,7 +713,7 @@ class ViewUI implements ViewEntityInterface {
'data' => [
'#markup' => $path,
],
- ]
+ ],
];
}
if ($show_stats) {
diff --git a/core/modules/views_ui/tests/src/Functional/DisplayPathTest.php b/core/modules/views_ui/tests/src/Functional/DisplayPathTest.php
index 7291dc2..2f007f1 100644
--- a/core/modules/views_ui/tests/src/Functional/DisplayPathTest.php
+++ b/core/modules/views_ui/tests/src/Functional/DisplayPathTest.php
@@ -208,7 +208,7 @@ class DisplayPathTest extends UITestBase {
$edit = [
'title[0][value]' => 'Menu title',
'link[0][uri]' => '/admin/foo',
- 'menu_parent' => 'admin:system.admin'
+ 'menu_parent' => 'admin:system.admin',
];
$this->drupalPostForm('admin/structure/menu/manage/admin/add', $edit, t('Save'));
diff --git a/core/modules/views_ui/tests/src/Functional/DisplayTest.php b/core/modules/views_ui/tests/src/Functional/DisplayTest.php
index 519d522..8fa5a80 100644
--- a/core/modules/views_ui/tests/src/Functional/DisplayTest.php
+++ b/core/modules/views_ui/tests/src/Functional/DisplayTest.php
@@ -45,7 +45,7 @@ class DisplayTest extends UITestBase {
*/
public function testReorderDisplay() {
$view = [
- 'block[create]' => TRUE
+ 'block[create]' => TRUE,
];
$view = $this->randomView($view);
@@ -60,7 +60,7 @@ class DisplayTest extends UITestBase {
// Put the block display in front of the page display.
$edit = [
'displays[page_1][weight]' => 2,
- 'displays[block_1][weight]' => 1
+ 'displays[block_1][weight]' => 1,
];
$this->drupalPostForm(NULL, $edit, t('Apply'));
$this->drupalPostForm(NULL, [], t('Save'));
diff --git a/core/modules/views_ui/tests/src/Functional/HandlerTest.php b/core/modules/views_ui/tests/src/Functional/HandlerTest.php
index b4be178..7d96d0c 100644
--- a/core/modules/views_ui/tests/src/Functional/HandlerTest.php
+++ b/core/modules/views_ui/tests/src/Functional/HandlerTest.php
@@ -53,7 +53,7 @@ class HandlerTest extends UITestBase {
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
- 'default' => 0
+ 'default' => 0,
];
return $schema;
@@ -74,8 +74,8 @@ class HandlerTest extends UITestBase {
'relationship' => [
'id' => 'standard',
'base' => 'users_field_data',
- 'base field' => 'uid'
- ]
+ 'base field' => 'uid',
+ ],
];
// Create a dummy field with no help text.
@@ -180,14 +180,14 @@ class HandlerTest extends UITestBase {
'field_name' => 'field_test',
'entity_type' => 'node',
'bundle' => 'page',
- 'label' => 'The giraffe" label'
+ 'label' => 'The giraffe" label',
])->save();
FieldConfig::create([
'field_name' => 'field_test',
'entity_type' => 'node',
'bundle' => 'article',
- 'label' => 'The <em>giraffe"</em> label <script>alert("the return of the xss")</script>'
+ 'label' => 'The <em>giraffe"</em> label <script>alert("the return of the xss")</script>',
])->save();
$this->drupalGet('admin/structure/views/nojs/add-handler/content/default/field');
diff --git a/core/modules/views_ui/tests/src/Functional/StyleUITest.php b/core/modules/views_ui/tests/src/Functional/StyleUITest.php
index 1eb9c78..62f682a 100644
--- a/core/modules/views_ui/tests/src/Functional/StyleUITest.php
+++ b/core/modules/views_ui/tests/src/Functional/StyleUITest.php
@@ -33,13 +33,13 @@ class StyleUITest extends UITestBase {
$this->assertFieldByName('style[type]', 'default', 'The default style plugin selected in the UI should be unformatted list.');
$edit = [
- 'style[type]' => 'test_style'
+ 'style[type]' => 'test_style',
];
$this->drupalPostForm(NULL, $edit, t('Apply'));
$this->assertFieldByName('style_options[test_option]', NULL, 'Make sure the custom settings form from the test plugin appears.');
$random_name = $this->randomMachineName();
$edit = [
- 'style_options[test_option]' => $random_name
+ 'style_options[test_option]' => $random_name,
];
$this->drupalPostForm(NULL, $edit, t('Apply'));
$this->drupalGet($style_options_url);
diff --git a/core/modules/views_ui/tests/src/Functional/ViewsUITourTest.php b/core/modules/views_ui/tests/src/Functional/ViewsUITourTest.php
index 839fe3a..8a2dd29 100644
--- a/core/modules/views_ui/tests/src/Functional/ViewsUITourTest.php
+++ b/core/modules/views_ui/tests/src/Functional/ViewsUITourTest.php
@@ -76,7 +76,7 @@ class ViewsUITourTest extends TourTestBase {
foreach ($handler_titles as $handler_title) {
// Create source string.
$source = $this->localeStorage->createString([
- 'source' => $handler_title
+ 'source' => $handler_title,
]);
$source->save();
$this->createTranslation($source, $langcode);
diff --git a/core/modules/views_ui/tests/src/Unit/ViewListBuilderTest.php b/core/modules/views_ui/tests/src/Unit/ViewListBuilderTest.php
index b4a3df0..d448252 100644
--- a/core/modules/views_ui/tests/src/Unit/ViewListBuilderTest.php
+++ b/core/modules/views_ui/tests/src/Unit/ViewListBuilderTest.php
@@ -48,7 +48,7 @@ class ViewListBuilderTest extends UnitTestCase {
'theme' => 'views_view',
'no_ui' => TRUE,
'admin' => '',
- ]
+ ],
],
[
'page',
@@ -61,7 +61,7 @@ class ViewListBuilderTest extends UnitTestCase {
'contextual_links_locations' => ['page'],
'theme' => 'views_view',
'admin' => 'Page admin label',
- ]
+ ],
],
[
'embed',
@@ -71,7 +71,7 @@ class ViewListBuilderTest extends UnitTestCase {
'title' => 'embed',
'theme' => 'views_view',
'admin' => 'Embed admin label',
- ]
+ ],
],
]));
diff --git a/core/modules/views_ui/views_ui.module b/core/modules/views_ui/views_ui.module
index 0475bce..318d85b 100644
--- a/core/modules/views_ui/views_ui.module
+++ b/core/modules/views_ui/views_ui.module
@@ -134,7 +134,7 @@ function views_ui_preprocess_views_view(&$variables) {
// Render title for the admin preview.
if (!empty($view->live_preview)) {
$variables['title'] = [
- '#markup' => $view->getTitle()
+ '#markup' => $view->getTitle(),
];
}
diff --git a/core/modules/views_ui/views_ui.theme.inc b/core/modules/views_ui/views_ui.theme.inc
index f57132f..69eff48 100644
--- a/core/modules/views_ui/views_ui.theme.inc
+++ b/core/modules/views_ui/views_ui.theme.inc
@@ -184,7 +184,7 @@ function template_preprocess_views_ui_build_group_filter_form(&$variables) {
'action' => 'order',
'relationship' => 'sibling',
'group' => 'weight',
- ]
+ ],
],
];
@@ -353,7 +353,7 @@ function template_preprocess_views_ui_rearrange_filter_form(&$variables) {
'action' => 'order',
'relationship' => 'sibling',
'group' => 'weight',
- ]
+ ],
],
];
}
diff --git a/core/modules/workflows/src/Form/WorkflowEditForm.php b/core/modules/workflows/src/Form/WorkflowEditForm.php
index 676868d..d6560f5 100644
--- a/core/modules/workflows/src/Form/WorkflowEditForm.php
+++ b/core/modules/workflows/src/Form/WorkflowEditForm.php
@@ -77,7 +77,7 @@ class WorkflowEditForm extends EntityForm {
$header = [
'state' => $this->t('State'),
'weight' => $this->t('Weight'),
- 'operations' => $this->t('Operations')
+ 'operations' => $this->t('Operations'),
];
$form['states_container'] = [
'#type' => 'details',
@@ -117,14 +117,14 @@ class WorkflowEditForm extends EntityForm {
'edit' => [
'title' => $this->t('Edit'),
'url' => Url::fromRoute('entity.workflow.edit_state_form', ['workflow' => $workflow->id(), 'workflow_state' => $state->id()]),
- ]
+ ],
];
if ($this->entity->access('delete-state:' . $state->id())) {
$links['delete'] = [
'title' => t('Delete'),
'url' => Url::fromRoute('entity.workflow.delete_state_form', [
'workflow' => $workflow->id(),
- 'workflow_state' => $state->id()
+ 'workflow_state' => $state->id(),
]),
];
}
@@ -155,7 +155,7 @@ class WorkflowEditForm extends EntityForm {
'weight' => $this->t('Weight'),
'from' => $this->t('From'),
'to' => $this->t('To'),
- 'operations' => $this->t('Operations')
+ 'operations' => $this->t('Operations'),
];
$form['transitions_container'] = [
'#type' => 'details',
diff --git a/core/modules/workflows/src/Form/WorkflowStateEditForm.php b/core/modules/workflows/src/Form/WorkflowStateEditForm.php
index 7b8b903..0ecc3cd 100644
--- a/core/modules/workflows/src/Form/WorkflowStateEditForm.php
+++ b/core/modules/workflows/src/Form/WorkflowStateEditForm.php
@@ -121,14 +121,14 @@ class WorkflowStateEditForm extends EntityForm {
'title' => $this->t('Edit'),
'url' => Url::fromRoute('entity.workflow.edit_transition_form', [
'workflow' => $workflow->id(),
- 'workflow_transition' => $transition->id()
+ 'workflow_transition' => $transition->id(),
]),
];
$links['delete'] = [
'title' => t('Delete'),
'url' => Url::fromRoute('entity.workflow.delete_transition_form', [
'workflow' => $workflow->id(),
- 'workflow_transition' => $transition->id()
+ 'workflow_transition' => $transition->id(),
]),
];
$form['transitions'][$transition->id()] = [
@@ -230,8 +230,8 @@ class WorkflowStateEditForm extends EntityForm {
],
'#url' => Url::fromRoute('entity.workflow.delete_state_form', [
'workflow' => $this->entity->id(),
- 'workflow_state' => $this->stateId
- ])
+ 'workflow_state' => $this->stateId,
+ ]),
];
return $actions;
diff --git a/core/modules/workflows/src/Form/WorkflowTransitionEditForm.php b/core/modules/workflows/src/Form/WorkflowTransitionEditForm.php
index ac1552e..2d01e43 100644
--- a/core/modules/workflows/src/Form/WorkflowTransitionEditForm.php
+++ b/core/modules/workflows/src/Form/WorkflowTransitionEditForm.php
@@ -224,8 +224,8 @@ class WorkflowTransitionEditForm extends EntityForm {
],
'#url' => Url::fromRoute('entity.workflow.delete_transition_form', [
'workflow' => $this->entity->id(),
- 'workflow_transition' => $this->transitionId
- ])
+ 'workflow_transition' => $this->transitionId,
+ ]),
];
return $actions;
diff --git a/core/modules/workflows/src/WorkflowListBuilder.php b/core/modules/workflows/src/WorkflowListBuilder.php
index c36171a..a85ef65 100644
--- a/core/modules/workflows/src/WorkflowListBuilder.php
+++ b/core/modules/workflows/src/WorkflowListBuilder.php
@@ -73,7 +73,7 @@ class WorkflowListBuilder extends ConfigEntityListBuilder {
$row['label'] = $entity->label();
$row['type']['data'] = [
- '#markup' => $entity->getTypePlugin()->label()
+ '#markup' => $entity->getTypePlugin()->label(),
];
$items = array_map([State::class, 'labelCallback'], $entity->getTypePlugin()->getStates());
diff --git a/core/modules/workspace/tests/src/Functional/EntityResource/WorkspaceResourceTestBase.php b/core/modules/workspace/tests/src/Functional/EntityResource/WorkspaceResourceTestBase.php
index f2d394c..21227d7 100644
--- a/core/modules/workspace/tests/src/Functional/EntityResource/WorkspaceResourceTestBase.php
+++ b/core/modules/workspace/tests/src/Functional/EntityResource/WorkspaceResourceTestBase.php
@@ -125,7 +125,7 @@ abstract class WorkspaceResourceTestBase extends EntityResourceTestBase {
],
'uuid' => [
[
- 'value' => $this->entity->uuid()
+ 'value' => $this->entity->uuid(),
],
],
];
diff --git a/core/modules/workspace/tests/src/Kernel/WorkspaceIntegrationTest.php b/core/modules/workspace/tests/src/Kernel/WorkspaceIntegrationTest.php
index eae90d2..dd34274 100644
--- a/core/modules/workspace/tests/src/Kernel/WorkspaceIntegrationTest.php
+++ b/core/modules/workspace/tests/src/Kernel/WorkspaceIntegrationTest.php
@@ -381,7 +381,7 @@ class WorkspaceIntegrationTest extends KernelTestBase {
$this->switchToWorkspace('live');
$node_1 = $this->createNode([
- 'title' => 'live node 1'
+ 'title' => 'live node 1',
]);
$entity_test = EntityTestMulRev::create([
'name' => 'live entity_test_mulrev',
diff --git a/core/phpcs.xml.dist b/core/phpcs.xml.dist
index 128b84e..30c8688 100644
--- a/core/phpcs.xml.dist
+++ b/core/phpcs.xml.dist
@@ -21,6 +21,12 @@
<!-- Only include specific sniffs that pass. This ensures that, if new sniffs are added, HEAD does not fail.-->
<!-- Drupal sniffs -->
+ <rule ref="Drupal.Array.Array">
+ <!-- Sniff for these errors: CommaLastItem -->
+ <exclude name="Drupal.Array.Array.ArrayClosingIndentation"/>
+ <exclude name="Drupal.Array.Array.ArrayIndentation"/>
+ <exclude name="Drupal.Array.Array.LongLineDeclaration"/>
+ </rule>
<rule ref="Drupal.Classes.ClassCreateInstance"/>
<rule ref="Drupal.Classes.ClassDeclaration"/>
<rule ref="Drupal.Classes.FullyQualifiedNamespace"/>
diff --git a/core/tests/Drupal/FunctionalTests/Entity/ContentEntityFormFieldValidationFilteringTest.php b/core/tests/Drupal/FunctionalTests/Entity/ContentEntityFormFieldValidationFilteringTest.php
index 133e445..ad8b438 100644
--- a/core/tests/Drupal/FunctionalTests/Entity/ContentEntityFormFieldValidationFilteringTest.php
+++ b/core/tests/Drupal/FunctionalTests/Entity/ContentEntityFormFieldValidationFilteringTest.php
@@ -138,7 +138,7 @@ class ContentEntityFormFieldValidationFilteringTest extends BrowserTestBase {
// \Drupal\file\Plugin\Field\FieldWidget\FileWidget::process().
$text_file = current($this->getTestFiles('text'));
$edit = [
- 'files[test_file_0]' => \Drupal::service('file_system')->realpath($text_file->uri)
+ 'files[test_file_0]' => \Drupal::service('file_system')->realpath($text_file->uri),
];
$assert_session->elementNotExists('css', 'input#edit-test-file-0-remove-button');
$this->drupalPostForm(NULL, $edit, 'Upload');
diff --git a/core/tests/Drupal/FunctionalTests/HttpKernel/CorsIntegrationTest.php b/core/tests/Drupal/FunctionalTests/HttpKernel/CorsIntegrationTest.php
index c874834..cc43936 100644
--- a/core/tests/Drupal/FunctionalTests/HttpKernel/CorsIntegrationTest.php
+++ b/core/tests/Drupal/FunctionalTests/HttpKernel/CorsIntegrationTest.php
@@ -83,7 +83,7 @@ class CorsIntegrationTest extends BrowserTestBase {
$response = $httpClient->request('POST', $url->setAbsolute()->toString(), [
'headers' => [
'Origin' => $origin,
- ]
+ ],
]);
$this->assertEquals(200, $response->getStatusCode());
}
diff --git a/core/tests/Drupal/FunctionalTests/Routing/CaseInsensitivePathTest.php b/core/tests/Drupal/FunctionalTests/Routing/CaseInsensitivePathTest.php
index 3aaac14..96b59d7 100644
--- a/core/tests/Drupal/FunctionalTests/Routing/CaseInsensitivePathTest.php
+++ b/core/tests/Drupal/FunctionalTests/Routing/CaseInsensitivePathTest.php
@@ -63,8 +63,8 @@ class CaseInsensitivePathTest extends BrowserTestBase {
$this->drupalGet('admin/content', [
'query' => [
- 'title' => 'FooBarBaz'
- ]
+ 'title' => 'FooBarBaz',
+ ],
]);
$this->assertSession()->linkExists('FooBarBaz');
@@ -74,8 +74,8 @@ class CaseInsensitivePathTest extends BrowserTestBase {
$this->drupalGet('Admin/Content', [
'query' => [
- 'title' => 'FooBarBaz'
- ]
+ 'title' => 'FooBarBaz',
+ ],
]);
$this->assertSession()->linkExists('FooBarBaz');
diff --git a/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php b/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php
index 744f527..d7d8470 100644
--- a/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php
+++ b/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php
@@ -265,7 +265,7 @@ abstract class UpdatePathTestBase extends BrowserTestBase {
}
$selectors_handler = new SelectorsHandler([
- 'hidden_field_selector' => new HiddenFieldSelector()
+ 'hidden_field_selector' => new HiddenFieldSelector(),
]);
$session = new Session($driver, $selectors_handler);
$this->mink = new Mink();
diff --git a/core/tests/Drupal/KernelTests/Core/Config/CacheabilityMetadataConfigOverrideTest.php b/core/tests/Drupal/KernelTests/Core/Config/CacheabilityMetadataConfigOverrideTest.php
index c52e3ea..4ceebf5 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/CacheabilityMetadataConfigOverrideTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/CacheabilityMetadataConfigOverrideTest.php
@@ -21,7 +21,7 @@ class CacheabilityMetadataConfigOverrideTest extends KernelTestBase {
'config',
'config_override_test',
'system',
- 'user'
+ 'user',
];
/**
diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigDependencyTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigDependencyTest.php
index a9cd9f1..6a0f938 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/ConfigDependencyTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigDependencyTest.php
@@ -50,9 +50,9 @@ class ConfigDependencyTest extends EntityKernelTestBase {
'id' => 'entity1',
'dependencies' => [
'enforced' => [
- 'module' => ['node']
- ]
- ]
+ 'module' => ['node'],
+ ],
+ ],
]
);
$entity1->save();
@@ -200,7 +200,7 @@ class ConfigDependencyTest extends EntityKernelTestBase {
'id' => 'entity1',
'dependencies' => [
'enforced' => [
- 'module' => ['node', 'config_test']
+ 'module' => ['node', 'config_test'],
],
],
]
@@ -264,7 +264,7 @@ class ConfigDependencyTest extends EntityKernelTestBase {
'id' => 'entity_' . $entity_id_suffixes[0],
'dependencies' => [
'enforced' => [
- 'module' => ['node', 'config_test']
+ 'module' => ['node', 'config_test'],
],
],
]
@@ -309,7 +309,7 @@ class ConfigDependencyTest extends EntityKernelTestBase {
'dependencies' => [
'enforced' => [
'config' => [$entity_1->getConfigDependencyName()],
- 'module' => ['node', 'config_test']
+ 'module' => ['node', 'config_test'],
],
],
]
@@ -508,7 +508,7 @@ class ConfigDependencyTest extends EntityKernelTestBase {
// Test dependencies between configuration entities.
$entity1 = $storage->create(
[
- 'id' => 'entity1'
+ 'id' => 'entity1',
]
);
$entity1->save();
@@ -621,7 +621,7 @@ class ConfigDependencyTest extends EntityKernelTestBase {
'id' => 'entity1',
'dependencies' => [
'enforced' => [
- 'content' => [$content_entity->getConfigDependencyName()]
+ 'content' => [$content_entity->getConfigDependencyName()],
],
],
]
@@ -632,7 +632,7 @@ class ConfigDependencyTest extends EntityKernelTestBase {
'id' => 'entity2',
'dependencies' => [
'enforced' => [
- 'config' => [$entity1->getConfigDependencyName()]
+ 'config' => [$entity1->getConfigDependencyName()],
],
],
]
diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigEntityNormalizeTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigEntityNormalizeTest.php
index 4cbc16a..1b468b0 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/ConfigEntityNormalizeTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigEntityNormalizeTest.php
@@ -31,7 +31,7 @@ class ConfigEntityNormalizeTest extends KernelTestBase {
$config = $this->config('config_test.dynamic.system');
$data = [
'label' => 'foobar',
- 'additional_key' => TRUE
+ 'additional_key' => TRUE,
] + $config->getRawData();
$config->setData($data)->save();
$this->assertNotIdentical($config_entity->toArray(), $config->getRawData(), 'Stored config entity is not is equivalent to config schema.');
diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigEntityUnitTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigEntityUnitTest.php
index 807152b..154d238 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/ConfigEntityUnitTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigEntityUnitTest.php
@@ -97,7 +97,7 @@ class ConfigEntityUnitTest extends KernelTestBase {
$entity = $this->storage->create([
'id' => $this->randomMachineName(),
'label' => $this->randomString(),
- 'style' => 999
+ 'style' => 999,
]);
$entity->save();
$this->assertSame('999', $entity->style);
diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigImportRenameValidationTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigImportRenameValidationTest.php
index 01a9746..84b5a2d 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/ConfigImportRenameValidationTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigImportRenameValidationTest.php
@@ -105,7 +105,7 @@ class ConfigImportRenameValidationTest extends KernelTestBase {
catch (ConfigImporterException $e) {
$this->pass('Expected ConfigImporterException thrown when a renamed configuration entity does not match the existing entity type.');
$expected = [
- new FormattableMarkup('Entity type mismatch on rename. @old_type not equal to @new_type for existing configuration @old_name and staged configuration @new_name.', ['@old_type' => 'node_type', '@new_type' => 'config_test', '@old_name' => 'node.type.' . $content_type->id(), '@new_name' => 'config_test.dynamic.' . $test_entity_id])
+ new FormattableMarkup('Entity type mismatch on rename. @old_type not equal to @new_type for existing configuration @old_name and staged configuration @new_name.', ['@old_type' => 'node_type', '@new_type' => 'config_test', '@old_name' => 'node.type.' . $content_type->id(), '@new_name' => 'config_test.dynamic.' . $test_entity_id]),
];
$this->assertEqual($expected, $this->configImporter->getErrors());
}
@@ -134,7 +134,7 @@ class ConfigImportRenameValidationTest extends KernelTestBase {
// UUIDs match.
$this->configImporter->reset();
$expected = [
- 'config_test.old::config_test.new'
+ 'config_test.old::config_test.new',
];
$renames = $this->configImporter->getUnprocessedConfiguration('rename');
$this->assertSame($expected, $renames);
@@ -148,7 +148,7 @@ class ConfigImportRenameValidationTest extends KernelTestBase {
catch (ConfigImporterException $e) {
$this->pass('Expected ConfigImporterException thrown when simple configuration is renamed.');
$expected = [
- new FormattableMarkup('Rename operation for simple configuration. Existing configuration @old_name and staged configuration @new_name.', ['@old_name' => 'config_test.old', '@new_name' => 'config_test.new'])
+ new FormattableMarkup('Rename operation for simple configuration. Existing configuration @old_name and staged configuration @new_name.', ['@old_name' => 'config_test.old', '@new_name' => 'config_test.new']),
];
$this->assertEqual($expected, $this->configImporter->getErrors());
}
diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php
index 3aff3d5..dc4e0ae 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php
@@ -226,7 +226,7 @@ class ConfigImporterTest extends KernelTestBase {
// Add a dependency on primary, to ensure that is synced first.
'dependencies' => [
'config' => [$name_primary],
- ]
+ ],
];
$sync->write($name_secondary, $values_secondary);
@@ -265,7 +265,7 @@ class ConfigImporterTest extends KernelTestBase {
// Add a dependency on secondary, so that is synced first.
'dependencies' => [
'config' => [$name_secondary],
- ]
+ ],
];
$sync->write($name_primary, $values_primary);
$values_secondary = [
@@ -322,7 +322,7 @@ class ConfigImporterTest extends KernelTestBase {
// Add a dependency on deleter, to make sure that is synced first.
'dependencies' => [
'config' => [$name_deleter],
- ]
+ ],
];
$storage->write($name_deletee, $values_deletee);
$values_deletee['label'] = 'Updated Deletee';
@@ -338,7 +338,7 @@ class ConfigImporterTest extends KernelTestBase {
// will also be synced after the deletee due to alphabetical ordering.
'dependencies' => [
'config' => [$name_deleter],
- ]
+ ],
];
$storage->write($name_other, $values_other);
$values_other['label'] = 'Updated other';
diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php
index b2859a0..e16225d 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php
@@ -352,7 +352,7 @@ class ConfigSchemaTest extends KernelTestBase {
// If the config schema doesn't have a type it shouldn't be casted.
'no_type' => 1,
'mapping' => [
- 'string' => 1
+ 'string' => 1,
],
'float' => '3.14',
'null_float' => '',
@@ -375,7 +375,7 @@ class ConfigSchemaTest extends KernelTestBase {
'boolean' => TRUE,
'no_type' => 1,
'mapping' => [
- 'string' => '1'
+ 'string' => '1',
],
'float' => 3.14,
'null_float' => NULL,
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php b/core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php
index c18910e..dc121ea 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php
@@ -65,7 +65,7 @@ class EntityAutocompleteElementFormTest extends EntityKernelTestBase implements
for ($i = 1; $i < 3; $i++) {
$entity = EntityTest::create([
- 'name' => $this->randomMachineName()
+ 'name' => $this->randomMachineName(),
]);
$entity->save();
$this->referencedEntities[] = $entity;
@@ -297,7 +297,7 @@ class EntityAutocompleteElementFormTest extends EntityKernelTestBase implements
$form_state = (new FormState())
->setValues([
'single_no_validate' => 'single - non-existent label',
- 'single_autocreate_no_validate' => 'single - autocreate non-existent label'
+ 'single_autocreate_no_validate' => 'single - autocreate non-existent label',
]);
$form_builder->submitForm($this, $form_state);
@@ -309,7 +309,7 @@ class EntityAutocompleteElementFormTest extends EntityKernelTestBase implements
$form_state = (new FormState())
->setValues([
'single_no_validate' => 'single - non-existent label (42)',
- 'single_autocreate_no_validate' => 'single - autocreate non-existent label (43)'
+ 'single_autocreate_no_validate' => 'single - autocreate non-existent label (43)',
]);
$form_builder->submitForm($this, $form_state);
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityAccessControlHandlerTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityAccessControlHandlerTest.php
index 8545efe..c7bcc29 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityAccessControlHandlerTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityAccessControlHandlerTest.php
@@ -351,7 +351,7 @@ class EntityAccessControlHandlerTest extends EntityLanguageTestBase {
'name' => 'A test entity',