From 596ee4979d811675ddafd05ae5a965e7528b9b8d Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 4 Sep 2020 20:56:04 +0100 Subject: [PATCH] Fix PHPCS issues --- web/modules/custom/blog/opdavies_blog.install | 5 +++++ web/modules/custom/blog/src/Entity/Node/Post.php | 4 ++-- .../custom/blog/tests/src/Kernel/ReorderBlogTagsTest.php | 6 +++--- web/modules/custom/talks/opdavies_talks.install | 5 +++++ web/modules/custom/talks/src/Plugin/views/sort/Event.php | 1 - 5 files changed, 15 insertions(+), 6 deletions(-) diff --git a/web/modules/custom/blog/opdavies_blog.install b/web/modules/custom/blog/opdavies_blog.install index 789d9c2..b9fc438 100644 --- a/web/modules/custom/blog/opdavies_blog.install +++ b/web/modules/custom/blog/opdavies_blog.install @@ -1,5 +1,10 @@ label()))) - ->map(fn(string $word): string => ucfirst($word)) - ->implode(''); + ->map(fn(string $word): string => ucfirst($word)) + ->implode(''); } } diff --git a/web/modules/custom/blog/tests/src/Kernel/ReorderBlogTagsTest.php b/web/modules/custom/blog/tests/src/Kernel/ReorderBlogTagsTest.php index 2e1bb99..f303428 100644 --- a/web/modules/custom/blog/tests/src/Kernel/ReorderBlogTagsTest.php +++ b/web/modules/custom/blog/tests/src/Kernel/ReorderBlogTagsTest.php @@ -36,9 +36,9 @@ final class ReorderBlogTagsTest extends EntityKernelTestBase { /** @var VocabularyInterface $vocabulary */ $vocabulary = Vocabulary::load('tags'); - $this->createTerm($vocabulary, ['name' => 'Drupal']); // 1 - $this->createTerm($vocabulary, ['name' => 'PHP']); // 2 - $this->createTerm($vocabulary, ['name' => 'Symfony']); // 3 + $this->createTerm($vocabulary, ['name' => 'Drupal']); + $this->createTerm($vocabulary, ['name' => 'PHP']); + $this->createTerm($vocabulary, ['name' => 'Symfony']); $post = $this->createNode([ 'field_tags' => [3, 1, 2], diff --git a/web/modules/custom/talks/opdavies_talks.install b/web/modules/custom/talks/opdavies_talks.install index 9086955..1a87ac8 100644 --- a/web/modules/custom/talks/opdavies_talks.install +++ b/web/modules/custom/talks/opdavies_talks.install @@ -1,5 +1,10 @@