diff --git a/src/Plugin/Condition/TermDepth.php b/src/Plugin/Condition/TermDepth.php
index b21fabf..741f935 100644
--- a/src/Plugin/Condition/TermDepth.php
+++ b/src/Plugin/Condition/TermDepth.php
@@ -1,10 +1,5 @@
 <?php
 
-/**
- * @file
- * Contains \Drupal\term_depth_condition\Plugin\Condition\TermDepth.
- */
-
 namespace Drupal\term_depth_condition\Plugin\Condition;
 
 use Drupal\Core\Condition\ConditionPluginBase;
@@ -24,21 +19,20 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
  *     "taxonomy_term" = @ContextDefinition("entity:taxonomy_term", required = FALSE , label = @Translation("Taxonomy term"))
  *   }
  * )
- *
  */
 class TermDepth extends ConditionPluginBase implements ContainerFactoryPluginInterface {
 
   /**
-   *  Entity manager instance.
+   * Entity manager instance.
    *
-   * @var EntityTypeManagerInterface
+   * @var \Drupal\Core\Entity\EntityTypeManagerInterface
    */
   protected $entityTypeManager;
 
   /**
    * Creates a new ExampleCondition instance.
    *
-   * @param EntityTypeManagerInterface $entity_manager
+   * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager
    *   The entity storage.
    * @param array $configuration
    *   The plugin configuration, i.e. an array with configuration values keyed
@@ -58,8 +52,7 @@ class TermDepth extends ConditionPluginBase implements ContainerFactoryPluginInt
   /**
    * {@inheritdoc}
    */
-  public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition)
-  {
+  public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
     return new static(
       $container->get('entity_type.manager'),
       $configuration,
@@ -78,14 +71,14 @@ class TermDepth extends ConditionPluginBase implements ContainerFactoryPluginInt
     $form['negate']['#access'] = FALSE;
 
     // Provide a basic text field to enter the term depth.
-    $form['depth'] = array(
+    $form['depth'] = [
       '#type' => 'number',
       '#min' => 0,
       '#max' => 8,
       '#step' => 1,
       '#title' => $this->t('Specify term depth'),
-      '#default_value' => isset($this->configuration['depth']) ? $this->configuration['depth'] : '',
-    );
+      '#default_value' => $this->configuration['depth'] ?? '',
+    ];
 
     return $form;
   }
@@ -95,8 +88,8 @@ class TermDepth extends ConditionPluginBase implements ContainerFactoryPluginInt
    */
   public function defaultConfiguration() {
     return [
-        'depth' => NULL,
-      ] + parent::defaultConfiguration();
+      'depth' => NULL,
+    ] + parent::defaultConfiguration();
   }
 
   /**
@@ -118,7 +111,7 @@ class TermDepth extends ConditionPluginBase implements ContainerFactoryPluginInt
    * @throws \Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
    */
   public function evaluate() {
-    // Only evaluate if a condition is set
+    // Only evaluate if a condition is set.
     if ($this->configuration['depth'] === '') {
       return TRUE;
     }
@@ -161,7 +154,7 @@ class TermDepth extends ConditionPluginBase implements ContainerFactoryPluginInt
   public function summary() {
     $depth = $this->configuration['depth'];
 
-    return $this->t('The term is at a depth of @depth.', array('@depth' => $depth));
+    return $this->t('The term is at a depth of @depth.', ['@depth' => $depth]);
   }
 
 }
