diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 239fa186da1e5daf5c876232fd7020f509583063..09fac16d9b1d4b3433947dd54a279a63ca654a04 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -102,6 +102,8 @@ include:
 #
 cspell:
   allow_failure: false
+phpcs:
+  allow_failure: false
 phpstan:
   allow_failure: false
 eslint:
diff --git a/README.md b/README.md
index ae747c1a1edebfe87cbd109c79fa9b087d8e1c22..cab1876f333072b73f0a2db0243ce9c01e3f19da 100644
--- a/README.md
+++ b/README.md
@@ -5,8 +5,8 @@ the current page title in the breadcrumb. The module also comes with additional
 settings that are common features needed in breadcrumbs.
 
 Breadcrumbs use the current URL (path alias) and the current page title to
-build the crumbs. The module is designed to work out of the box with no adjustments,
-and it comes with settings to customize the crumbs.
+build the crumbs. The module is designed to work out of the box with no
+adjustments, and it comes with settings to customize the crumbs.
 
 For a full description of the module, visit the
 [project page](https://www.drupal.org/project/easy_breadcrumb).
diff --git a/easy_breadcrumb.install b/easy_breadcrumb.install
index aa72f3e651657c9ec267b12db979b5f9f2c7ffc0..25de44d26a075df02fff70b325c4fc7777a3df5d 100644
--- a/easy_breadcrumb.install
+++ b/easy_breadcrumb.install
@@ -150,4 +150,4 @@ function easy_breadcrumb_update_8009() {
     $config->save(TRUE);
     return t('Breadcrumb segment minimum count has been set to 1 to maintain the existing behavior when rendering breadcrumbs.');
   }
-}
\ No newline at end of file
+}
diff --git a/src/EasyBreadcrumbBuilder.php b/src/EasyBreadcrumbBuilder.php
index 8f143f60d4fa8ab867614034507cc5b93525099f..2e0c15260623f616f3aa00880b941bcedf8faee7 100644
--- a/src/EasyBreadcrumbBuilder.php
+++ b/src/EasyBreadcrumbBuilder.php
@@ -951,10 +951,12 @@ class EasyBreadcrumbBuilder implements BreadcrumbBuilderInterface {
       $redirect = NULL;
       try {
         // Ignore DI recommendation as we want no dependency on redirect module.
+        // phpcs:disable
         // @phpstan-ignore-next-line
         $redirect = \Drupal::service('redirect.repository')
           ->findMatchingRedirect($redirect_path, [], $this->languageManager->getCurrentLanguage()
             ->getId());
+        // phpcs:enable
       }
       catch (\Exception $exception) {
         // Do nothing for now.
diff --git a/src/TitleResolver.php b/src/TitleResolver.php
index fbe270bab738c91447696a33685b471bb413f74c..adbf09ee17cc954da285eb1e2a615205c5993670 100644
--- a/src/TitleResolver.php
+++ b/src/TitleResolver.php
@@ -71,7 +71,7 @@ class TitleResolver extends ControllerTitleResolver {
   public function getTitle(Request $request, Route $route) {
     $url = Url::fromUri("internal:" . $request->getRequestUri());
     $alternative_title_field = $this->config->get(EasyBreadcrumbConstants::ALTERNATIVE_TITLE_FIELD);
-    // If an alternative title field is set, load the entity if present and use that field.
+    // If an alternative title field is set, use it.
     if ($alternative_title_field) {
       $entity = NULL;
       try {
@@ -101,4 +101,5 @@ class TitleResolver extends ControllerTitleResolver {
 
     return parent::getTitle($request, $route);
   }
+
 }
diff --git a/tests/modules/easy_breadcrumb_test/easy_breadcrumb_test.routing.yml b/tests/modules/easy_breadcrumb_test/easy_breadcrumb_test.routing.yml
index d857a1fbcf82947cb07cd61f0e4eaca60247c786..a9054f0baf4a2dfb9b1edd971ccfe1ea3ee67740 100644
--- a/tests/modules/easy_breadcrumb_test/easy_breadcrumb_test.routing.yml
+++ b/tests/modules/easy_breadcrumb_test/easy_breadcrumb_test.routing.yml
@@ -26,6 +26,7 @@ easy_breadcrumb_test.title_render_array:
 easy_breadcrumb_test.custom_path:
   path: '/test/easy-breadcrumb-custom-path'
   requirements:
+    # This is a test route, so we allow all access.
     _access: 'TRUE'
   defaults:
     _title: 'Easy Breadcrumb Custom Path Test'
diff --git a/tests/src/Kernel/EasyBreadcrumbBuilderTest.php b/tests/src/Kernel/EasyBreadcrumbBuilderTest.php
index 8dc140809eea06a85f4a91c50dc56510824936fb..42ca74e03ef7e6a0459bb9f634ec60e79f34017f 100644
--- a/tests/src/Kernel/EasyBreadcrumbBuilderTest.php
+++ b/tests/src/Kernel/EasyBreadcrumbBuilderTest.php
@@ -228,13 +228,15 @@ class EasyBreadcrumbBuilderTest extends KernelTestBase {
     $this->assertEquals('base:part-1', $result->getLinks()[0]->getUrl()->toUriString());
   }
 
-    /**
-   * Tests a custom path override with title replacement and an unrouted url. (Issue #3271576)
+  /**
+   * Tests a custom path override with title replacement and an unrouted url.
+   *
+   * @see https://drupal.org/i/3271576
    */
   public function testCustomPathWithTitleAndUnroutedUrl() {
     \Drupal::configFactory()->getEditable(EasyBreadcrumbConstants::MODULE_SETTINGS)
       ->set(EasyBreadcrumbConstants::CUSTOM_PATHS, 'regex!/test/.+ :: Part 1 | /part-1 :: <title>')
-      ->set(EasyBreadcrumbConstants::TITLE_FROM_PAGE_WHEN_AVAILABLE, true)
+      ->set(EasyBreadcrumbConstants::TITLE_FROM_PAGE_WHEN_AVAILABLE, TRUE)
       ->save();
 
     $request = Request::create('/test/easy-breadcrumb-custom-path');
@@ -269,12 +271,14 @@ class EasyBreadcrumbBuilderTest extends KernelTestBase {
   }
 
   /**
-   * Tests a custom path override with title replacement and a route match. (Issue #3271576)
+   * Tests a custom path override with title replacement and a route match.
+   *
+   * @see https://drupal.org/i/3271576
    */
   public function testCustomPathWithTitleAndRoutedUrl() {
     \Drupal::configFactory()->getEditable(EasyBreadcrumbConstants::MODULE_SETTINGS)
       ->set(EasyBreadcrumbConstants::CUSTOM_PATHS, 'regex!/test/.+ :: Part 1 | /part-1 :: <title>')
-      ->set(EasyBreadcrumbConstants::TITLE_FROM_PAGE_WHEN_AVAILABLE, true)
+      ->set(EasyBreadcrumbConstants::TITLE_FROM_PAGE_WHEN_AVAILABLE, TRUE)
       ->save();
 
     $route_name = 'easy_breadcrumb_test.custom_path';
@@ -310,4 +314,5 @@ class EasyBreadcrumbBuilderTest extends KernelTestBase {
     $this->assertEquals('Easy Breadcrumb Custom Path Test', $result->getLinks()[1]->getText());
     $this->assertEquals('route:<none>', $result->getLinks()[1]->getUrl()->toUriString());
   }
+
 }