diff --git a/entity_print.install b/entity_print.install
index 2ae70d3..f46ccc7 100644
--- a/entity_print.install
+++ b/entity_print.install
@@ -4,6 +4,7 @@
  * @file
  * Entity Print installation file.
  */
+
 use Drupal\Core\Config\Entity\ConfigEntityType;
 use Drupal\Core\StringTranslation\TranslatableMarkup;
 
diff --git a/entity_print.module b/entity_print.module
index 8cca28f..4230820 100644
--- a/entity_print.module
+++ b/entity_print.module
@@ -129,7 +129,7 @@ function entity_print_form_entity_view_display_edit_form_validate(&$form, FormSt
     $key = 'entity_print_view_' . $export_type;
     if (empty($form_state->getValue(['fields', $key, 'empty_cell']))) {
       $form_state->setErrorByName("fields][$key][empty_cell", t('The Entity Print fields settings have not been saved. Please enter a non-empty value for the @label field.', [
-        '@label' => $definition['label']
+        '@label' => $definition['label'],
       ]));
     }
   }
diff --git a/entity_print.post_update.php b/entity_print.post_update.php
index c43ab94..6c2eb6f 100644
--- a/entity_print.post_update.php
+++ b/entity_print.post_update.php
@@ -1,5 +1,10 @@
 <?php
 
+/**
+ * @file
+ * Post update hooks.
+ */
+
 use Drupal\entity_print\Entity\PrintEngineStorage;
 
 /**
diff --git a/modules/entity_print_views/entity_print_views.module b/modules/entity_print_views/entity_print_views.module
index 3000ee1..582aef3 100644
--- a/modules/entity_print_views/entity_print_views.module
+++ b/modules/entity_print_views/entity_print_views.module
@@ -4,6 +4,7 @@
  * @file
  * Entity Print Views module file.
  */
+
 use Drupal\entity_print_views\Renderer\ViewRenderer;
 
 /**
diff --git a/modules/entity_print_views/entity_print_views.views.inc b/modules/entity_print_views/entity_print_views.views.inc
index b2f0f6b..d7e1495 100644
--- a/modules/entity_print_views/entity_print_views.views.inc
+++ b/modules/entity_print_views/entity_print_views.views.inc
@@ -1,6 +1,11 @@
 <?php
 
 /**
+ * @file
+ * Views specific hooks.
+ */
+
+/**
  * Implements hook_views_data().
  */
 function entity_print_views_views_data() {
diff --git a/modules/entity_print_views/src/Controller/ViewPrintController.php b/modules/entity_print_views/src/Controller/ViewPrintController.php
index 09832f3..f076a95 100644
--- a/modules/entity_print_views/src/Controller/ViewPrintController.php
+++ b/modules/entity_print_views/src/Controller/ViewPrintController.php
@@ -81,7 +81,7 @@ class ViewPrintController extends ControllerBase {
    * @param string $export_type
    *   The export type.
    * @param string $view_name
-   *   The view name
+   *   The view name.
    * @param string $display_id
    *   The view display to render.
    *
@@ -113,7 +113,7 @@ class ViewPrintController extends ControllerBase {
       return new RedirectResponse($url);
     }
 
-    return (new StreamedResponse(function() use ($view, $print_engine, $config) {
+    return (new StreamedResponse(function () use ($view, $print_engine, $config) {
       // The printed document is sent straight to the browser.
       $this->printBuilder->deliverPrintable([$view], $print_engine, $config->get('force_download'), $config->get('default_css'));
     }))->send();
@@ -155,7 +155,7 @@ class ViewPrintController extends ControllerBase {
    * @param string $export_type
    *   The export type.
    * @param string $view_name
-   *   The view name
+   *   The view name.
    * @param string $display_id
    *   The view display to render.
    *
@@ -182,7 +182,7 @@ class ViewPrintController extends ControllerBase {
    *   The export type.
    * @param string $view_name
    *   The view machine name.
-   * @param string
+   * @param string $display_id
    *   The machine name of the display.
    *
    * @return \Symfony\Component\HttpFoundation\RedirectResponse
@@ -203,7 +203,7 @@ class ViewPrintController extends ControllerBase {
    *   The export type.
    * @param string $view_name
    *   The view machine name.
-   * @param string
+   * @param string $display_id
    *   The machine name of the display.
    *
    * @return \Symfony\Component\HttpFoundation\RedirectResponse
diff --git a/modules/entity_print_views/tests/src/Functional/PrintViewsTest.php b/modules/entity_print_views/tests/src/Functional/PrintViewsTest.php
index 13f89ac..a477ea1 100644
--- a/modules/entity_print_views/tests/src/Functional/PrintViewsTest.php
+++ b/modules/entity_print_views/tests/src/Functional/PrintViewsTest.php
@@ -6,6 +6,8 @@ use Drupal\Tests\BrowserTestBase;
 use Drupal\user\Entity\Role;
 
 /**
+ * Test printing a view.
+ *
  * @group entity_print_views
  */
 class PrintViewsTest extends BrowserTestBase {
@@ -25,6 +27,8 @@ class PrintViewsTest extends BrowserTestBase {
   ];
 
   /**
+   * An array of nodes.
+   *
    * @var \Drupal\node\Entity\Node[]
    */
   protected $nodes;
@@ -46,7 +50,11 @@ class PrintViewsTest extends BrowserTestBase {
     $config
       ->set('print_engines.pdf_engine', 'testprintengine')
       ->save();
-    user_role_grant_permissions(Role::ANONYMOUS_ID, ['access content', 'entity print views access', 'administer nodes']);
+    user_role_grant_permissions(Role::ANONYMOUS_ID, [
+      'access content',
+      'entity print views access',
+      'administer nodes',
+    ]);
   }
 
   /**
diff --git a/modules/entity_print_views/tests/src/Kernel/ViewsAccessTest.php b/modules/entity_print_views/tests/src/Kernel/ViewsAccessTest.php
index 1ec4af4..c0f2029 100644
--- a/modules/entity_print_views/tests/src/Kernel/ViewsAccessTest.php
+++ b/modules/entity_print_views/tests/src/Kernel/ViewsAccessTest.php
@@ -2,12 +2,15 @@
 
 namespace Drupal\Tests\entity_print_views\Kernel;
 
+use Drupal\Core\Session\AccountInterface;
 use Drupal\Core\Session\AnonymousUserSession;
 use Drupal\entity_print_views\Controller\ViewPrintController;
 use Drupal\KernelTests\KernelTestBase;
 use Drupal\simpletest\UserCreationTrait;
 
 /**
+ * Views access test.
+ *
  * @group entity_print_views
  */
 class ViewsAccessTest extends KernelTestBase {
@@ -71,7 +74,7 @@ class ViewsAccessTest extends KernelTestBase {
    * @return bool
    *   TRUE if the user has access otherwise FALSE.
    */
-  protected function checkAccess($account, $view_name, $display_id) {
+  protected function checkAccess(AccountInterface $account, $view_name, $display_id) {
     $this->container->get('current_user')->setAccount($account);
     $controller = ViewPrintController::create($this->container);
     return $controller->checkAccess('pdf', $view_name, $display_id)->isAllowed();
diff --git a/modules/entity_print_views/tests/src/Kernel/ViewsRendererTest.php b/modules/entity_print_views/tests/src/Kernel/ViewsRendererTest.php
index dd0087f..1d9f3a2 100644
--- a/modules/entity_print_views/tests/src/Kernel/ViewsRendererTest.php
+++ b/modules/entity_print_views/tests/src/Kernel/ViewsRendererTest.php
@@ -7,6 +7,8 @@ use Drupal\KernelTests\KernelTestBase;
 use Drupal\views\Views;
 
 /**
+ * Views renderer test.
+ *
  * @group entity_print_views
  */
 class ViewsRendererTest extends KernelTestBase {
diff --git a/src/Annotation/PrintEngine.php b/src/Annotation/PrintEngine.php
index 0666ae9..d0a8801 100644
--- a/src/Annotation/PrintEngine.php
+++ b/src/Annotation/PrintEngine.php
@@ -29,6 +29,8 @@ class PrintEngine extends Plugin {
    * The filetype to be exported to.
    *
    * @var string
+   *
+   * @codingStandardsIgnoreStart
    */
   public $export_type;
 
diff --git a/src/Asset/AssetCollector.php b/src/Asset/AssetCollector.php
index 6624347..5a4692b 100644
--- a/src/Asset/AssetCollector.php
+++ b/src/Asset/AssetCollector.php
@@ -86,7 +86,7 @@ class AssetCollector implements AssetCollectorInterface {
    * @param array $libraries
    *   A list of CSS libraries.
    */
-  protected function buildCssForEntity(EntityInterface $entity, array $theme_info, &$libraries) {
+  protected function buildCssForEntity(EntityInterface $entity, array $theme_info, array &$libraries) {
     foreach ($theme_info as $key => $value) {
       // If the entity type doesn't match just skip.
       if ($key !== $entity->getEntityTypeId()) {
diff --git a/src/Asset/AssetRenderer.php b/src/Asset/AssetRenderer.php
index f27c81e..ad13d71 100644
--- a/src/Asset/AssetRenderer.php
+++ b/src/Asset/AssetRenderer.php
@@ -51,7 +51,7 @@ class AssetRenderer implements AssetRendererInterface {
   /**
    * {@inheritdoc}
    */
-  public function render($entities, $use_default_css = TRUE, $optimize_css = TRUE) {
+  public function render(array $entities, $use_default_css = TRUE, $optimize_css = TRUE) {
     $build['#attached']['library'] = [];
 
     // Inject some generic CSS across all templates.
diff --git a/src/Asset/AssetRendererInterface.php b/src/Asset/AssetRendererInterface.php
index 0202036..fe4b5c9 100644
--- a/src/Asset/AssetRendererInterface.php
+++ b/src/Asset/AssetRendererInterface.php
@@ -20,6 +20,6 @@ interface AssetRendererInterface {
    * @return array
    *   The renderable array for the assets.
    */
-  public function render($entities, $use_default_css = TRUE, $optimize_css = TRUE);
+  public function render(array $entities, $use_default_css = TRUE, $optimize_css = TRUE);
 
 }
diff --git a/src/Controller/EntityPrintController.php b/src/Controller/EntityPrintController.php
index ee6fc45..500f1b4 100644
--- a/src/Controller/EntityPrintController.php
+++ b/src/Controller/EntityPrintController.php
@@ -2,20 +2,19 @@
 
 namespace Drupal\entity_print\Controller;
 
-use Drupal\Component\Render\FormattableMarkup;
-use Drupal\Component\Utility\Xss;
 use Drupal\Core\Controller\ControllerBase;
 use Drupal\Core\Access\AccessResult;
 use Drupal\Core\Entity\EntityTypeManagerInterface;
 use Drupal\entity_print\Plugin\ExportTypeManagerInterface;
 use Drupal\entity_print\PrintBuilderInterface;
-use Drupal\entity_print\PrintEngineException;
 use Symfony\Component\DependencyInjection\ContainerInterface;
-use Symfony\Component\HttpFoundation\RedirectResponse;
 use Symfony\Component\HttpFoundation\Response;
 use Drupal\entity_print\Plugin\EntityPrintPluginManagerInterface;
 use Symfony\Component\HttpFoundation\StreamedResponse;
 
+/**
+ * Print controller.
+ */
 class EntityPrintController extends ControllerBase {
 
   /**
@@ -87,7 +86,7 @@ class EntityPrintController extends ControllerBase {
     $entity = $this->entityTypeManager->getStorage($entity_type)->load($entity_id);
 
     $print_engine = $this->pluginManager->createSelectedInstance($export_type);
-    return (new StreamedResponse(function() use ($entity, $print_engine, $config) {
+    return (new StreamedResponse(function () use ($entity, $print_engine, $config) {
       // The Print is sent straight to the browser.
       $this->printBuilder->deliverPrintable([$entity], $print_engine, $config->get('force_download'), $config->get('default_css'));
     }))->send();
diff --git a/src/EntityPrintPermissions.php b/src/EntityPrintPermissions.php
index ca648c1..25c6a38 100644
--- a/src/EntityPrintPermissions.php
+++ b/src/EntityPrintPermissions.php
@@ -23,10 +23,10 @@ class EntityPrintPermissions implements ContainerInjectionInterface {
    */
   protected $entityTypeManager;
 
-  /*
+  /**
    * Entity type bundle info.
    *
-   * @var \Drupal\Core\Entity\EntityTypeBundleInfoInterface;
+   * @var \Drupal\Core\Entity\EntityTypeBundleInfoInterface
    */
   protected $entityTypeBundleInfo;
 
diff --git a/src/Event/PreSendPrintEvent.php b/src/Event/PreSendPrintEvent.php
index 7993ca1..6ffa7f7 100644
--- a/src/Event/PreSendPrintEvent.php
+++ b/src/Event/PreSendPrintEvent.php
@@ -10,6 +10,8 @@ use Drupal\entity_print\Plugin\PrintEngineInterface;
 class PreSendPrintEvent extends PrintEventBase {
 
   /**
+   * An array of entities.
+   *
    * @var \Drupal\Core\Entity\EntityInterface[]
    */
   protected $entities;
diff --git a/src/Event/PrintCssAlterEvent.php b/src/Event/PrintCssAlterEvent.php
index e1b3a9d..9d638b8 100644
--- a/src/Event/PrintCssAlterEvent.php
+++ b/src/Event/PrintCssAlterEvent.php
@@ -4,6 +4,9 @@ namespace Drupal\entity_print\Event;
 
 use Symfony\Component\EventDispatcher\Event;
 
+/**
+ * This event allows the CSS libraries to be altered.
+ */
 class PrintCssAlterEvent extends Event {
 
   /**
@@ -28,7 +31,7 @@ class PrintCssAlterEvent extends Event {
    * @param array $entities
    *   An array of entities we're rendering.
    */
-  public function __construct(array &$build, $entities) {
+  public function __construct(array &$build, array $entities) {
     $this->build = &$build;
     $this->entities = $entities;
   }
diff --git a/src/Event/PrintEventBase.php b/src/Event/PrintEventBase.php
index e152e26..ca00d0f 100644
--- a/src/Event/PrintEventBase.php
+++ b/src/Event/PrintEventBase.php
@@ -5,9 +5,14 @@ namespace Drupal\entity_print\Event;
 use Drupal\entity_print\Plugin\PrintEngineInterface;
 use Symfony\Component\EventDispatcher\Event;
 
+/**
+ * Event base class.
+ */
 abstract class PrintEventBase extends Event {
 
   /**
+   * The print engine plugin.
+   *
    * @var \Drupal\entity_print\Plugin\PrintEngineInterface
    */
   protected $printEngine;
diff --git a/src/Event/PrintEvents.php b/src/Event/PrintEvents.php
index 71a7a19..7794bb6 100644
--- a/src/Event/PrintEvents.php
+++ b/src/Event/PrintEvents.php
@@ -37,7 +37,8 @@ final class PrintEvents {
    *
    * This event allows custom code to add their own CSS assets. Note the
    * recommended way is to manage CSS from your theme.
-   * @link https://www.drupal.org/node/2430561#from-your-theme
+   *
+   * @link https://www.drupal.org/node/2430561#from-your-theme @endlink
    *
    * @code
    * $event->getBuild()['#attached']['library'][] = 'module/library';
diff --git a/src/Event/PrintHtmlAlterEvent.php b/src/Event/PrintHtmlAlterEvent.php
index 36d0a28..3d4b1e0 100644
--- a/src/Event/PrintHtmlAlterEvent.php
+++ b/src/Event/PrintHtmlAlterEvent.php
@@ -4,6 +4,9 @@ namespace Drupal\entity_print\Event;
 
 use Symfony\Component\EventDispatcher\Event;
 
+/**
+ * An event to alter the HTML string.
+ */
 class PrintHtmlAlterEvent extends Event {
 
   /**
@@ -28,7 +31,7 @@ class PrintHtmlAlterEvent extends Event {
    * @param array $entities
    *   An array of entities we're rendering.
    */
-  public function __construct(&$html, $entities) {
+  public function __construct(&$html, array $entities) {
     $this->html = &$html;
     $this->entities = $entities;
   }
diff --git a/src/EventSubscriber/PostRenderSubscriber.php b/src/EventSubscriber/PostRenderSubscriber.php
index fb9b385..4188467 100644
--- a/src/EventSubscriber/PostRenderSubscriber.php
+++ b/src/EventSubscriber/PostRenderSubscriber.php
@@ -45,15 +45,16 @@ class PostRenderSubscriber implements EventSubscriberInterface {
   /**
    * Alter the HTML after it has been rendered.
    *
-   * This is a temporary workaround for a core issue.
-   * @see https://drupal.org/node/1494670
-   *
    * @param \Drupal\entity_print\Event\PrintHtmlAlterEvent $event
    *   The event object.
+   *
+   *   This is a temporary workaround for a core issue.
+   *
+   * @see https://drupal.org/node/1494670
    */
   public function postRender(PrintHtmlAlterEvent $event) {
-    // We only apply the fix to PHP Wkhtmltopdf because the other implementations
-    // allow us to specify a base url.
+    // We only apply the fix to PHP Wkhtmltopdf because the other
+    // implementations allow us to specify a base url.
     $config = $this->configFactory->get('entity_print.settings');
     if ($config->get('print_engines.pdf_engine') !== 'phpwkhtmltopdf') {
       return;
@@ -63,8 +64,9 @@ class PostRenderSubscriber implements EventSubscriberInterface {
     $html5 = new HTML5();
     $document = $html5->loadHTML($html_string);
 
-    // Define a function that will convert root relative uris into absolute urls.
-    $transform = function($tag, $attribute) use ($document) {
+    // Define a function that will convert root relative uris into absolute
+    // urls.
+    $transform = function ($tag, $attribute) use ($document) {
       $base_url = $this->requestStack->getCurrentRequest()->getSchemeAndHttpHost();
       foreach ($document->getElementsByTagName($tag) as $node) {
         $attribute_value = $node->getAttribute($attribute);
diff --git a/src/EventSubscriber/PrintEngineExceptionSubscriber.php b/src/EventSubscriber/PrintEngineExceptionSubscriber.php
index f69a172..694680c 100644
--- a/src/EventSubscriber/PrintEngineExceptionSubscriber.php
+++ b/src/EventSubscriber/PrintEngineExceptionSubscriber.php
@@ -12,18 +12,33 @@ use Symfony\Component\HttpFoundation\RedirectResponse;
 use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent;
 use Symfony\Component\HttpKernel\KernelEvents;
 
+/**
+ * Exception event subscriber.
+ */
 class PrintEngineExceptionSubscriber implements EventSubscriberInterface {
 
   /**
+   * The route match service.
+   *
    * @var \Drupal\Core\Routing\RouteMatchInterface
    */
   protected $routeMatch;
 
   /**
+   * The entity type manager.
+   *
    * @var \Drupal\Core\Entity\EntityTypeManagerInterface
    */
   protected $entityTypeManager;
 
+  /**
+   * PrintEngineExceptionSubscriber constructor.
+   *
+   * @param \Drupal\Core\Routing\RouteMatchInterface $routeMatch
+   *   Route match service.
+   * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager
+   *   Entity type manager.
+   */
   public function __construct(RouteMatchInterface $routeMatch, EntityTypeManagerInterface $entityTypeManager) {
     $this->routeMatch = $routeMatch;
     $this->entityTypeManager = $entityTypeManager;
diff --git a/src/Form/SettingsForm.php b/src/Form/SettingsForm.php
index d98310a..90243fa 100644
--- a/src/Form/SettingsForm.php
+++ b/src/Form/SettingsForm.php
@@ -69,7 +69,7 @@ class SettingsForm extends ConfigFormBase {
   /**
    * {@inheritdoc}
    */
-  public function getFormID() {
+  public function getFormId() {
     return 'entity_print_admin_settings_form';
   }
 
@@ -131,9 +131,9 @@ class SettingsForm extends ConfigFormBase {
     ];
 
     foreach ($this->exportTypeManager->getDefinitions() as $export_type => $definition) {
-      // If we have a print_engine in the form_state then use that otherwise, fall
-      // back to what was saved as this is a fresh form. Check explicitly for NULL
-      // in case they selected the None option which is false'y.
+      // If we have a print_engine in the form_state then use that otherwise,
+      // fall back to what was saved as this is a fresh form. Check explicitly
+      // for NULL in case they selected the None option which is false'y.
       $selected_plugin_id = !is_null($form_state->getValue($export_type)) ? $form_state->getValue($export_type) : $config->get('print_engines.' . $export_type . '_engine');
       $form['entity_print'][$export_type] = [
         '#type' => 'select',
@@ -166,7 +166,7 @@ class SettingsForm extends ConfigFormBase {
    */
   public function ajaxPluginFormCallback(&$form, FormStateInterface $form_state) {
     $export_type = $form_state->getTriggeringElement()['#name'];
-    return $form['entity_print'][$export_type. '_config'];
+    return $form['entity_print'][$export_type . '_config'];
   }
 
   /**
@@ -185,7 +185,7 @@ class SettingsForm extends ConfigFormBase {
     $form = [
       '#type' => 'fieldset',
       '#title' => $this->t('@engine Settings', ['@engine' => $plugin->getPluginDefinition()['label']]),
-      '#tree' => TRUE
+      '#tree' => TRUE,
     ];
     return $form + $plugin->buildConfigurationForm([], $form_state);
   }
diff --git a/src/Plugin/Action/PrintDownload.php b/src/Plugin/Action/PrintDownload.php
index 95416f3..cc3f935 100644
--- a/src/Plugin/Action/PrintDownload.php
+++ b/src/Plugin/Action/PrintDownload.php
@@ -116,7 +116,7 @@ class PrintDownload extends ConfigurableActionBase implements ContainerFactoryPl
    */
   public function executeMultiple(array $entities) {
     try {
-      (new StreamedResponse(function() use ($entities) {
+      (new StreamedResponse(function () use ($entities) {
         $this->printBuilder->deliverPrintable($entities, $this->entityPrintPluginManager->createSelectedInstance($this->configuration['export_type']), TRUE);
       }))->send();
     }
diff --git a/src/Plugin/Block/PrintLinks.php b/src/Plugin/Block/PrintLinks.php
index 8ad7e61..0848892 100644
--- a/src/Plugin/Block/PrintLinks.php
+++ b/src/Plugin/Block/PrintLinks.php
@@ -42,7 +42,7 @@ class PrintLinks extends BlockBase implements ContainerFactoryPluginInterface {
    * @param \Drupal\entity_print\Plugin\ExportTypeManagerInterface $exportTypeManager
    *   The export type manager.
    */
-  public function __construct(array $configuration, $plugin_id, $plugin_definition, ExportTypeManagerInterface $exportTypeManager) {
+  public function __construct(array $configuration, $plugin_id, array $plugin_definition, ExportTypeManagerInterface $exportTypeManager) {
     $this->exportTypeManager = $exportTypeManager;
     parent::__construct($configuration, $plugin_id, $plugin_definition);
   }
diff --git a/src/Plugin/EntityPrint/ExportType/DefaultExportType.php b/src/Plugin/EntityPrint/ExportType/DefaultExportType.php
index 372b8a0..3a11ec0 100644
--- a/src/Plugin/EntityPrint/ExportType/DefaultExportType.php
+++ b/src/Plugin/EntityPrint/ExportType/DefaultExportType.php
@@ -5,6 +5,9 @@ namespace Drupal\entity_print\Plugin\EntityPrint\ExportType;
 use Drupal\Core\Plugin\PluginBase;
 use Drupal\entity_print\Plugin\ExportTypeInterface;
 
+/**
+ * Export type plugin class.
+ */
 class DefaultExportType extends PluginBase implements ExportTypeInterface {
 
   /**
diff --git a/src/Plugin/EntityPrint/PrintEngine/AlignableHeaderFooterInterface.php b/src/Plugin/EntityPrint/PrintEngine/AlignableHeaderFooterInterface.php
index 6b9a9fd..8225605 100644
--- a/src/Plugin/EntityPrint/PrintEngine/AlignableHeaderFooterInterface.php
+++ b/src/Plugin/EntityPrint/PrintEngine/AlignableHeaderFooterInterface.php
@@ -20,14 +20,14 @@ interface AlignableHeaderFooterInterface {
   /**
    * Align the text in the center.
    */
-  const ALIGN_CENTER= 'center';
+  const ALIGN_CENTER = 'center';
 
   /**
    * Sets the header text.
    *
    * @param string $text
    *   The plain text to add to the header.
-   * @param ALIGN_* $alignment
+   * @param string $alignment
    *   One of the align constants.
    *
    * @return $this
@@ -40,7 +40,7 @@ interface AlignableHeaderFooterInterface {
    *
    * @param string $text
    *   The plain text to add to the footer.
-   * @param ALIGN_* $position
+   * @param string $alignment
    *   One of the align constants.
    *
    * @return $this
diff --git a/src/Plugin/EntityPrint/PrintEngine/DomPdf.php b/src/Plugin/EntityPrint/PrintEngine/DomPdf.php
index cc95585..5631d40 100644
--- a/src/Plugin/EntityPrint/PrintEngine/DomPdf.php
+++ b/src/Plugin/EntityPrint/PrintEngine/DomPdf.php
@@ -23,6 +23,8 @@ use Dompdf\Adapter\CPDF;
 class DomPdf extends PdfEngineBase implements ContainerFactoryPluginInterface {
 
   /**
+   * The Dompdf instance.
+   *
    * @var \Dompdf\Dompdf
    */
   protected $dompdf;
@@ -97,7 +99,7 @@ class DomPdf extends PdfEngineBase implements ContainerFactoryPluginInterface {
       '#title' => $this->t('Enable HTML5 Parser'),
       '#type' => 'checkbox',
       '#default_value' => $this->configuration['enable_html5_parser'],
-      '#description' => $this->t('Note, this library doesn\'t work without this option enabled.'),
+      '#description' => $this->t("Note, this library doesn't work without this option enabled."),
     ];
     $form['enable_remote'] = [
       '#title' => $this->t('Enable Remote URLs'),
@@ -120,13 +122,13 @@ class DomPdf extends PdfEngineBase implements ContainerFactoryPluginInterface {
       '#title' => $this->t('Verify Peer'),
       '#type' => 'checkbox',
       '#default_value' => $this->configuration['verify_peer'],
-      '#description' => $this->t('Verify an SSL Peer\'s certificate. For development only, do not disable this in production. See https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYPEER.html'),
+      '#description' => $this->t("Verify an SSL Peer's certificate. For development only, do not disable this in production. See https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYPEER.html"),
     ];
     $form['ssl_configuration']['verify_peer_name'] = [
       '#title' => $this->t('Verify Peer Name'),
       '#type' => 'checkbox',
       '#default_value' => $this->configuration['verify_peer_name'],
-      '#description' => $this->t('Verify an SSL Peer\'s certificate. For development only, do not disable this in production. See https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYPEER.html'),
+      '#description' => $this->t("Verify an SSL Peer's certificate. For development only, do not disable this in production. See https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYPEER.html"),
     ];
 
     return $form;
diff --git a/src/Plugin/EntityPrint/PrintEngine/PhpWkhtmlToPdf.php b/src/Plugin/EntityPrint/PrintEngine/PhpWkhtmlToPdf.php
index e747b6b..e602a0c 100644
--- a/src/Plugin/EntityPrint/PrintEngine/PhpWkhtmlToPdf.php
+++ b/src/Plugin/EntityPrint/PrintEngine/PhpWkhtmlToPdf.php
@@ -9,6 +9,8 @@ use Drupal\entity_print\PrintEngineException;
 use mikehaertl\wkhtmlto\Pdf;
 
 /**
+ * PHP wkhtmltopdf plugin.
+ *
  * @PrintEngine(
  *   id = "phpwkhtmltopdf",
  *   label = @Translation("Php Wkhtmltopdf"),
@@ -24,6 +26,8 @@ use mikehaertl\wkhtmlto\Pdf;
 class PhpWkhtmlToPdf extends PdfEngineBase implements AlignableHeaderFooterInterface {
 
   /**
+   * The library instance.
+   *
    * @var \mikehaertl\wkhtmlto\Pdf
    */
   protected $pdf;
diff --git a/src/Plugin/EntityPrint/PrintEngine/TcPdfv1.php b/src/Plugin/EntityPrint/PrintEngine/TcPdfv1.php
index 1e39f5f..75e1de1 100644
--- a/src/Plugin/EntityPrint/PrintEngine/TcPdfv1.php
+++ b/src/Plugin/EntityPrint/PrintEngine/TcPdfv1.php
@@ -7,6 +7,8 @@ use Drupal\entity_print\Plugin\ExportTypeInterface;
 use Drupal\entity_print\Plugin\PrintEngineBase;
 
 /**
+ * TCPDF plugin implementation.
+ *
  * @PrintEngine(
  *   id = "tcpdfv1",
  *   label = @Translation("TCPDF (v1)"),
diff --git a/src/Plugin/EntityPrintPluginManager.php b/src/Plugin/EntityPrintPluginManager.php
index 34152ac..116b5cc 100644
--- a/src/Plugin/EntityPrintPluginManager.php
+++ b/src/Plugin/EntityPrintPluginManager.php
@@ -11,6 +11,9 @@ use Drupal\entity_print\PrintEngineException;
 use Symfony\Component\EventDispatcher\EventDispatcherInterface;
 use Symfony\Component\EventDispatcher\GenericEvent;
 
+/**
+ * Entity print plugin manager.
+ */
 class EntityPrintPluginManager extends DefaultPluginManager implements EntityPrintPluginManagerInterface {
 
   /**
diff --git a/src/Plugin/EntityPrintPluginManagerInterface.php b/src/Plugin/EntityPrintPluginManagerInterface.php
index 3c89d34..96df907 100644
--- a/src/Plugin/EntityPrintPluginManagerInterface.php
+++ b/src/Plugin/EntityPrintPluginManagerInterface.php
@@ -4,6 +4,9 @@ namespace Drupal\entity_print\Plugin;
 
 use Drupal\Component\Plugin\PluginManagerInterface;
 
+/**
+ * Print plugin manager interface.
+ */
 interface EntityPrintPluginManagerInterface extends PluginManagerInterface {
 
   /**
@@ -21,7 +24,7 @@ interface EntityPrintPluginManagerInterface extends PluginManagerInterface {
    * Checks if a plugin is enabled based on its dependencies.
    *
    * @param string $plugin_id
-   *   The plugin id to check
+   *   The plugin id to check.
    *
    * @return bool
    *   TRUE if the plugin is disabled otherwise FALSE.
diff --git a/src/Plugin/ExportTypeInterface.php b/src/Plugin/ExportTypeInterface.php
index 70b0fe3..0656d8b 100644
--- a/src/Plugin/ExportTypeInterface.php
+++ b/src/Plugin/ExportTypeInterface.php
@@ -4,6 +4,9 @@ namespace Drupal\entity_print\Plugin;
 
 use Drupal\Component\Plugin\PluginInspectionInterface;
 
+/**
+ * Export type plugin interface.
+ */
 interface ExportTypeInterface extends PluginInspectionInterface {
 
   /**
diff --git a/src/Plugin/ExportTypeManager.php b/src/Plugin/ExportTypeManager.php
index 9c3e300..eb363f0 100644
--- a/src/Plugin/ExportTypeManager.php
+++ b/src/Plugin/ExportTypeManager.php
@@ -9,6 +9,9 @@ use Drupal\Core\Plugin\DefaultPluginManager;
 use Drupal\Core\Plugin\Discovery\ContainerDerivativeDiscoveryDecorator;
 use Drupal\Core\Plugin\Discovery\YamlDiscovery;
 
+/**
+ * Export type manager.
+ */
 class ExportTypeManager extends DefaultPluginManager implements ExportTypeManagerInterface {
 
   /**
diff --git a/src/Plugin/ExportTypeManagerInterface.php b/src/Plugin/ExportTypeManagerInterface.php
index 45ef167..80da1f1 100644
--- a/src/Plugin/ExportTypeManagerInterface.php
+++ b/src/Plugin/ExportTypeManagerInterface.php
@@ -4,6 +4,9 @@ namespace Drupal\entity_print\Plugin;
 
 use Drupal\Component\Plugin\PluginManagerInterface;
 
+/**
+ * Export type manager interface.
+ */
 interface ExportTypeManagerInterface extends PluginManagerInterface {
 
   /**
diff --git a/src/Plugin/Field/FieldFormatter/Base64ImageFormatter.php b/src/Plugin/Field/FieldFormatter/Base64ImageFormatter.php
index 6d7fdca..3e6fe3f 100644
--- a/src/Plugin/Field/FieldFormatter/Base64ImageFormatter.php
+++ b/src/Plugin/Field/FieldFormatter/Base64ImageFormatter.php
@@ -2,7 +2,6 @@
 
 namespace Drupal\entity_print\Plugin\Field\FieldFormatter;
 
-use Drupal\Core\Entity\Entity;
 use Drupal\Core\Field\FieldItemListInterface;
 use Drupal\Core\Form\FormStateInterface;
 use Drupal\file\Entity\File;
@@ -75,12 +74,6 @@ class Base64ImageFormatter extends ImageFormatter {
   /**
    * Gets the image style uri.
    *
-   * @TODO We should use ImageStyleDownloadController once core is fixed.
-   * Currently this code does not acquire a look to generate the derivative and
-   * may cause issues on high traffic sites with multiple web heads.
-   *
-   * @see https://drupal.org/node/1220116
-   *
    * @param \Drupal\image\Entity\ImageStyle $image_style
    *   The image style we want a URL for.
    * @param \Drupal\file\Entity\File $file
@@ -88,6 +81,12 @@ class Base64ImageFormatter extends ImageFormatter {
    *
    * @return bool|string
    *   A uri for this image style.
+   *
+   * @TODO We should use ImageStyleDownloadController once core is fixed.
+   * Currently this code does not acquire a look to generate the derivative and
+   * may cause issues on high traffic sites with multiple web heads.
+   *
+   * @see https://drupal.org/node/1220116
    */
   protected function getImageStyleUri(ImageStyle $image_style, File $file) {
     $file_uri = $file->getFileUri();
diff --git a/src/Plugin/PrintEngineInterface.php b/src/Plugin/PrintEngineInterface.php
index 177ec93..dedaf94 100644
--- a/src/Plugin/PrintEngineInterface.php
+++ b/src/Plugin/PrintEngineInterface.php
@@ -6,6 +6,9 @@ use Drupal\Component\Plugin\PluginInspectionInterface;
 use Drupal\Component\Plugin\ConfigurablePluginInterface;
 use Drupal\Core\Plugin\PluginFormInterface;
 
+/**
+ * Print engine interface.
+ */
 interface PrintEngineInterface extends PluginInspectionInterface, PluginFormInterface, ConfigurablePluginInterface {
 
   /**
diff --git a/src/PrintBuilder.php b/src/PrintBuilder.php
index ba5caac..973e58a 100644
--- a/src/PrintBuilder.php
+++ b/src/PrintBuilder.php
@@ -11,6 +11,9 @@ use Drupal\entity_print\Plugin\PrintEngineInterface;
 use Drupal\entity_print\Renderer\RendererFactoryInterface;
 use Symfony\Component\EventDispatcher\EventDispatcherInterface;
 
+/**
+ * The print builder service.
+ */
 class PrintBuilder implements PrintBuilderInterface {
 
   use StringTranslationTrait;
diff --git a/src/PrintEngineException.php b/src/PrintEngineException.php
index 065738f..4226e73 100644
--- a/src/PrintEngineException.php
+++ b/src/PrintEngineException.php
@@ -83,7 +83,7 @@ class PrintEngineException extends \Exception {
    * @return bool
    *   TRUE if anyone of the patterns match otherwise FALSE.
    */
-  protected function evalulateRegex($patterns, $subject) {
+  protected function evalulateRegex(array $patterns, $subject) {
     foreach ($patterns as $pattern) {
       if (preg_match($pattern, $subject, $matches)) {
         return TRUE;
diff --git a/src/Renderer/RendererBase.php b/src/Renderer/RendererBase.php
index f47e2f1..045d649 100644
--- a/src/Renderer/RendererBase.php
+++ b/src/Renderer/RendererBase.php
@@ -46,6 +46,18 @@ abstract class RendererBase implements RendererInterface, EntityHandlerInterface
    */
   protected $dispatcher;
 
+  /**
+   * RendererBase constructor.
+   *
+   * @param \Drupal\Core\Render\RendererInterface $renderer
+   *   Cores renderer.
+   * @param \Drupal\entity_print\Asset\AssetRendererInterface $asset_renderer
+   *   The asset renderer.
+   * @param \Drupal\entity_print\FilenameGeneratorInterface $filename_generator
+   *   Filename generator.
+   * @param \Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher
+   *   The event dispatcher.
+   */
   public function __construct(CoreRendererInterface $renderer, AssetRendererInterface $asset_renderer, FilenameGeneratorInterface $filename_generator, EventDispatcherInterface $event_dispatcher) {
     $this->renderer = $renderer;
     $this->assetRenderer = $asset_renderer;
diff --git a/src/Renderer/RendererFactoryInterface.php b/src/Renderer/RendererFactoryInterface.php
index e14b4b0..cef80ca 100644
--- a/src/Renderer/RendererFactoryInterface.php
+++ b/src/Renderer/RendererFactoryInterface.php
@@ -2,9 +2,14 @@
 
 namespace Drupal\entity_print\Renderer;
 
+/**
+ * The renderer factory inteface.
+ */
 interface RendererFactoryInterface {
 
   /**
+   * Create a new entity renderer.
+   *
    * @param mixed $item
    *   The item we require a renderer for.
    * @param string $context
diff --git a/src/Renderer/RendererInterface.php b/src/Renderer/RendererInterface.php
index c8b6936..a25f48b 100644
--- a/src/Renderer/RendererInterface.php
+++ b/src/Renderer/RendererInterface.php
@@ -2,6 +2,9 @@
 
 namespace Drupal\entity_print\Renderer;
 
+/**
+ * The renderer interface.
+ */
 interface RendererInterface {
 
   /**
@@ -26,7 +29,9 @@ interface RendererInterface {
    *   TRUE if we should inject our default CSS otherwise FALSE.
    * @param bool $optimize_css
    *   TRUE if we should compress the CSS otherwise FALSE.
-   * @return mixed
+   *
+   * @return string
+   *   The generated HTML.
    */
   public function generateHtml(array $entities, array $render, $use_default_css, $optimize_css);
 
diff --git a/src/Tests/Update/EntityPrintUpdateTest.php b/src/Tests/Update/EntityPrintUpdateTest.php
index 5284b9f..b060d87 100644
--- a/src/Tests/Update/EntityPrintUpdateTest.php
+++ b/src/Tests/Update/EntityPrintUpdateTest.php
@@ -5,6 +5,8 @@ namespace Drupal\entity_print\Tests\Update;
 use Drupal\system\Tests\Update\UpdatePathTestBase;
 
 /**
+ * Update from 1.x to 2.x test.
+ *
  * @group entity_print
  */
 class EntityPrintUpdateTest extends UpdatePathTestBase {
diff --git a/tests/modules/entity_print_test/src/Plugin/EntityPrint/PrintEngine/NotAvailablePrintEngine.php b/tests/modules/entity_print_test/src/Plugin/EntityPrint/PrintEngine/NotAvailablePrintEngine.php
index 7ba5c01..fbdcc46 100644
--- a/tests/modules/entity_print_test/src/Plugin/EntityPrint/PrintEngine/NotAvailablePrintEngine.php
+++ b/tests/modules/entity_print_test/src/Plugin/EntityPrint/PrintEngine/NotAvailablePrintEngine.php
@@ -5,6 +5,8 @@ namespace Drupal\entity_print_test\Plugin\EntityPrint\PrintEngine;
 use Drupal\entity_print\Plugin\PrintEngineBase;
 
 /**
+ * Unavailable print engine for testing.
+ *
  * @PrintEngine(
  *   id = "not_available_print_engine",
  *   label = @Translation("Not Available Print Engine"),
diff --git a/tests/modules/entity_print_test/src/Plugin/EntityPrint/PrintEngine/PrintExceptionEngine.php b/tests/modules/entity_print_test/src/Plugin/EntityPrint/PrintEngine/PrintExceptionEngine.php
index 169a83b..61a6a0d 100644
--- a/tests/modules/entity_print_test/src/Plugin/EntityPrint/PrintEngine/PrintExceptionEngine.php
+++ b/tests/modules/entity_print_test/src/Plugin/EntityPrint/PrintEngine/PrintExceptionEngine.php
@@ -6,6 +6,8 @@ use Drupal\entity_print\Plugin\PrintEngineBase;
 use Drupal\entity_print\PrintEngineException;
 
 /**
+ * A test print engine that throws an exception.
+ *
  * @PrintEngine(
  *   id = "print_exception_engine",
  *   label = @Translation("Print Exception Engine"),
diff --git a/tests/modules/entity_print_test/src/Plugin/EntityPrint/PrintEngine/TestPrintEngine.php b/tests/modules/entity_print_test/src/Plugin/EntityPrint/PrintEngine/TestPrintEngine.php
index 7ee2520..01f27a8 100644
--- a/tests/modules/entity_print_test/src/Plugin/EntityPrint/PrintEngine/TestPrintEngine.php
+++ b/tests/modules/entity_print_test/src/Plugin/EntityPrint/PrintEngine/TestPrintEngine.php
@@ -6,6 +6,8 @@ use Drupal\Core\Form\FormStateInterface;
 use Drupal\entity_print\Plugin\PrintEngineBase;
 
 /**
+ * A test print engine plugin.
+ *
  * @PrintEngine(
  *   id = "testprintengine",
  *   label = @Translation("Test Print Engine"),
@@ -15,6 +17,8 @@ use Drupal\entity_print\Plugin\PrintEngineBase;
 class TestPrintEngine extends PrintEngineBase {
 
   /**
+   * The HTML string.
+   *
    * @var string
    */
   protected $html;
diff --git a/tests/modules/entity_print_test/src/Plugin/EntityPrint/PrintEngine/TestWordPrintEngine.php b/tests/modules/entity_print_test/src/Plugin/EntityPrint/PrintEngine/TestWordPrintEngine.php
index 32ec423..4c50d1c 100644
--- a/tests/modules/entity_print_test/src/Plugin/EntityPrint/PrintEngine/TestWordPrintEngine.php
+++ b/tests/modules/entity_print_test/src/Plugin/EntityPrint/PrintEngine/TestWordPrintEngine.php
@@ -6,6 +6,8 @@ use Drupal\Core\Form\FormStateInterface;
 use Drupal\entity_print\Plugin\PrintEngineBase;
 
 /**
+ * The test word pring engine.
+ *
  * @PrintEngine(
  *   id = "test_word_print_engine",
  *   label = @Translation("Test Word Print Engine"),
diff --git a/tests/src/Functional/Base64ImageTest.php b/tests/src/Functional/Base64ImageTest.php
index da0f44e..1612baf 100644
--- a/tests/src/Functional/Base64ImageTest.php
+++ b/tests/src/Functional/Base64ImageTest.php
@@ -11,6 +11,8 @@ use Drupal\file\Entity\File;
 use Drupal\Tests\BrowserTestBase;
 
 /**
+ * Test base64 images in exports.
+ *
  * @group entity_print
  */
 class Base64ImageTest extends BrowserTestBase {
@@ -64,7 +66,7 @@ class Base64ImageTest extends BrowserTestBase {
     $this->node = $this->createNode([
       $field_name => [
         'target_id' => $image->id(),
-      ]
+      ],
     ]);
 
     $component = [
diff --git a/tests/src/Functional/EntityPrintTest.php b/tests/src/Functional/EntityPrintTest.php
index fe76a0f..7b17d38 100644
--- a/tests/src/Functional/EntityPrintTest.php
+++ b/tests/src/Functional/EntityPrintTest.php
@@ -6,6 +6,8 @@ use Drupal\Tests\BrowserTestBase;
 use Drupal\user\Entity\Role;
 
 /**
+ * Test file.
+ *
  * @group entity_print
  */
 class EntityPrintTest extends BrowserTestBase {
@@ -43,7 +45,12 @@ class EntityPrintTest extends BrowserTestBase {
     $config
       ->set('print_engines.pdf_engine', 'print_exception_engine')
       ->save();
-    user_role_grant_permissions(Role::ANONYMOUS_ID, ['access content', 'bypass entity print access', 'entity print views access', 'administer nodes']);
+    user_role_grant_permissions(Role::ANONYMOUS_ID, [
+      'access content',
+      'bypass entity print access',
+      'entity print views access',
+      'administer nodes',
+    ]);
   }
 
   /**
diff --git a/tests/src/Kernel/EntityPrintAccessTest.php b/tests/src/Kernel/EntityPrintAccessTest.php
index f2bc22f..27193ac 100644
--- a/tests/src/Kernel/EntityPrintAccessTest.php
+++ b/tests/src/Kernel/EntityPrintAccessTest.php
@@ -2,6 +2,7 @@
 
 namespace Drupal\Tests\entity_print\Kernel;
 
+use Drupal\Core\Session\AccountInterface;
 use Drupal\entity_print\Controller\EntityPrintController;
 use Drupal\KernelTests\KernelTestBase;
 use Drupal\simpletest\ContentTypeCreationTrait;
@@ -18,7 +19,18 @@ class EntityPrintAccessTest extends KernelTestBase {
   use NodeCreationTrait;
   use ContentTypeCreationTrait;
 
-  public static $modules = ['system', 'user', 'node', 'field', 'text', 'filter', 'entity_print'];
+  /**
+   * {@inheritdoc}
+   */
+  public static $modules = [
+    'system',
+    'user',
+    'node',
+    'field',
+    'text',
+    'filter',
+    'entity_print',
+  ];
 
   /**
    * The node object to test against.
@@ -44,6 +56,8 @@ class EntityPrintAccessTest extends KernelTestBase {
   }
 
   /**
+   * Test access permissions.
+   *
    * @covers ::checkAccess
    * @dataProvider accessPermissionsDataProvider
    */
@@ -60,19 +74,28 @@ class EntityPrintAccessTest extends KernelTestBase {
    */
   public function accessPermissionsDataProvider() {
     return [
-      'Permission "bypass entity print access" only cannot view PDF.' => [['bypass entity print access'], FALSE],
-      'Permission "access content" only cannot view PDF.' => [['access content'], FALSE],
-      'Permission "access content" and "bypass entity print access" can view PDF.' => [['bypass entity print access', 'access content'], TRUE],
-      'Per entity type permissions allow access.' => [['entity print access type node', 'access content'], TRUE],
-      'Per bundle permissions allow access.' => [['entity print access bundle page', 'access content'], TRUE],
-      'Incorrect entity type permission cannot access' => [['entity print access type user', 'access content'], FALSE],
-      'Incorrect bundle permissions cannot access' => [['entity print access bundle article', 'access content'], FALSE],
-      'No permissions cannot access' => [[], FALSE],
-
+      'Permission "bypass entity print access" only cannot view PDF.' =>
+        [['bypass entity print access'], FALSE],
+      'Permission "access content" only cannot view PDF.' =>
+        [['access content'], FALSE],
+      'Permission "access content" and "bypass entity print access" can view PDF.' =>
+        [['bypass entity print access', 'access content'], TRUE],
+      'Per entity type permissions allow access.' =>
+        [['entity print access type node', 'access content'], TRUE],
+      'Per bundle permissions allow access.' =>
+        [['entity print access bundle page', 'access content'], TRUE],
+      'Incorrect entity type permission cannot access' =>
+        [['entity print access type user', 'access content'], FALSE],
+      'Incorrect bundle permissions cannot access' =>
+        [['entity print access bundle article', 'access content'], FALSE],
+      'No permissions cannot access' =>
+        [[], FALSE],
     ];
   }
 
   /**
+   * Test invalid route parameters.
+   *
    * @covers ::checkAccess
    * @dataProvider invalidRouteParametersDataProvider
    */
@@ -87,9 +110,12 @@ class EntityPrintAccessTest extends KernelTestBase {
    */
   public function invalidRouteParametersDataProvider() {
     return [
-      'Invalid entity type triggers access denied.' => ['invalid', FALSE, 'pdf'],
-      'Invalid entity id triggers access denied.' => ['node', 'invalid-entity-id', 'pdf'],
-      'Invalid export type triggers access denied.' => ['node', FALSE, 'invalid-export-type'],
+      'Invalid entity type triggers access denied.' =>
+        ['invalid', FALSE, 'pdf'],
+      'Invalid entity id triggers access denied.' =>
+        ['node', 'invalid-entity-id', 'pdf'],
+      'Invalid export type triggers access denied.' =>
+        ['node', FALSE, 'invalid-export-type'],
     ];
   }
 
@@ -110,7 +136,7 @@ class EntityPrintAccessTest extends KernelTestBase {
    * @param \Drupal\Core\Session\AccountInterface $account
    *   The account we're checking against.
    * @param string $entity_type
-   *   The entity type string
+   *   The entity type string.
    * @param string $entity_id
    *   The entity id.
    * @param string $export_type
@@ -119,7 +145,7 @@ class EntityPrintAccessTest extends KernelTestBase {
    * @return bool
    *   TRUE if the user has access otherwise FALSE.
    */
-  protected function checkAccess($account, $entity_type, $entity_id, $export_type = 'pdf') {
+  protected function checkAccess(AccountInterface $account, $entity_type, $entity_id, $export_type = 'pdf') {
     $this->container->get('current_user')->setAccount($account);
     $controller = EntityPrintController::create($this->container);
     return $controller->checkAccess($export_type, $entity_type, $entity_id)->isAllowed();
diff --git a/tests/src/Kernel/EntityPrintPluginManagerTest.php b/tests/src/Kernel/EntityPrintPluginManagerTest.php
index 1cb2b4c..9dda0cb 100644
--- a/tests/src/Kernel/EntityPrintPluginManagerTest.php
+++ b/tests/src/Kernel/EntityPrintPluginManagerTest.php
@@ -66,6 +66,8 @@ class EntityPrintPluginManagerTest extends KernelTestBase {
   }
 
   /**
+   * Test disabled definition discovery.
+   *
    * @covers ::getDisabledDefinitions
    * @dataProvider getDisabledDefinitionsDataProvider
    */
@@ -81,7 +83,10 @@ class EntityPrintPluginManagerTest extends KernelTestBase {
    */
   public function getDisabledDefinitionsDataProvider() {
     return [
-      'Filter by pdf' => ['pdf', ['dompdf', 'phpwkhtmltopdf', 'tcpdfv1', 'not_available_print_engine']],
+      'Filter by pdf' => [
+        'pdf',
+        ['dompdf', 'phpwkhtmltopdf', 'tcpdfv1', 'not_available_print_engine'],
+      ],
       'Filter by another type' => ['word_docx', []],
     ];
   }
diff --git a/tests/src/Kernel/ExtraFieldsTest.php b/tests/src/Kernel/ExtraFieldsTest.php
index 5d0cdec..7e404b3 100644
--- a/tests/src/Kernel/ExtraFieldsTest.php
+++ b/tests/src/Kernel/ExtraFieldsTest.php
@@ -2,7 +2,6 @@
 
 namespace Drupal\Tests\entity_print\Kernel;
 
-use Drupal\Core\Datetime\Entity\DateFormat;
 use Drupal\Core\Entity\Entity\EntityViewDisplay;
 use Drupal\Core\Session\AnonymousUserSession;
 use Drupal\KernelTests\KernelTestBase;
diff --git a/tests/src/Kernel/PostRenderSubscriberTest.php b/tests/src/Kernel/PostRenderSubscriberTest.php
index 4073de7..7901748 100644
--- a/tests/src/Kernel/PostRenderSubscriberTest.php
+++ b/tests/src/Kernel/PostRenderSubscriberTest.php
@@ -3,7 +3,6 @@
 namespace Drupal\Tests\entity_print\Kernel;
 
 use Drupal\entity_print\EventSubscriber\PostRenderSubscriber;
-use Drupal\entity_print\PrintEngineException;
 use Drupal\KernelTests\KernelTestBase;
 
 /**
diff --git a/tests/src/Kernel/PrintHtmlAlterTestEvent.php b/tests/src/Kernel/PrintHtmlAlterTestEvent.php
index f0ebe88..96f402e 100644
--- a/tests/src/Kernel/PrintHtmlAlterTestEvent.php
+++ b/tests/src/Kernel/PrintHtmlAlterTestEvent.php
@@ -5,10 +5,17 @@ namespace Drupal\Tests\entity_print\Kernel;
 use Drupal\entity_print\Event\PrintHtmlAlterEvent;
 use Drupal\entity_print\PrintEngineException;
 
+/**
+ * A test event.
+ */
 class PrintHtmlAlterTestEvent extends PrintHtmlAlterEvent {
 
-  // Null the constructor.
-  public function __construct() {}
+  /**
+   * PrintHtmlAlterTestEvent constructor.
+   */
+  public function __construct() {
+
+  }
 
   /**
    * Throws an exception so we can test PostRenderSubscriber.
diff --git a/tests/src/Kernel/PrintLinkTest.php b/tests/src/Kernel/PrintLinkTest.php
index 710875a..7dd5f64 100644
--- a/tests/src/Kernel/PrintLinkTest.php
+++ b/tests/src/Kernel/PrintLinkTest.php
@@ -32,6 +32,8 @@ class PrintLinkTest extends KernelTestBase {
   }
 
   /**
+   * Test build links.
+   *
    * @covers ::build
    */
   public function testBuildLinks() {
@@ -56,7 +58,7 @@ class PrintLinkTest extends KernelTestBase {
    * @return \Drupal\entity_print\Plugin\Block\PrintLinks
    *   The loaded block.
    */
-  protected function getBlock($config = []) {
+  protected function getBlock(array $config = []) {
     $manager = $this->container->get('plugin.manager.block');
     $entity = $this->getMock('Drupal\Core\Entity\EntityInterface');
     $context = new Context(ContextDefinition::create(), $entity);
diff --git a/tests/src/Kernel/TranslationTest.php b/tests/src/Kernel/TranslationTest.php
index 3f3ab1e..51b1e27 100644
--- a/tests/src/Kernel/TranslationTest.php
+++ b/tests/src/Kernel/TranslationTest.php
@@ -19,7 +19,15 @@ class TranslationTest extends KernelTestBase {
   /**
    * {@inheritdoc}
    */
-  public static $modules = ['system', 'user', 'node', 'filter', 'language', 'entity_print', 'entity_print_test'];
+  public static $modules = [
+    'system',
+    'user',
+    'node',
+    'filter',
+    'language',
+    'entity_print',
+    'entity_print_test',
+  ];
 
   /**
    * {@inheritdoc}
diff --git a/tests/themes/entity_print_test_theme/css/entityprint-all.css b/tests/themes/entity_print_test_theme/css/entityprint-all.css
index e69de29..d461309 100644
--- a/tests/themes/entity_print_test_theme/css/entityprint-all.css
+++ b/tests/themes/entity_print_test_theme/css/entityprint-all.css
@@ -0,0 +1,3 @@
+body {
+  background: #fff;
+}
diff --git a/tests/themes/entity_print_test_theme/css/entityprint-module.css b/tests/themes/entity_print_test_theme/css/entityprint-module.css
index e69de29..d461309 100644
--- a/tests/themes/entity_print_test_theme/css/entityprint-module.css
+++ b/tests/themes/entity_print_test_theme/css/entityprint-module.css
@@ -0,0 +1,3 @@
+body {
+  background: #fff;
+}
diff --git a/tests/themes/entity_print_test_theme/css/entityprint-node.css b/tests/themes/entity_print_test_theme/css/entityprint-node.css
index e69de29..d461309 100644
--- a/tests/themes/entity_print_test_theme/css/entityprint-node.css
+++ b/tests/themes/entity_print_test_theme/css/entityprint-node.css
@@ -0,0 +1,3 @@
+body {
+  background: #fff;
+}
diff --git a/tests/themes/entity_print_test_theme/css/entityprint-page.css b/tests/themes/entity_print_test_theme/css/entityprint-page.css
index e69de29..d461309 100644
--- a/tests/themes/entity_print_test_theme/css/entityprint-page.css
+++ b/tests/themes/entity_print_test_theme/css/entityprint-page.css
@@ -0,0 +1,3 @@
+body {
+  background: #fff;
+}
