From c85afffd6a0e081d0a60fcb943404eaf0586d48b Mon Sep 17 00:00:00 2001 From: dpi <9354-dpi@users.noreply.drupalcode.org> Date: Tue, 16 Apr 2024 10:09:00 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Fixed=20Linting=20and=20Static?= =?UTF-8?q?=20Analysis?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drupalci/.gitlab-single-pipeline.yml | 3 +++ .gitlab-ci.yml | 2 +- date_recur.install | 2 +- date_recur.module | 2 +- phpcs.xml | 2 ++ phpstan-baseline.neon | 25 ------------------- phpstan.neon | 7 ++++-- src/Annotation/DateRecurInterpreter.php | 2 +- src/DateRange.php | 2 +- src/DateRecurCachedHooks.php | 2 +- src/DateRecurGranularityMap.php | 2 +- src/DateRecurHelper.php | 2 +- src/DateRecurHelperInterface.php | 2 +- src/DateRecurNonRecurringHelper.php | 2 +- src/DateRecurOccurrences.php | 4 +-- src/DateRecurPartGrid.php | 2 +- src/DateRecurRruleMap.php | 2 +- src/DateRecurRuleInterface.php | 2 +- src/DateRecurUtility.php | 2 +- src/DateRecurViewsHooks.php | 2 +- src/Entity/DateRecurInterpreter.php | 2 +- src/Entity/DateRecurInterpreterInterface.php | 2 +- .../DateRecurOccurrenceListBuilder.php | 2 +- src/Event/DateRecurEvents.php | 2 +- src/Event/DateRecurValueEvent.php | 2 +- .../DateRecurHelperArgumentException.php | 2 +- .../DateRecurRulePartIncompatible.php | 2 +- src/Form/DateRecurInterpreterAddForm.php | 2 +- src/Form/DateRecurInterpreterDeleteForm.php | 2 +- src/Form/DateRecurInterpreterEditForm.php | 2 +- .../DateRecurInterpreter/RlInterpreter.php | 2 +- src/Plugin/DateRecurInterpreterManager.php | 2 +- .../DateRecurInterpreterManagerInterface.php | 2 +- src/Plugin/DateRecurInterpreterPluginBase.php | 2 +- .../DateRecurInterpreterPluginCollection.php | 2 +- .../DateRecurInterpreterPluginInterface.php | 2 +- .../Field/DateRecurDateTimeComputed.php | 2 +- .../Field/DateRecurOccurrencesComputed.php | 2 +- .../DateRecurBasicFormatter.php | 2 +- .../FieldType/DateRecurFieldItemList.php | 2 +- src/Plugin/Field/FieldType/DateRecurItem.php | 2 +- .../FieldWidget/DateRecurBasicWidget.php | 2 +- .../Constraint/DateRecurRruleConstraint.php | 2 +- .../DateRecurRruleConstraintValidator.php | 2 +- .../DateRecurRulePartConstraint.php | 2 +- .../DateRecurRulePartConstraintValidator.php | 2 +- .../DateRecurTimeZoneConstraint.php | 2 +- .../DateRecurTimeZoneConstraintValidator.php | 2 +- src/Plugin/views/field/DateRecurDate.php | 2 +- src/Plugin/views/filter/DateRecurFilter.php | 14 +++++------ src/Rl/RlDateRecurRule.php | 2 +- src/Rl/RlHelper.php | 2 +- .../date_recur_basic_widget_test.module | 2 +- .../src/Entity/DrEntityTest.php | 2 +- .../src/Entity/DrEntityTestRev.php | 2 +- .../Entity/DrEntityTestSingleCardinality.php | 2 +- .../DateRecurInterpreter/TestInterpreter.php | 2 +- .../date_recur_subfield.module | 2 +- .../Field/FieldType/DateRecurSubItem.php | 2 +- .../Functional/DateRecurBasicWidgetTest.php | 2 +- .../Functional/DateRecurFieldSettingsTest.php | 2 +- .../Functional/DateRecurInterpreterTest.php | 3 ++- tests/src/Kernel/DateRecurBaseFieldTest.php | 2 +- .../Kernel/DateRecurBasicFormatterTest.php | 7 +++--- .../DateRecurDefaultInterpreterTest.php | 2 +- .../DateRecurFieldItemDefaultValuesTest.php | 2 +- .../src/Kernel/DateRecurFieldItemListTest.php | 2 +- tests/src/Kernel/DateRecurFieldItemTest.php | 2 +- tests/src/Kernel/DateRecurFieldTest.php | 2 +- .../DateRecurOccurrenceTableAttachedTest.php | 2 +- .../DateRecurOccurrenceTableSchemaTest.php | 2 +- .../Kernel/DateRecurOccurrenceTableTest.php | 2 +- tests/src/Kernel/DateRecurPartGridTest.php | 2 +- tests/src/Kernel/DateRecurSubFieldTest.php | 2 +- tests/src/Kernel/DateRecurTest.php | 2 +- tests/src/Kernel/DateRecurTokenTest.php | 2 +- tests/src/Kernel/DateRecurUninstallTest.php | 2 +- tests/src/Kernel/DateRecurUtilityTest.php | 2 +- .../DateRecurViewsFieldAttachedTest.php | 2 +- tests/src/Kernel/DateRecurViewsFieldTest.php | 2 +- ...RecurViewsOccurrenceFilterAttachedTest.php | 2 +- .../DateRecurViewsOccurrenceFilterTest.php | 2 +- tests/src/Unit/DateRecurDateRangeUnitTest.php | 2 +- .../DateRecurNonRecurringHelperUnitTest.php | 2 +- tests/src/Unit/DateRecurPartGridUnitTest.php | 2 +- tests/src/Unit/DateRecurRlHelperUnitTest.php | 2 +- .../DateRecurRlInterpretationUnitTest.php | 2 +- tests/src/Unit/DateRecurRruleUnitTest.php | 2 +- 88 files changed, 105 insertions(+), 120 deletions(-) diff --git a/.drupalci/.gitlab-single-pipeline.yml b/.drupalci/.gitlab-single-pipeline.yml index f0f46b5..7108b79 100644 --- a/.drupalci/.gitlab-single-pipeline.yml +++ b/.drupalci/.gitlab-single-pipeline.yml @@ -49,6 +49,9 @@ include: ################ # variables: # SKIP_ESLINT: '1' +variables: + # https://git.drupalcode.org/project/gitlab_templates/-/commit/1b6e9ff965a417882c3142453a647008b6902c0f + IGNORE_PROJECT_DRUPAL_CORE_VERSION: 1 ################################################################################### diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a0dfda4..9ae7d7c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,7 +23,7 @@ deploystacks: # manually https://gitlab.com/gitlab-org/gitlab/-/issues/11549 # Valid tags for databases are at https://git.drupalcode.org/project/drupalci_environments/-/tree/dev/db - _TARGET_CORE: ["10.2.x-dev"] - _TARGET_PHP: [ "8.1", "8.2"] + _TARGET_PHP: [ "8.2", "8.3" ] _TARGET_DB_TYPE: "mysql" _TARGET_DB_VERSION: "5.7" diff --git a/date_recur.install b/date_recur.install index 7710cc8..4803df4 100644 --- a/date_recur.install +++ b/date_recur.install @@ -5,7 +5,7 @@ * Install, update and uninstall functions for date_recur module. */ -declare(strict_types = 1); +declare(strict_types=1); use Drupal\Core\Datetime\Entity\DateFormat; use Drupal\Core\Entity\Entity\EntityFormDisplay; diff --git a/date_recur.module b/date_recur.module index 674e3be..7000e93 100644 --- a/date_recur.module +++ b/date_recur.module @@ -5,7 +5,7 @@ * Contains hooks for date_recur module. */ -declare(strict_types = 1); +declare(strict_types=1); use Drupal\Core\Render\Element; use Drupal\date_recur\DateRecurCachedHooks; diff --git a/phpcs.xml b/phpcs.xml index 7989c7d..6094971 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -1,5 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <ruleset name="My Coding Standard"> + <file>./date_recur.install</file> + <file>./date_recur.module</file> <file>./src</file> <file>./tests</file> <rule ref="PreviousNextDrupal" /> diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 1b8f5f8..717fb94 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -460,36 +460,11 @@ parameters: count: 1 path: tests/src/Functional/DateRecurBasicWidgetTest.php - - - message: "#^Call to an undefined method Drupal\\\\Tests\\\\WebAssert\\:\\:waitForElementVisible\\(\\)\\.$#" - count: 1 - path: tests/src/Functional/DateRecurInterpreterTest.php - - - - message: "#^Parameter \\#1 \\$button of method Drupal\\\\Tests\\\\WebAssert\\:\\:buttonExists\\(\\) expects string, Drupal\\\\Core\\\\StringTranslation\\\\TranslatableMarkup given\\.$#" - count: 1 - path: tests/src/Functional/DateRecurInterpreterTest.php - - - - message: "#^Parameter \\#1 \\$button of method Drupal\\\\Tests\\\\WebAssert\\:\\:buttonNotExists\\(\\) expects string, Drupal\\\\Core\\\\StringTranslation\\\\TranslatableMarkup given\\.$#" - count: 1 - path: tests/src/Functional/DateRecurInterpreterTest.php - - - - message: "#^Parameter \\#2 \\$submit of method Drupal\\\\Tests\\\\BrowserTestBase\\:\\:submitForm\\(\\) expects string, Drupal\\\\Core\\\\StringTranslation\\\\TranslatableMarkup given\\.$#" - count: 2 - path: tests/src/Functional/DateRecurInterpreterTest.php - - message: "#^Property Drupal\\\\date_recur_entity_test\\\\Entity\\\\DrEntityTest\\:\\:\\$dr \\(Drupal\\\\Core\\\\Field\\\\FieldItemListInterface\\) does not accept array\\<string, string\\>\\.$#" count: 1 path: tests/src/Kernel/DateRecurBaseFieldTest.php - - - message: "#^Parameter \\#1 \\$content of method Drupal\\\\KernelTests\\\\KernelTestBase\\:\\:setRawContent\\(\\) expects string, Drupal\\\\Component\\\\Render\\\\MarkupInterface given\\.$#" - count: 1 - path: tests/src/Kernel/DateRecurBasicFormatterTest.php - - message: "#^Property Drupal\\\\date_recur_entity_test\\\\Entity\\\\DrEntityTest\\:\\:\\$dr \\(Drupal\\\\Core\\\\Field\\\\FieldItemListInterface\\) does not accept array\\<int, array\\<string, string\\>\\>\\.$#" count: 2 diff --git a/phpstan.neon b/phpstan.neon index d738e53..f082e91 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -7,8 +7,6 @@ parameters: - src - tests reportUnmatchedIgnoredErrors: true - checkMissingIterableValueType: false - checkGenericClassInNonGenericObjectType: false fileExtensions: - php - module @@ -42,4 +40,9 @@ parameters: scanDirectories: - vendor/rlanvin/php-rrule/ - web/core/ + ignoreErrors: + - + identifier: missingType.generics + - + identifier: missingType.iterableValue diff --git a/src/Annotation/DateRecurInterpreter.php b/src/Annotation/DateRecurInterpreter.php index 854c3fd..e97a83f 100644 --- a/src/Annotation/DateRecurInterpreter.php +++ b/src/Annotation/DateRecurInterpreter.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Annotation; diff --git a/src/DateRange.php b/src/DateRange.php index a9a3816..6d16076 100644 --- a/src/DateRange.php +++ b/src/DateRange.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur; diff --git a/src/DateRecurCachedHooks.php b/src/DateRecurCachedHooks.php index 0d7395d..0f1f77e 100644 --- a/src/DateRecurCachedHooks.php +++ b/src/DateRecurCachedHooks.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur; diff --git a/src/DateRecurGranularityMap.php b/src/DateRecurGranularityMap.php index ce8aed2..345ea27 100644 --- a/src/DateRecurGranularityMap.php +++ b/src/DateRecurGranularityMap.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur; diff --git a/src/DateRecurHelper.php b/src/DateRecurHelper.php index fbeabba..7e5ff76 100644 --- a/src/DateRecurHelper.php +++ b/src/DateRecurHelper.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur; diff --git a/src/DateRecurHelperInterface.php b/src/DateRecurHelperInterface.php index 048e69a..cca898b 100644 --- a/src/DateRecurHelperInterface.php +++ b/src/DateRecurHelperInterface.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur; diff --git a/src/DateRecurNonRecurringHelper.php b/src/DateRecurNonRecurringHelper.php index 7bc41ac..799d2ca 100644 --- a/src/DateRecurNonRecurringHelper.php +++ b/src/DateRecurNonRecurringHelper.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur; diff --git a/src/DateRecurOccurrences.php b/src/DateRecurOccurrences.php index 995341b..4cd4602 100644 --- a/src/DateRecurOccurrences.php +++ b/src/DateRecurOccurrences.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur; @@ -407,7 +407,7 @@ class DateRecurOccurrences implements EventSubscriberInterface, EntityTypeListen protected function getBaseFieldStorages(ContentEntityTypeInterface $entityType): array { $baseFields = $this->entityFieldManager->getBaseFieldDefinitions($entityType->id()); $baseFields = array_filter($baseFields, - fn (FieldDefinitionInterface $fieldDefinition): bool => $this->isDateRecur($fieldDefinition->getFieldStorageDefinition()) + fn (FieldDefinitionInterface $fieldDefinition): bool => $this->isDateRecur($fieldDefinition->getFieldStorageDefinition()), ); return array_map( diff --git a/src/DateRecurPartGrid.php b/src/DateRecurPartGrid.php index d0a5bcf..a54df29 100644 --- a/src/DateRecurPartGrid.php +++ b/src/DateRecurPartGrid.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur; diff --git a/src/DateRecurRruleMap.php b/src/DateRecurRruleMap.php index 5d8fadc..dc59aee 100644 --- a/src/DateRecurRruleMap.php +++ b/src/DateRecurRruleMap.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur; diff --git a/src/DateRecurRuleInterface.php b/src/DateRecurRuleInterface.php index 0f45939..0a89bfa 100644 --- a/src/DateRecurRuleInterface.php +++ b/src/DateRecurRuleInterface.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur; diff --git a/src/DateRecurUtility.php b/src/DateRecurUtility.php index 6f23c4c..dda407f 100644 --- a/src/DateRecurUtility.php +++ b/src/DateRecurUtility.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur; diff --git a/src/DateRecurViewsHooks.php b/src/DateRecurViewsHooks.php index df07d68..b0d91cc 100644 --- a/src/DateRecurViewsHooks.php +++ b/src/DateRecurViewsHooks.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur; diff --git a/src/Entity/DateRecurInterpreter.php b/src/Entity/DateRecurInterpreter.php index 494cedf..8ab7536 100644 --- a/src/Entity/DateRecurInterpreter.php +++ b/src/Entity/DateRecurInterpreter.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Entity; diff --git a/src/Entity/DateRecurInterpreterInterface.php b/src/Entity/DateRecurInterpreterInterface.php index 454651e..56c75f4 100644 --- a/src/Entity/DateRecurInterpreterInterface.php +++ b/src/Entity/DateRecurInterpreterInterface.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Entity; diff --git a/src/Entity/Handlers/DateRecurOccurrenceListBuilder.php b/src/Entity/Handlers/DateRecurOccurrenceListBuilder.php index 9ed1135..29c472b 100644 --- a/src/Entity/Handlers/DateRecurOccurrenceListBuilder.php +++ b/src/Entity/Handlers/DateRecurOccurrenceListBuilder.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Entity\Handlers; diff --git a/src/Event/DateRecurEvents.php b/src/Event/DateRecurEvents.php index f17d8dd..938e3d1 100644 --- a/src/Event/DateRecurEvents.php +++ b/src/Event/DateRecurEvents.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Event; diff --git a/src/Event/DateRecurValueEvent.php b/src/Event/DateRecurValueEvent.php index 0f179d6..6da5263 100644 --- a/src/Event/DateRecurValueEvent.php +++ b/src/Event/DateRecurValueEvent.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Event; diff --git a/src/Exception/DateRecurHelperArgumentException.php b/src/Exception/DateRecurHelperArgumentException.php index 1616e94..f0afac4 100644 --- a/src/Exception/DateRecurHelperArgumentException.php +++ b/src/Exception/DateRecurHelperArgumentException.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Exception; diff --git a/src/Exception/DateRecurRulePartIncompatible.php b/src/Exception/DateRecurRulePartIncompatible.php index f21b4f5..e13815b 100644 --- a/src/Exception/DateRecurRulePartIncompatible.php +++ b/src/Exception/DateRecurRulePartIncompatible.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Exception; diff --git a/src/Form/DateRecurInterpreterAddForm.php b/src/Form/DateRecurInterpreterAddForm.php index 768e705..2e950b4 100644 --- a/src/Form/DateRecurInterpreterAddForm.php +++ b/src/Form/DateRecurInterpreterAddForm.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Form; diff --git a/src/Form/DateRecurInterpreterDeleteForm.php b/src/Form/DateRecurInterpreterDeleteForm.php index 42b8db1..a522aea 100644 --- a/src/Form/DateRecurInterpreterDeleteForm.php +++ b/src/Form/DateRecurInterpreterDeleteForm.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Form; diff --git a/src/Form/DateRecurInterpreterEditForm.php b/src/Form/DateRecurInterpreterEditForm.php index c919e4c..2c7965b 100644 --- a/src/Form/DateRecurInterpreterEditForm.php +++ b/src/Form/DateRecurInterpreterEditForm.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Form; diff --git a/src/Plugin/DateRecurInterpreter/RlInterpreter.php b/src/Plugin/DateRecurInterpreter/RlInterpreter.php index 4c5a6dc..97a1c7a 100644 --- a/src/Plugin/DateRecurInterpreter/RlInterpreter.php +++ b/src/Plugin/DateRecurInterpreter/RlInterpreter.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Plugin\DateRecurInterpreter; diff --git a/src/Plugin/DateRecurInterpreterManager.php b/src/Plugin/DateRecurInterpreterManager.php index 9bd475a..c587bd5 100644 --- a/src/Plugin/DateRecurInterpreterManager.php +++ b/src/Plugin/DateRecurInterpreterManager.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Plugin; diff --git a/src/Plugin/DateRecurInterpreterManagerInterface.php b/src/Plugin/DateRecurInterpreterManagerInterface.php index a423c22..a33421a 100644 --- a/src/Plugin/DateRecurInterpreterManagerInterface.php +++ b/src/Plugin/DateRecurInterpreterManagerInterface.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Plugin; diff --git a/src/Plugin/DateRecurInterpreterPluginBase.php b/src/Plugin/DateRecurInterpreterPluginBase.php index 528ad38..2926d87 100644 --- a/src/Plugin/DateRecurInterpreterPluginBase.php +++ b/src/Plugin/DateRecurInterpreterPluginBase.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Plugin; diff --git a/src/Plugin/DateRecurInterpreterPluginCollection.php b/src/Plugin/DateRecurInterpreterPluginCollection.php index 5a31de8..90a6173 100644 --- a/src/Plugin/DateRecurInterpreterPluginCollection.php +++ b/src/Plugin/DateRecurInterpreterPluginCollection.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Plugin; diff --git a/src/Plugin/DateRecurInterpreterPluginInterface.php b/src/Plugin/DateRecurInterpreterPluginInterface.php index ff72f8e..b55f644 100644 --- a/src/Plugin/DateRecurInterpreterPluginInterface.php +++ b/src/Plugin/DateRecurInterpreterPluginInterface.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Plugin; diff --git a/src/Plugin/Field/DateRecurDateTimeComputed.php b/src/Plugin/Field/DateRecurDateTimeComputed.php index 496983a..b0dc2c4 100644 --- a/src/Plugin/Field/DateRecurDateTimeComputed.php +++ b/src/Plugin/Field/DateRecurDateTimeComputed.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Plugin\Field; diff --git a/src/Plugin/Field/DateRecurOccurrencesComputed.php b/src/Plugin/Field/DateRecurOccurrencesComputed.php index fece66f..8235f8a 100644 --- a/src/Plugin/Field/DateRecurOccurrencesComputed.php +++ b/src/Plugin/Field/DateRecurOccurrencesComputed.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Plugin\Field; diff --git a/src/Plugin/Field/FieldFormatter/DateRecurBasicFormatter.php b/src/Plugin/Field/FieldFormatter/DateRecurBasicFormatter.php index a3754ee..7cc2958 100644 --- a/src/Plugin/Field/FieldFormatter/DateRecurBasicFormatter.php +++ b/src/Plugin/Field/FieldFormatter/DateRecurBasicFormatter.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Plugin\Field\FieldFormatter; diff --git a/src/Plugin/Field/FieldType/DateRecurFieldItemList.php b/src/Plugin/Field/FieldType/DateRecurFieldItemList.php index 05784d7..d17c366 100644 --- a/src/Plugin/Field/FieldType/DateRecurFieldItemList.php +++ b/src/Plugin/Field/FieldType/DateRecurFieldItemList.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Plugin\Field\FieldType; diff --git a/src/Plugin/Field/FieldType/DateRecurItem.php b/src/Plugin/Field/FieldType/DateRecurItem.php index 26617f2..e09c9dc 100644 --- a/src/Plugin/Field/FieldType/DateRecurItem.php +++ b/src/Plugin/Field/FieldType/DateRecurItem.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Plugin\Field\FieldType; diff --git a/src/Plugin/Field/FieldWidget/DateRecurBasicWidget.php b/src/Plugin/Field/FieldWidget/DateRecurBasicWidget.php index 2c6e433..0257e9a 100644 --- a/src/Plugin/Field/FieldWidget/DateRecurBasicWidget.php +++ b/src/Plugin/Field/FieldWidget/DateRecurBasicWidget.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Plugin\Field\FieldWidget; diff --git a/src/Plugin/Validation/Constraint/DateRecurRruleConstraint.php b/src/Plugin/Validation/Constraint/DateRecurRruleConstraint.php index e1306f0..6b9bdfa 100644 --- a/src/Plugin/Validation/Constraint/DateRecurRruleConstraint.php +++ b/src/Plugin/Validation/Constraint/DateRecurRruleConstraint.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Plugin\Validation\Constraint; diff --git a/src/Plugin/Validation/Constraint/DateRecurRruleConstraintValidator.php b/src/Plugin/Validation/Constraint/DateRecurRruleConstraintValidator.php index c012595..67a0a47 100644 --- a/src/Plugin/Validation/Constraint/DateRecurRruleConstraintValidator.php +++ b/src/Plugin/Validation/Constraint/DateRecurRruleConstraintValidator.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Plugin\Validation\Constraint; diff --git a/src/Plugin/Validation/Constraint/DateRecurRulePartConstraint.php b/src/Plugin/Validation/Constraint/DateRecurRulePartConstraint.php index b5fc8bc..c55b31a 100644 --- a/src/Plugin/Validation/Constraint/DateRecurRulePartConstraint.php +++ b/src/Plugin/Validation/Constraint/DateRecurRulePartConstraint.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Plugin\Validation\Constraint; diff --git a/src/Plugin/Validation/Constraint/DateRecurRulePartConstraintValidator.php b/src/Plugin/Validation/Constraint/DateRecurRulePartConstraintValidator.php index d14231a..192687c 100644 --- a/src/Plugin/Validation/Constraint/DateRecurRulePartConstraintValidator.php +++ b/src/Plugin/Validation/Constraint/DateRecurRulePartConstraintValidator.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Plugin\Validation\Constraint; diff --git a/src/Plugin/Validation/Constraint/DateRecurTimeZoneConstraint.php b/src/Plugin/Validation/Constraint/DateRecurTimeZoneConstraint.php index 8b20f68..cc1460c 100644 --- a/src/Plugin/Validation/Constraint/DateRecurTimeZoneConstraint.php +++ b/src/Plugin/Validation/Constraint/DateRecurTimeZoneConstraint.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Plugin\Validation\Constraint; diff --git a/src/Plugin/Validation/Constraint/DateRecurTimeZoneConstraintValidator.php b/src/Plugin/Validation/Constraint/DateRecurTimeZoneConstraintValidator.php index ce1405b..fe5f7a2 100644 --- a/src/Plugin/Validation/Constraint/DateRecurTimeZoneConstraintValidator.php +++ b/src/Plugin/Validation/Constraint/DateRecurTimeZoneConstraintValidator.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Plugin\Validation\Constraint; diff --git a/src/Plugin/views/field/DateRecurDate.php b/src/Plugin/views/field/DateRecurDate.php index 9225d81..fca2089 100644 --- a/src/Plugin/views/field/DateRecurDate.php +++ b/src/Plugin/views/field/DateRecurDate.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Plugin\views\field; diff --git a/src/Plugin/views/filter/DateRecurFilter.php b/src/Plugin/views/filter/DateRecurFilter.php index b08e9d9..bb58297 100644 --- a/src/Plugin/views/filter/DateRecurFilter.php +++ b/src/Plugin/views/filter/DateRecurFilter.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Plugin\views\filter; @@ -179,7 +179,7 @@ class DateRecurFilter extends FilterPluginBase { '#default_value' => $this->options['value_granularity'], ]; - $minDefault = isset($this->options['value_min']) ? DrupalDateTime::createFromFormat(\DATE_ISO8601, $this->options['value_min']) : NULL; + $minDefault = isset($this->options['value_min']) ? DrupalDateTime::createFromFormat('Y-m-d\TH:i:sO', $this->options['value_min']) : NULL; $form['value_minimum'] = [ '#title' => $this->t('Minimum date'), '#description' => $this->t('Minimum date to use. If a larger granularity than <em>seconds</em> is chosen, this date will be rounded off. For example if this date and time is in September 2018 but the granularity is <em>year</em>, then the minimum year would be 2018.'), @@ -187,7 +187,7 @@ class DateRecurFilter extends FilterPluginBase { '#default_value' => $minDefault, ]; - $maxDefault = isset($this->options['value_max']) ? DrupalDateTime::createFromFormat(\DATE_ISO8601, $this->options['value_max']) : NULL; + $maxDefault = isset($this->options['value_max']) ? DrupalDateTime::createFromFormat('Y-m-d\TH:i:sO', $this->options['value_max']) : NULL; $form['value_maximum'] = [ '#title' => $this->t('Maximum date'), '#description' => $this->t('Maximum date to use. If a larger granularity than <em>seconds</em> is chosen, this date will be rounded off. For example if this date and time is in September 2018 but the granularity is <em>year</em>, then the maximum year would be 2018.'), @@ -208,12 +208,12 @@ class DateRecurFilter extends FilterPluginBase { /** @var \Drupal\Core\Datetime\DrupalDateTime $min|null */ $min = $form_state->getValue(['options', 'value_minimum']); $min?->setTimezone($utc); - $this->options['value_min'] = $min?->format(\DATE_ISO8601); + $this->options['value_min'] = $min?->format('Y-m-d\TH:i:sO'); /** @var \Drupal\Core\Datetime\DrupalDateTime $max|null */ $max = $form_state->getValue(['options', 'value_maximum']); $max?->setTimezone($utc); - $this->options['value_max'] = $max?->format(\DATE_ISO8601); + $this->options['value_max'] = $max?->format('Y-m-d\TH:i:sO'); } /** @@ -237,10 +237,10 @@ class DateRecurFilter extends FilterPluginBase { /** @var string|null $optionValueMin */ $optionValueMin = $pluginOptions['value_min']; - $valueMin = isset($optionValueMin) ? \DateTime::createFromFormat(\DATE_ISO8601, $optionValueMin) : NULL; + $valueMin = isset($optionValueMin) ? \DateTime::createFromFormat('Y-m-d\TH:i:sO', $optionValueMin) : NULL; /** @var string|null $optionValueMax */ $optionValueMax = $pluginOptions['value_max']; - $valueMax = isset($optionValueMax) ? \DateTime::createFromFormat(\DATE_ISO8601, $optionValueMax) : NULL; + $valueMax = isset($optionValueMax) ? \DateTime::createFromFormat('Y-m-d\TH:i:sO', $optionValueMax) : NULL; $granularityFormatsMap = DateRecurGranularityMap::GRANULARITY_DATE_FORMATS; $format = $granularityFormatsMap[$granularity]; diff --git a/src/Rl/RlDateRecurRule.php b/src/Rl/RlDateRecurRule.php index 94ce1a6..303ada2 100644 --- a/src/Rl/RlDateRecurRule.php +++ b/src/Rl/RlDateRecurRule.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Rl; diff --git a/src/Rl/RlHelper.php b/src/Rl/RlHelper.php index 7280a1b..5669919 100644 --- a/src/Rl/RlHelper.php +++ b/src/Rl/RlHelper.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur\Rl; diff --git a/tests/modules/date_recur_basic_widget_test/date_recur_basic_widget_test.module b/tests/modules/date_recur_basic_widget_test/date_recur_basic_widget_test.module index 1fde2e2..11cb535 100644 --- a/tests/modules/date_recur_basic_widget_test/date_recur_basic_widget_test.module +++ b/tests/modules/date_recur_basic_widget_test/date_recur_basic_widget_test.module @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); /** * @file diff --git a/tests/modules/date_recur_entity_test/src/Entity/DrEntityTest.php b/tests/modules/date_recur_entity_test/src/Entity/DrEntityTest.php index 87a6f6d..18cbb6d 100644 --- a/tests/modules/date_recur_entity_test/src/Entity/DrEntityTest.php +++ b/tests/modules/date_recur_entity_test/src/Entity/DrEntityTest.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur_entity_test\Entity; diff --git a/tests/modules/date_recur_entity_test/src/Entity/DrEntityTestRev.php b/tests/modules/date_recur_entity_test/src/Entity/DrEntityTestRev.php index 7afdff2..014394e 100644 --- a/tests/modules/date_recur_entity_test/src/Entity/DrEntityTestRev.php +++ b/tests/modules/date_recur_entity_test/src/Entity/DrEntityTestRev.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur_entity_test\Entity; diff --git a/tests/modules/date_recur_entity_test/src/Entity/DrEntityTestSingleCardinality.php b/tests/modules/date_recur_entity_test/src/Entity/DrEntityTestSingleCardinality.php index 7f1d5b6..b56ae6b 100644 --- a/tests/modules/date_recur_entity_test/src/Entity/DrEntityTestSingleCardinality.php +++ b/tests/modules/date_recur_entity_test/src/Entity/DrEntityTestSingleCardinality.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur_entity_test\Entity; diff --git a/tests/modules/date_recur_interpreter_test/src/Plugin/DateRecurInterpreter/TestInterpreter.php b/tests/modules/date_recur_interpreter_test/src/Plugin/DateRecurInterpreter/TestInterpreter.php index 7b5f278..4e04534 100644 --- a/tests/modules/date_recur_interpreter_test/src/Plugin/DateRecurInterpreter/TestInterpreter.php +++ b/tests/modules/date_recur_interpreter_test/src/Plugin/DateRecurInterpreter/TestInterpreter.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur_interpreter_test\Plugin\DateRecurInterpreter; diff --git a/tests/modules/date_recur_subfield/date_recur_subfield.module b/tests/modules/date_recur_subfield/date_recur_subfield.module index d6fa9cc..bea12b2 100644 --- a/tests/modules/date_recur_subfield/date_recur_subfield.module +++ b/tests/modules/date_recur_subfield/date_recur_subfield.module @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); /** * @file diff --git a/tests/modules/date_recur_subfield/src/Plugin/Field/FieldType/DateRecurSubItem.php b/tests/modules/date_recur_subfield/src/Plugin/Field/FieldType/DateRecurSubItem.php index d8bd161..3348bf1 100644 --- a/tests/modules/date_recur_subfield/src/Plugin/Field/FieldType/DateRecurSubItem.php +++ b/tests/modules/date_recur_subfield/src/Plugin/Field/FieldType/DateRecurSubItem.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\date_recur_subfield\Plugin\Field\FieldType; diff --git a/tests/src/Functional/DateRecurBasicWidgetTest.php b/tests/src/Functional/DateRecurBasicWidgetTest.php index a425baf..a4402d1 100644 --- a/tests/src/Functional/DateRecurBasicWidgetTest.php +++ b/tests/src/Functional/DateRecurBasicWidgetTest.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\Tests\date_recur\Functional; diff --git a/tests/src/Functional/DateRecurFieldSettingsTest.php b/tests/src/Functional/DateRecurFieldSettingsTest.php index e69e5c8..73f9b9c 100644 --- a/tests/src/Functional/DateRecurFieldSettingsTest.php +++ b/tests/src/Functional/DateRecurFieldSettingsTest.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\Tests\date_recur\Functional; diff --git a/tests/src/Functional/DateRecurInterpreterTest.php b/tests/src/Functional/DateRecurInterpreterTest.php index 64673fd..d73fc2a 100644 --- a/tests/src/Functional/DateRecurInterpreterTest.php +++ b/tests/src/Functional/DateRecurInterpreterTest.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\Tests\date_recur\Functional; @@ -11,6 +11,7 @@ use Drupal\FunctionalJavascriptTests\WebDriverTestBase; * Tests interfaces for interpreters. * * @group date_recur + * @method \Drupal\FunctionalJavascriptTests\JSWebAssert assertSession($name = NULL) */ final class DateRecurInterpreterTest extends WebDriverTestBase { diff --git a/tests/src/Kernel/DateRecurBaseFieldTest.php b/tests/src/Kernel/DateRecurBaseFieldTest.php index eb0e45a..3188c6c 100644 --- a/tests/src/Kernel/DateRecurBaseFieldTest.php +++ b/tests/src/Kernel/DateRecurBaseFieldTest.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\Tests\date_recur\Kernel; diff --git a/tests/src/Kernel/DateRecurBasicFormatterTest.php b/tests/src/Kernel/DateRecurBasicFormatterTest.php index 34b88a6..6252f4d 100644 --- a/tests/src/Kernel/DateRecurBasicFormatterTest.php +++ b/tests/src/Kernel/DateRecurBasicFormatterTest.php @@ -1,11 +1,12 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\Tests\date_recur\Kernel; use Drupal\Core\Datetime\DateFormatInterface; use Drupal\Core\Datetime\Entity\DateFormat; +use Drupal\Core\Render\RendererInterface; use Drupal\date_recur\Entity\DateRecurInterpreter; use Drupal\date_recur\Entity\DateRecurInterpreterInterface; use Drupal\date_recur_entity_test\Entity\DrEntityTest; @@ -483,8 +484,8 @@ class DateRecurBasicFormatterTest extends KernelTestBase { 'settings' => $settings, ]); /** @var \Drupal\Core\Render\RendererInterface $renderer */ - $renderer = $this->container->get('renderer'); - $this->setRawContent($renderer->renderPlain($build)); + $renderer = $this->container->get(RendererInterface::class); + $this->setRawContent((string) $renderer->renderPlain($build)); } /** diff --git a/tests/src/Kernel/DateRecurDefaultInterpreterTest.php b/tests/src/Kernel/DateRecurDefaultInterpreterTest.php index 3ec24b9..774697d 100644 --- a/tests/src/Kernel/DateRecurDefaultInterpreterTest.php +++ b/tests/src/Kernel/DateRecurDefaultInterpreterTest.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\Tests\date_recur\Kernel; diff --git a/tests/src/Kernel/DateRecurFieldItemDefaultValuesTest.php b/tests/src/Kernel/DateRecurFieldItemDefaultValuesTest.php index 68153c8..112901e 100644 --- a/tests/src/Kernel/DateRecurFieldItemDefaultValuesTest.php +++ b/tests/src/Kernel/DateRecurFieldItemDefaultValuesTest.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\Tests\date_recur\Kernel; diff --git a/tests/src/Kernel/DateRecurFieldItemListTest.php b/tests/src/Kernel/DateRecurFieldItemListTest.php index 3dbbc11..c050cad 100644 --- a/tests/src/Kernel/DateRecurFieldItemListTest.php +++ b/tests/src/Kernel/DateRecurFieldItemListTest.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\Tests\date_recur\Kernel; diff --git a/tests/src/Kernel/DateRecurFieldItemTest.php b/tests/src/Kernel/DateRecurFieldItemTest.php index 6370774..5ef9777 100644 --- a/tests/src/Kernel/DateRecurFieldItemTest.php +++ b/tests/src/Kernel/DateRecurFieldItemTest.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\Tests\date_recur\Kernel; diff --git a/tests/src/Kernel/DateRecurFieldTest.php b/tests/src/Kernel/DateRecurFieldTest.php index 73865d8..3313ecb 100644 --- a/tests/src/Kernel/DateRecurFieldTest.php +++ b/tests/src/Kernel/DateRecurFieldTest.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\Tests\date_recur\Kernel; diff --git a/tests/src/Kernel/DateRecurOccurrenceTableAttachedTest.php b/tests/src/Kernel/DateRecurOccurrenceTableAttachedTest.php index 006e784..1053dd2 100644 --- a/tests/src/Kernel/DateRecurOccurrenceTableAttachedTest.php +++ b/tests/src/Kernel/DateRecurOccurrenceTableAttachedTest.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\Tests\date_recur\Kernel; diff --git a/tests/src/Kernel/DateRecurOccurrenceTableSchemaTest.php b/tests/src/Kernel/DateRecurOccurrenceTableSchemaTest.php index 4e536c3..784d937 100644 --- a/tests/src/Kernel/DateRecurOccurrenceTableSchemaTest.php +++ b/tests/src/Kernel/DateRecurOccurrenceTableSchemaTest.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\Tests\date_recur\Kernel; diff --git a/tests/src/Kernel/DateRecurOccurrenceTableTest.php b/tests/src/Kernel/DateRecurOccurrenceTableTest.php index 8fad394..44b59bd 100644 --- a/tests/src/Kernel/DateRecurOccurrenceTableTest.php +++ b/tests/src/Kernel/DateRecurOccurrenceTableTest.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\Tests\date_recur\Kernel; diff --git a/tests/src/Kernel/DateRecurPartGridTest.php b/tests/src/Kernel/DateRecurPartGridTest.php index 3cf744d..da02d50 100644 --- a/tests/src/Kernel/DateRecurPartGridTest.php +++ b/tests/src/Kernel/DateRecurPartGridTest.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\Tests\date_recur\Kernel; diff --git a/tests/src/Kernel/DateRecurSubFieldTest.php b/tests/src/Kernel/DateRecurSubFieldTest.php index 63aea81..ee49b70 100644 --- a/tests/src/Kernel/DateRecurSubFieldTest.php +++ b/tests/src/Kernel/DateRecurSubFieldTest.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\Tests\date_recur\Kernel; diff --git a/tests/src/Kernel/DateRecurTest.php b/tests/src/Kernel/DateRecurTest.php index 4b75d2f..859b38a 100644 --- a/tests/src/Kernel/DateRecurTest.php +++ b/tests/src/Kernel/DateRecurTest.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\Tests\date_recur\Kernel; diff --git a/tests/src/Kernel/DateRecurTokenTest.php b/tests/src/Kernel/DateRecurTokenTest.php index 18f0c06..b00ab06 100644 --- a/tests/src/Kernel/DateRecurTokenTest.php +++ b/tests/src/Kernel/DateRecurTokenTest.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\Tests\date_recur\Kernel; diff --git a/tests/src/Kernel/DateRecurUninstallTest.php b/tests/src/Kernel/DateRecurUninstallTest.php index 314dc3b..9685846 100644 --- a/tests/src/Kernel/DateRecurUninstallTest.php +++ b/tests/src/Kernel/DateRecurUninstallTest.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\Tests\date_recur\Kernel; diff --git a/tests/src/Kernel/DateRecurUtilityTest.php b/tests/src/Kernel/DateRecurUtilityTest.php index 26843d9..51125c9 100644 --- a/tests/src/Kernel/DateRecurUtilityTest.php +++ b/tests/src/Kernel/DateRecurUtilityTest.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\Tests\date_recur\Kernel; diff --git a/tests/src/Kernel/DateRecurViewsFieldAttachedTest.php b/tests/src/Kernel/DateRecurViewsFieldAttachedTest.php index 3b6d6c6..b662b68 100644 --- a/tests/src/Kernel/DateRecurViewsFieldAttachedTest.php +++ b/tests/src/Kernel/DateRecurViewsFieldAttachedTest.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\Tests\date_recur\Kernel; diff --git a/tests/src/Kernel/DateRecurViewsFieldTest.php b/tests/src/Kernel/DateRecurViewsFieldTest.php index d890bfd..0350743 100644 --- a/tests/src/Kernel/DateRecurViewsFieldTest.php +++ b/tests/src/Kernel/DateRecurViewsFieldTest.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\Tests\date_recur\Kernel; diff --git a/tests/src/Kernel/DateRecurViewsOccurrenceFilterAttachedTest.php b/tests/src/Kernel/DateRecurViewsOccurrenceFilterAttachedTest.php index a521d7d..a6d1396 100644 --- a/tests/src/Kernel/DateRecurViewsOccurrenceFilterAttachedTest.php +++ b/tests/src/Kernel/DateRecurViewsOccurrenceFilterAttachedTest.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\Tests\date_recur\Kernel; diff --git a/tests/src/Kernel/DateRecurViewsOccurrenceFilterTest.php b/tests/src/Kernel/DateRecurViewsOccurrenceFilterTest.php index 8a46c6b..439eee5 100644 --- a/tests/src/Kernel/DateRecurViewsOccurrenceFilterTest.php +++ b/tests/src/Kernel/DateRecurViewsOccurrenceFilterTest.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\Tests\date_recur\Kernel; diff --git a/tests/src/Unit/DateRecurDateRangeUnitTest.php b/tests/src/Unit/DateRecurDateRangeUnitTest.php index 5feb8ae..865dce4 100644 --- a/tests/src/Unit/DateRecurDateRangeUnitTest.php +++ b/tests/src/Unit/DateRecurDateRangeUnitTest.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\Tests\date_recur\Unit; diff --git a/tests/src/Unit/DateRecurNonRecurringHelperUnitTest.php b/tests/src/Unit/DateRecurNonRecurringHelperUnitTest.php index 4a5e601..19b369e 100644 --- a/tests/src/Unit/DateRecurNonRecurringHelperUnitTest.php +++ b/tests/src/Unit/DateRecurNonRecurringHelperUnitTest.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\Tests\date_recur\Unit; diff --git a/tests/src/Unit/DateRecurPartGridUnitTest.php b/tests/src/Unit/DateRecurPartGridUnitTest.php index 3fa4e2c..9edd36a 100644 --- a/tests/src/Unit/DateRecurPartGridUnitTest.php +++ b/tests/src/Unit/DateRecurPartGridUnitTest.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\Tests\date_recur\Unit; diff --git a/tests/src/Unit/DateRecurRlHelperUnitTest.php b/tests/src/Unit/DateRecurRlHelperUnitTest.php index 5b2a05f..3da9181 100644 --- a/tests/src/Unit/DateRecurRlHelperUnitTest.php +++ b/tests/src/Unit/DateRecurRlHelperUnitTest.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\Tests\date_recur\Unit; diff --git a/tests/src/Unit/DateRecurRlInterpretationUnitTest.php b/tests/src/Unit/DateRecurRlInterpretationUnitTest.php index d975d5f..9f6661d 100644 --- a/tests/src/Unit/DateRecurRlInterpretationUnitTest.php +++ b/tests/src/Unit/DateRecurRlInterpretationUnitTest.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\Tests\date_recur\Unit; diff --git a/tests/src/Unit/DateRecurRruleUnitTest.php b/tests/src/Unit/DateRecurRruleUnitTest.php index bf35c89..36358e8 100644 --- a/tests/src/Unit/DateRecurRruleUnitTest.php +++ b/tests/src/Unit/DateRecurRruleUnitTest.php @@ -1,6 +1,6 @@ <?php -declare(strict_types = 1); +declare(strict_types=1); namespace Drupal\Tests\date_recur\Unit; -- GitLab