diff --git a/schema_article/schema_article.info b/schema_article/schema_article.info
index 1705ab9..f4196bd 100644
--- a/schema_article/schema_article.info
+++ b/schema_article/schema_article.info
@@ -5,4 +5,4 @@ core = 7.x
 dependencies[] = schema_metatag
 
 files[] = src/SchemaArticleType.php
-files[] = tests/SchemaMetatagArticleTest.test
+files[] = tests/SchemaArticleMetatagTest.test
diff --git a/schema_article/schema_article.metatag.inc b/schema_article/schema_article.metatag.inc
index 14c0aaf..4b9fcca 100644
--- a/schema_article/schema_article.metatag.inc
+++ b/schema_article/schema_article.metatag.inc
@@ -8,81 +8,85 @@
 /**
  * Implements hook_metatag_info().
  */
-function schema_article_metatag_info() {
-  $info['groups']['schema_article'] = array(
-    'label' => t('Schema.org: Article'),
-    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>, Google\'s recommendations at <a href="!google_url">!google_url</a>.', ['!url' => 'http://schema.org/Article', '!google_url' => 'https://developers.google.com/search/docs/data-types/article']),
-    'form' => array(
-      '#weight' => 10,
-    ),
-  );
+function schema_article_metatag_info(): array {
 
   $weight = 10;
 
+  $info['groups']['schema_article'] = [
+    'label' => t('Schema.org: Article'),
+    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>, Google\'s recommendations at <a href="!google_url">!google_url</a>.', [
+      '!url' => 'http://schema.org/Article',
+      '!google_url' => 'https://developers.google.com/search/docs/data-types/article',
+    ]),
+    'form' => [
+      '#weight' => $weight,
+    ],
+  ];
+
   // Basic tags.
-  $defaults = array(
+  $defaults = [
     'class' => 'SchemaNameBase',
     'group' => 'schema_article',
-    'form' => array(
+    'form' => [
       '#type' => 'textfield',
-    ),
-  );
+    ],
+  ];
 
-  $info['tags']['schema_article.@type'] = array(
+  $info['tags']['schema_article.@type'] = [
     'class' => 'SchemaArticleType',
     'label' => t('@type'),
     'description' => t('REQUIRED. The type of article.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_article.headline'] = array(
+  $info['tags']['schema_article.headline'] = [
     'label' => t('headline'),
     'description' => t('REQUIRED BY GOOGLE. Headline of the article.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_article.name'] = array(
+  $info['tags']['schema_article.name'] = [
     'label' => t('name'),
     'description' => t('Name of the article.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_article.description'] = array(
+  $info['tags']['schema_article.description'] = [
     'label' => t('description'),
     'description' => t('RECOMMENDED BY GOOGLE. A description of the item.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_article.author'] = array(
+  $info['tags']['schema_article.author'] = [
     'class' => 'SchemaPersonOrgBase',
     'label' => t('author'),
     'description' => t('REQUIRED BY GOOGLE. Author of the article.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_article.publisher'] = array(
+  $info['tags']['schema_article.publisher'] = [
     'class' => 'SchemaPersonOrgBase',
     'label' => t('publisher'),
     'description' => t('REQUIRED BY GOOGLE. Publisher of the article.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_article.datePublished'] = array(
+  $info['tags']['schema_article.datePublished'] = [
     'class' => 'SchemaDateBase',
     'label' => t('datePublished'),
     'description' => t('REQUIRED BY GOOGLE. Date the article was published.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_article.dateModified'] = array(
+  $info['tags']['schema_article.dateModified'] = [
     'class' => 'SchemaDateBase',
     'label' => t('dateModified'),
     'description' => t('RECOMMENDED BY GOOGLE. Date the article was last modified.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_article.image'] = array(
+  $info['tags']['schema_article.image'] = [
     'class' => 'SchemaImageBase',
     'label' => t('image'),
     'description' => t('REQUIRED BY GOOGLE. The primary image for this item.'),
@@ -90,59 +94,59 @@ function schema_article_metatag_info() {
     'url' => TRUE,
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_article.mainEntityOfPage'] = array(
+  $info['tags']['schema_article.mainEntityOfPage'] = [
     'class' => 'SchemaMainEntityOfPageBase',
     'label' => t('mainEntityOfPage'),
     'description' => 'RECOMMENDED BY GOOGLE. The canonical URL of the article page. Specify mainEntityOfPage when the article is the primary topic of the article page.',
     'url' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_article.hasPart'] = array(
+  $info['tags']['schema_article.hasPart'] = [
     'class' => 'SchemaHasPartBase',
     'label' => t('hasPart'),
     'description' => t('RECOMMENDED BY GOOGLE. Use for <a href="!url">Paywalled content</a>', ['!url' => 'https://developers.google.com/search/docs/data-types/paywalled-content']),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_article.isAccessibleForFree'] = array(
+  $info['tags']['schema_article.isAccessibleForFree'] = [
     'class' => 'SchemaIsAccessibleForFreeBase',
     'label' => t('isAccessibleForFree'),
     'description' => t('RECOMMENDED BY GOOGLE. Use for <a href="!url">Paywalled content</a>', ['!url' => 'https://developers.google.com/search/docs/data-types/paywalled-content']),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_article.speakable'] = array(
+  $info['tags']['schema_article.speakable'] = [
     'class' => 'SchemaSpeakableBase',
     'label' => t('speakable'),
     'description' => t('Speakable property.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_article.about'] = array(
+  $info['tags']['schema_article.about'] = [
     'label' => t('about'),
     'description' => t('Comma separated list of what the article is about, for instance taxonomy terms or categories.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_article.aggregateRating'] = array(
+  $info['tags']['schema_article.aggregateRating'] = [
     'class' => 'SchemaRatingBase',
     'label' => t('aggregateRating'),
     'description' => '',
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_article.review'] = array(
+  $info['tags']['schema_article.review'] = [
     'class' => 'SchemaReviewBase',
     'label' => t('review'),
     'description' => '',
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
   return $info;
 
diff --git a/schema_article/schema_article.module b/schema_article/schema_article.module
index 72c2f40..950ec04 100644
--- a/schema_article/schema_article.module
+++ b/schema_article/schema_article.module
@@ -8,8 +8,8 @@
 /**
  * Implements hook_ctools_plugin_api().
  */
-function schema_article_ctools_plugin_api($owner, $api) {
+function schema_article_ctools_plugin_api(string $owner, string $api): ?array {
   if ($owner == 'metatag' && $api == 'metatag') {
-    return array('version' => 1);
+    return ['version' => 1];
   }
 }
diff --git a/schema_article/src/SchemaArticleType.php b/schema_article/src/SchemaArticleType.php
index 6858a4d..a5a2833 100644
--- a/schema_article/src/SchemaArticleType.php
+++ b/schema_article/src/SchemaArticleType.php
@@ -8,7 +8,7 @@ class SchemaArticleType extends SchemaTypeBase {
   /**
    * {@inheritdoc}
    */
-  public static function labels() {
+  public static function labels(): array {
     return [
       'Article',
       '- NewsArticle',
diff --git a/schema_article/tests/SchemaMetatagArticleTest.test b/schema_article/tests/SchemaMetatagArticleTest.test
deleted file mode 100644
index f473f46..0000000
--- a/schema_article/tests/SchemaMetatagArticleTest.test
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-
-/**
- * Tests that each of the Metatag schema_article tags work correctly.
- */
-class SchemaMetatagArticleTest extends SchemaMetatagTagsTestBase {
-
-  /**
-   * {@inheritdoc}
-   */
-  public static function getInfo() {
-    return array(
-      'name' => 'Schema Metatag: Article',
-      'description' => 'Test the schema_article meta tags.',
-      'group' => 'Schema Metatag',
-      'dependencies' => [
-        'ctools',
-        'token',
-        'metatag',
-        'schema_metatag',
-        'schema_article',
-      ],
-    );
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public function setUp(array $modules = array()) {
-    $modules[] = 'schema_article';
-    parent::setUp($modules);
-
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public $moduleName = 'schema_article';
-
-  /**
-   * {@inheritdoc}
-   */
-  public $schemaTags = [
-    'schema_article.@type' => 'SchemaArticleType',
-    'schema_article.headline' => 'SchemaNameBase',
-    'schema_article.name' => 'SchemaNameBase',
-    'schema_article.description' => 'SchemaNameBase',
-    'schema_article.author' => 'SchemaPersonOrgBase',
-    'schema_article.publisher' => 'SchemaPersonOrgBase',
-    'schema_article.datePublished' => 'SchemaDateBase',
-    'schema_article.dateModified' => 'SchemaDateBase',
-    'schema_article.about' => 'SchemaNameBase',
-    'schema_article.image' => 'SchemaImageBase',
-    'schema_article.mainEntityOfPage' => 'SchemaMainEntityOfPageBase',
-    'schema_article.hasPart' => 'SchemaHasPartBase',
-    'schema_article.isAccessibleForFree' => 'SchemaIsAccessibleForFreeBase',
-    'schema_article.speakable' => 'SchemaSpeakableBase',
-    'schema_article.aggregateRating' => 'SchemaRatingBase',
-    'schema_article.review' => 'SchemaReviewBase',
-  ];
-
-}
diff --git a/schema_article_example/schema_article_example.metatag.inc b/schema_article_example/schema_article_example.metatag.inc
index 51e6720..e19464f 100644
--- a/schema_article_example/schema_article_example.metatag.inc
+++ b/schema_article_example/schema_article_example.metatag.inc
@@ -8,25 +8,25 @@
 /**
  * Implements hook_metatag_info().
  */
-function schema_article_example_metatag_info() {
+function schema_article_example_metatag_info(): array {
 
   $weight = 10;
 
   // Basic tags.
-  $defaults = array(
+  $defaults = [
     'class' => 'SchemaNameBase',
     'group' => 'schema_article_example',
-    'form' => array(
+    'form' => [
       '#type' => 'textfield',
-    ),
-  );
+    ],
+  ];
 
-  $info['tags']['schema_article.typicalAgeRange'] = array(
+  $info['tags']['schema_article.typicalAgeRange'] = [
     'class' => 'SchemaNameBase',
     'label' => t('typicalAgeRange'),
     'description' => t('The applicable age range of the item.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
   return $info;
 }
diff --git a/schema_article_example/schema_article_example.module b/schema_article_example/schema_article_example.module
index 3247a2b..88adc66 100644
--- a/schema_article_example/schema_article_example.module
+++ b/schema_article_example/schema_article_example.module
@@ -8,8 +8,8 @@
 /**
  * Implements hook_ctools_plugin_api().
  */
-function schema_article_example_ctools_plugin_api($owner, $api) {
+function schema_article_example_ctools_plugin_api(string $owner, string $api): ?array {
   if ($owner == 'metatag' && $api == 'metatag') {
-    return array('version' => 1);
+    return ['version' => 1];
   }
 }
diff --git a/schema_book/schema_book.info b/schema_book/schema_book.info
index 225c405..84bcc67 100644
--- a/schema_book/schema_book.info
+++ b/schema_book/schema_book.info
@@ -5,4 +5,4 @@ core = 7.x
 dependencies[] = schema_metatag
 
 files[] = src/SchemaBookType.php
-files[] = tests/SchemaMetatagBookTest.test
+files[] = tests/SchemaBookMetatagTest.test
diff --git a/schema_book/schema_book.metatag.inc b/schema_book/schema_book.metatag.inc
index 82eef98..0b7e4c9 100644
--- a/schema_book/schema_book.metatag.inc
+++ b/schema_book/schema_book.metatag.inc
@@ -8,59 +8,63 @@
 /**
  * Implements hook_metatag_info().
  */
-function schema_book_metatag_info() {
-  $info['groups']['schema_book'] = array(
-    'label' => t('Schema.org: Book'),
-    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>, Google\'s recommendations at <a href="!google_url">!google_url</a>.', ['!url' => 'http://schema.org/Book', '!google_url' => 'https://developers.google.com/search/docs/data-types/book']),
-    'form' => array(
-      '#weight' => 10,
-    ),
-  );
+function schema_book_metatag_info(): array {
 
   $weight = 10;
 
+  $info['groups']['schema_book'] = [
+    'label' => t('Schema.org: Book'),
+    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>, Google\'s recommendations at <a href="!google_url">!google_url</a>.', [
+      '!url' => 'http://schema.org/Book',
+      '!google_url' => 'https://developers.google.com/search/docs/data-types/book',
+    ]),
+    'form' => [
+      '#weight' => $weight,
+    ],
+  ];
+
   // Basic tags.
-  $defaults = array(
+  $defaults = [
     'class' => 'SchemaNameBase',
     'group' => 'schema_book',
-    'form' => array(
+    'form' => [
       '#type' => 'textfield',
-    ),
-  );
+    ],
+  ];
 
-  $info['tags']['schema_book.@type'] = array(
+  $info['tags']['schema_book.@type'] = [
     'class' => 'SchemaBookType',
     'label' => t('@type'),
     'description' => t('REQUIRED. The type of book.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_book.name'] = array(
+  $info['tags']['schema_book.name'] = [
     'label' => t('name'),
     'description' => t('REQUIRED BY GOOGLE. Name of the book.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_book.author'] = array(
+  $info['tags']['schema_book.author'] = [
     'class' => 'SchemaPersonOrgBase',
     'label' => t('author'),
     'description' => t('REQUIRED BY GOOGLE. Author of the book.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_book.@id'] = array(
+  $info['tags']['schema_book.@id'] = [
     'label' => t('@id'),
     'description' => t('RECOMMENDED BY GOOGLE. Universally unique id for the book, generally a url.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_book.description'] = array(
+  $info['tags']['schema_book.description'] = [
     'label' => t('description'),
     'description' => t('RECOMMENDED BY GOOGLE. A description of the item.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_book.image'] = array(
+  $info['tags']['schema_book.image'] = [
     'class' => 'SchemaImageBase',
     'label' => t('image'),
     'description' => t('The primary image for this item.'),
@@ -68,49 +72,49 @@ function schema_book_metatag_info() {
     'url' => TRUE,
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_book.url'] = array(
+  $info['tags']['schema_book.url'] = [
     'class' => 'SchemaUrlBase',
     'label' => t('url'),
     'description' => t('REQUIRED BY GOOGLE. Url of the book.'),
     'multiple' => FALSE,
     'url' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_book.sameAs'] = array(
+  $info['tags']['schema_book.sameAs'] = [
     'class' => 'SchemaUrlBase',
     'label' => t('sameAs'),
     'description' => t('RECOMMENDED BY GOOGLE. Social links and other urls for the book.'),
     'multiple' => FALSE,
     'url' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_book.workExample'] = array(
+  $info['tags']['schema_book.workExample'] = [
     'class' => 'SchemaCreativeWorkBase',
     'label' => t('workExample'),
     'description' => t('REQUIRED BY GOOGLE. Example of the book.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_book.aggregateRating'] = array(
+  $info['tags']['schema_book.aggregateRating'] = [
     'class' => 'SchemaRatingBase',
     'label' => t('aggregateRating'),
     'description' => t('Aggregate rating of the book.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_book.review'] = array(
+  $info['tags']['schema_book.review'] = [
     'class' => 'SchemaReviewBase',
     'label' => t('review'),
     'description' => t('Review of the book.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
   return $info;
 }
diff --git a/schema_book/schema_book.module b/schema_book/schema_book.module
index 79cf572..a2e46b6 100644
--- a/schema_book/schema_book.module
+++ b/schema_book/schema_book.module
@@ -8,7 +8,7 @@
 /**
  * Implements hook_ctools_plugin_api().
  */
-function schema_book_ctools_plugin_api($owner, $api) {
+function schema_book_ctools_plugin_api(string $owner, string $api): ?array {
   if ($owner == 'metatag' && $api == 'metatag') {
     return array('version' => 1);
   }
diff --git a/schema_book/src/SchemaBookType.php b/schema_book/src/SchemaBookType.php
index 03022b9..acd01b2 100644
--- a/schema_book/src/SchemaBookType.php
+++ b/schema_book/src/SchemaBookType.php
@@ -8,7 +8,7 @@ class SchemaBookType extends SchemaTypeBase {
   /**
    * {@inheritdoc}
    */
-  public static function labels() {
+  public static function labels(): array {
     return [
       'Book',
     ];
diff --git a/schema_book/tests/SchemaMetatagBookTest.test b/schema_book/tests/SchemaMetatagBookTest.test
deleted file mode 100644
index 48f116b..0000000
--- a/schema_book/tests/SchemaMetatagBookTest.test
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
-
-/**
- * Tests that each of the Metatag schema_book tags work correctly.
- */
-class SchemaMetatagBookTest extends SchemaMetatagTagsTestBase {
-
-  /**
-   * {@inheritdoc}
-   */
-  public static function getInfo() {
-    return array(
-      'name' => 'Schema Metatag: Book',
-      'description' => 'Test the schema_book meta tags.',
-      'group' => 'Schema Metatag',
-      'dependencies' => [
-        'ctools',
-        'token',
-        'metatag',
-        'schema_metatag',
-        'schema_book',
-      ],
-    );
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public function setUp(array $modules = array()) {
-    $modules[] = 'schema_book';
-    parent::setUp($modules);
-
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public $moduleName = 'schema_book';
-
-  /**
-   * {@inheritdoc}
-   */
-  public $schemaTags = [
-    'schema_book.@type' => 'SchemaBookType',
-    'schema_book.author' => 'SchemaPersonOrgBase',
-    'schema_book.name' => 'SchemaNameBase',
-    'schema_book.@id' => 'SchemaNameBase',
-    'schema_book.description' => 'SchemaNameBase',
-    'schema_book.image' => 'SchemaImageBase',
-    'schema_book.url' => 'SchemaUrlBase',
-    'schema_book.sameAs' => 'SchemaUrlBase',
-    'schema_book.aggregateRating' => 'SchemaRatingBase',
-    'schema_book.review' => 'SchemaReviewBase',
-    'schema_book.workExample' => 'SchemaCreativeWorkBase',
-  ];
-
-}
diff --git a/schema_course/schema_course.info b/schema_course/schema_course.info
index 49240ab..cf61a31 100644
--- a/schema_course/schema_course.info
+++ b/schema_course/schema_course.info
@@ -5,4 +5,4 @@ core = 7.x
 dependencies[] = schema_metatag
 
 files[] = src/SchemaCourseType.php
-files[] = tests/SchemaMetatagCourseTest.test
+files[] = tests/SchemaCourseMetatagTest.test
diff --git a/schema_course/schema_course.metatag.inc b/schema_course/schema_course.metatag.inc
index 6beb744..e158a01 100644
--- a/schema_course/schema_course.metatag.inc
+++ b/schema_course/schema_course.metatag.inc
@@ -8,69 +8,73 @@
 /**
  * Implements hook_metatag_info().
  */
-function schema_course_metatag_info() {
-  $info['groups']['schema_course'] = array(
-    'label' => t('Schema.org: Course'),
-    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>, Google\'s recommendations at <a href="!google_url">!google_url</a>.', ['!url' => 'http://schema.org/Course', '!google_url' => 'https://developers.google.com/search/docs/data-types/course']),
-    'form' => array(
-      '#weight' => 10,
-    ),
-  );
+function schema_course_metatag_info(): array {
 
   $weight = 10;
 
+  $info['groups']['schema_course'] = [
+    'label' => t('Schema.org: Course'),
+    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>, Google\'s recommendations at <a href="!google_url">!google_url</a>.', [
+      '!url' => 'http://schema.org/Course',
+      '!google_url' => 'https://developers.google.com/search/docs/data-types/course',
+    ]),
+    'form' => [
+      '#weight' => $weight,
+    ],
+  ];
+
   // Basic tags.
-  $defaults = array(
+  $defaults = [
     'class' => 'SchemaNameBase',
     'group' => 'schema_course',
-    'form' => array(
+    'form' => [
       '#type' => 'textfield',
-    ),
-  );
+    ],
+  ];
 
-  $info['tags']['schema_course.@type'] = array(
+  $info['tags']['schema_course.@type'] = [
     'class' => 'SchemaCourseType',
     'label' => t('@type'),
     'description' => t('REQUIRED. The type of course.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_course.name'] = array(
+  $info['tags']['schema_course.name'] = [
     'label' => t('name'),
     'description' => t("REQUIRED BY GOOGLE. The title of the course."),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_course.courseCode'] = array(
+  $info['tags']['schema_course.courseCode'] = [
     'label' => t('brand'),
     'description' => t("The identifier for the Course used by the course provider (e.g. CS101 or 6.001)."),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_course.description'] = array(
+  $info['tags']['schema_course.description'] = [
     'label' => t('description'),
     'description' => t('REQUIRED BY GOOGLE. A description of the item.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_course.coursePrerequisites'] = array(
+  $info['tags']['schema_course.coursePrerequisites'] = [
     'label' => t('coursePrerequisites'),
     'description' => t("Requirements for taking the Course."),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_course.educationalCredentialAwarded'] = array(
+  $info['tags']['schema_course.educationalCredentialAwarded'] = [
     'label' => t('educationalCredentialAwarded'),
     'description' => t("A description of the qualification, award, certificate, diploma or other educational credential awarded as a consequence of successful completion of this course."),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_course.provider'] = array(
+  $info['tags']['schema_course.provider'] = [
     'class' => 'SchemaPersonOrgBase',
     'label' => t('provider'),
     'description' => t("RECOMMENDED BY GOOGLE. The provider of the course."),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
   return $info;
 }
diff --git a/schema_course/schema_course.module b/schema_course/schema_course.module
index 45373a5..c3ce90b 100644
--- a/schema_course/schema_course.module
+++ b/schema_course/schema_course.module
@@ -8,8 +8,8 @@
 /**
  * Implements hook_ctools_plugin_api().
  */
-function schema_course_ctools_plugin_api($owner, $api) {
+function schema_course_ctools_plugin_api(string $owner, string $api): ?array {
   if ($owner == 'metatag' && $api == 'metatag') {
-    return array('version' => 1);
+    return ['version' => 1];
   }
 }
diff --git a/schema_course/src/SchemaCourseType.php b/schema_course/src/SchemaCourseType.php
index c0bd091..4942bc3 100644
--- a/schema_course/src/SchemaCourseType.php
+++ b/schema_course/src/SchemaCourseType.php
@@ -8,7 +8,7 @@ class SchemaCourseType extends SchemaTypeBase {
   /**
    * {@inheritdoc}
    */
-  public static function labels() {
+  public static function labels(): array {
     return [
       'Course',
     ];
diff --git a/schema_course/tests/SchemaMetatagCourseTest.test b/schema_course/tests/SchemaMetatagCourseTest.test
deleted file mode 100644
index c8c60c6..0000000
--- a/schema_course/tests/SchemaMetatagCourseTest.test
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-
-/**
- * Tests that each of the Metatag schema_course tags work correctly.
- */
-class SchemaMetatagCourseTest extends SchemaMetatagTagsTestBase {
-
-  /**
-   * {@inheritdoc}
-   */
-  public static function getInfo() {
-    return array(
-      'name' => 'Schema Metatag: Course',
-      'description' => 'Test the schema_course meta tags.',
-      'group' => 'Schema Metatag',
-      'dependencies' => [
-        'ctools',
-        'token',
-        'metatag',
-        'schema_metatag',
-        'schema_course',
-      ],
-    );
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public function setUp(array $modules = array()) {
-    $modules[] = 'schema_course';
-    parent::setUp($modules);
-
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public $moduleName = 'schema_course';
-
-  /**
-   * {@inheritdoc}
-   */
-  public $schemaTags = [
-    'schema_course.@type' => 'SchemaCourseType',
-    'schema_course.name' => 'SchemaNameBase',
-    'schema_course.courseCode' => 'SchemaNameBase',
-    'schema_course.description' => 'SchemaNameBase',
-    'schema_course.coursePrerequisites' => 'SchemaNameBase',
-    'schema_course.educationalCredentialAwarded' => 'SchemaNameBase',
-    'schema_course.provider' => 'SchemaPersonOrgBase',
-  ];
-
-}
diff --git a/schema_event/schema_event.info b/schema_event/schema_event.info
index c26403e..8a0d456 100644
--- a/schema_event/schema_event.info
+++ b/schema_event/schema_event.info
@@ -5,4 +5,4 @@ core = 7.x
 dependencies[] = schema_metatag
 
 files[] = src/SchemaEventType.php
-files[] = tests/SchemaMetatagEventTest.test
+files[] = tests/SchemaEventMetatagTest.test
diff --git a/schema_event/schema_event.metatag.inc b/schema_event/schema_event.metatag.inc
index d3e23e3..b26a8b7 100644
--- a/schema_event/schema_event.metatag.inc
+++ b/schema_event/schema_event.metatag.inc
@@ -8,46 +8,50 @@
 /**
  * Implements hook_metatag_info().
  */
-function schema_event_metatag_info() {
-  $info['groups']['schema_event'] = array(
-    'label' => t('Schema.org: Event'),
-    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>, Google\'s recommendations at <a href="!google_url">!google_url</a>.', ['!url' => 'http://schema.org/Event', '!google_url' => 'https://developers.google.com/search/docs/data-types/event']),
-    'form' => array(
-      '#weight' => 10,
-    ),
-  );
+function schema_event_metatag_info(): array {
 
   $weight = 10;
 
+  $info['groups']['schema_event'] = [
+    'label' => t('Schema.org: Event'),
+    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>, Google\'s recommendations at <a href="!google_url">!google_url</a>.', [
+      '!url' => 'http://schema.org/Event',
+      '!google_url' => 'https://developers.google.com/search/docs/data-types/event',
+    ]),
+    'form' => [
+      '#weight' => $weight,
+    ],
+  ];
+
   // Basic tags.
-  $defaults = array(
+  $defaults = [
     'class' => 'SchemaNameBase',
     'group' => 'schema_event',
-    'form' => array(
+    'form' => [
       '#type' => 'textfield',
-    ),
-  );
+    ],
+  ];
 
-  $info['tags']['schema_event.@type'] = array(
+  $info['tags']['schema_event.@type'] = [
     'class' => 'SchemaEventType',
     'label' => t('@type'),
     'description' => t('REQUIRED. The type of event.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_event.@id'] = array(
+  $info['tags']['schema_event.@id'] = [
     'label' => t('@id'),
     'description' => t('Globally unique @id, usually a url, used to to link other properties to this object.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_event.name'] = array(
+  $info['tags']['schema_event.name'] = [
     'label' => t('name'),
     'description' => t('REQUIRED BY GOOGLE. The name of the event.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_event.image'] = array(
+  $info['tags']['schema_event.image'] = [
     'class' => 'SchemaImageBase',
     'label' => t('image'),
     'description' => t('RECOMMENDED BY GOOGLE. The primary image for this event.'),
@@ -55,115 +59,117 @@ function schema_event_metatag_info() {
     'url' => TRUE,
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_event.description'] = array(
+  $info['tags']['schema_event.description'] = [
     'label' => t('description'),
     'description' => t('RECOMMENDED BY GOOGLE. A description of the event.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_event.isAccessibleForFree'] = array(
+  $info['tags']['schema_event.isAccessibleForFree'] = [
     'label' => t('isAccessibleForFree'),
-    'description' => t('RECOMMENDED BY GOOGLE. Use for <a href="!url">Paywalled content</a>', ['!url' => 'https://developers.google.com/search/docs/data-types/paywalled-content']),
+    'description' => t('RECOMMENDED BY GOOGLE. Use for <a href="!url">Paywalled content</a>', [
+      '!url' => 'https://developers.google.com/search/docs/data-types/paywalled-content',
+    ]),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_event.startDate'] = array(
+  $info['tags']['schema_event.startDate'] = [
     'class' => 'SchemaDateBase',
     'label' => t('startDate'),
     'description' => t('REQUIRED BY GOOGLE. Date and time when the event starts.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_event.endDate'] = array(
+  $info['tags']['schema_event.endDate'] = [
     'class' => 'SchemaDateBase',
     'label' => t('endDate'),
     'description' => t('RECOMMENDED BY GOOGLE. Date and time when the event ends.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_event.previousStartDate'] = array(
-      'class' => 'SchemaDateBase',
-      'label' => t('previousStartDate'),
-      'description' => t('RECOMMENDED BY GOOGLE. The previousStartDate of the event.'),
-      'weight' => ++$weight,
-    ) + $defaults;
+  $info['tags']['schema_event.previousStartDate'] = [
+    'class' => 'SchemaDateBase',
+    'label' => t('previousStartDate'),
+    'description' => t('RECOMMENDED BY GOOGLE. The previousStartDate of the event.'),
+    'weight' => ++$weight,
+  ] + $defaults;
 
-  $info['tags']['schema_event.eventAttendanceMode'] = array(
-      'label' => t('eventAttendanceMode'),
-      'description' => t('RECOMMENDED BY GOOGLE. The eventAttendanceMode of the event. Valid values are https://schema.org/OfflineEventAttendanceMode, https://schema.org/MixedEventAttendanceMode, or https://schema.org/OnlineEventAttendanceMode.'),
-      'weight' => ++$weight,
-    ) + $defaults;
+  $info['tags']['schema_event.eventAttendanceMode'] = [
+    'label' => t('eventAttendanceMode'),
+    'description' => t('RECOMMENDED BY GOOGLE. The eventAttendanceMode of the event. Valid values are https://schema.org/OfflineEventAttendanceMode, https://schema.org/MixedEventAttendanceMode, or https://schema.org/OnlineEventAttendanceMode.'),
+    'weight' => ++$weight,
+  ] + $defaults;
 
-  $info['tags']['schema_event.eventStatus'] = array(
+  $info['tags']['schema_event.eventStatus'] = [
     'label' => t('eventStatus'),
     'description' => t('RECOMMENDED BY GOOGLE. The status of the event. Valid options are https://schema.org/EventCancelled, https://schema.org/EventMovedOnline, https://schema.org/EventPostponed, https://schema.org/EventRescheduled, or https://schema.org/EventScheduled.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_event.location'] = array(
+  $info['tags']['schema_event.location'] = [
     'class' => 'SchemaPlaceBase',
     'label' => t('location'),
     'description' => t('REQUIRED BY GOOGLE. The location of the event.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_event.organizer'] = array(
+  $info['tags']['schema_event.organizer'] = [
     'class' => 'SchemaPersonOrgBase',
     'label' => t('performer'),
     'description' => t('RECOMMENDED BY GOOGLE. The organizer of the event.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_event.performer'] = array(
+  $info['tags']['schema_event.performer'] = [
     'class' => 'SchemaPersonOrgBase',
     'label' => t('performer'),
     'description' => t('RECOMMENDED BY GOOGLE. The performer(s) in the event.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_event.offers'] = array(
+  $info['tags']['schema_event.offers'] = [
     'class' => 'SchemaOfferBase',
     'label' => t('offers'),
     'description' => t('RECOMMENDED BY GOOGLE. Offers associated with the event.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_event.url'] = array(
+  $info['tags']['schema_event.url'] = [
     'class' => 'SchemaUrlBase',
     'label' => t('url'),
     'description' => t('The url of the event.'),
     'url' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_event.doorTime'] = array(
+  $info['tags']['schema_event.doorTime'] = [
     'label' => t('doorTime'),
     'description' => t('The time when admission will commence.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_event.aggregateRating'] = array(
+  $info['tags']['schema_event.aggregateRating'] = [
     'class' => 'SchemaRatingBase',
     'label' => t('aggregateRating'),
     'description' => '',
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_event.review'] = array(
+  $info['tags']['schema_event.review'] = [
     'class' => 'SchemaReviewBase',
     'label' => t('review'),
     'description' => '',
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
   return $info;
 
diff --git a/schema_event/schema_event.module b/schema_event/schema_event.module
index ab895a9..1869e93 100644
--- a/schema_event/schema_event.module
+++ b/schema_event/schema_event.module
@@ -8,8 +8,8 @@
 /**
  * Implements hook_ctools_plugin_api().
  */
-function schema_event_ctools_plugin_api($owner, $api) {
+function schema_event_ctools_plugin_api(string $owner, string $api): ?array {
   if ($owner == 'metatag' && $api == 'metatag') {
-    return array('version' => 1);
+    return ['version' => 1];
   }
 }
diff --git a/schema_event/src/SchemaEventType.php b/schema_event/src/SchemaEventType.php
index 2b443d7..94c8c40 100644
--- a/schema_event/src/SchemaEventType.php
+++ b/schema_event/src/SchemaEventType.php
@@ -8,7 +8,7 @@ class SchemaEventType extends SchemaTypeBase {
   /**
    * {@inheritdoc}
    */
-  public static function labels() {
+  public static function labels(): array {
     return [
       'Event',
       'BusinessEvent',
diff --git a/schema_event/tests/SchemaMetatagEventTest.test b/schema_event/tests/SchemaMetatagEventTest.test
deleted file mode 100644
index a442fb5..0000000
--- a/schema_event/tests/SchemaMetatagEventTest.test
+++ /dev/null
@@ -1,65 +0,0 @@
-<?php
-
-/**
- * Tests that each of the Metatag schema_event tags work correctly.
- */
-class SchemaMetatagEventTest extends SchemaMetatagTagsTestBase {
-
-  /**
-   * {@inheritdoc}
-   */
-  public static function getInfo() {
-    return array(
-      'name' => 'Schema Metatag: Event',
-      'description' => 'Test the schema_event meta tags.',
-      'group' => 'Schema Metatag',
-      'dependencies' => [
-        'ctools',
-        'token',
-        'metatag',
-        'schema_metatag',
-        'schema_event',
-      ],
-    );
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public function setUp(array $modules = array()) {
-    $modules[] = 'schema_event';
-    parent::setUp($modules);
-
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public $moduleName = 'schema_event';
-
-  /**
-   * {@inheritdoc}
-   */
-  public $schemaTags = [
-    'schema_event.@type' => 'SchemaEventType',
-    'schema_event.@id' => 'SchemaNameBase',
-    'schema_event.name' => 'SchemaNameBase',
-    'schema_event.image' => 'SchemaImageBase',
-    'schema_event.description' => 'SchemaNameBase',
-    'schema_event.url' => 'SchemaUrlBase',
-    'schema_event.doorTime' => 'SchemaNameBase',
-    'schema_event.isAccessibleForFree' => 'SchemaIsAccessibleForFreeBase',
-    'schema_event.startDate' => 'SchemaDateBase',
-    'schema_event.endDate' => 'SchemaDateBase',
-    'schema_event.location' => 'SchemaPlaceBase',
-    'schema_event.performer' => 'SchemaPersonOrgBase',
-    'schema_event.offers' => 'SchemaOfferBase',
-    'schema_event.aggregateRating' => 'SchemaRatingBase',
-    'schema_event.review' => 'SchemaReviewBase',
-    'schema_event.previousStartDate' => 'SchemaDateBase',
-    'schema_event.eventAttendanceMode' => 'SchemaNameBase',
-    'schema_event.eventStatus' => 'SchemaNameBase',
-    'schema_event.organizer' => 'SchemaPersonOrgBase',
-  ];
-
-}
diff --git a/schema_how_to/schema_how_to.info b/schema_how_to/schema_how_to.info
index 4c847e6..b190477 100644
--- a/schema_how_to/schema_how_to.info
+++ b/schema_how_to/schema_how_to.info
@@ -5,4 +5,4 @@ core = 7.x
 dependencies[] = schema_metatag
 
 files[] = src/SchemaHowToType.php
-files[] = tests/SchemaMetatagHowToTest.test
+files[] = tests/SchemaHowToMetatagTest.test
diff --git a/schema_how_to/schema_how_to.metatag.inc b/schema_how_to/schema_how_to.metatag.inc
index f2cf734..8573445 100644
--- a/schema_how_to/schema_how_to.metatag.inc
+++ b/schema_how_to/schema_how_to.metatag.inc
@@ -8,83 +8,87 @@
 /**
  * Implements hook_metatag_info().
  */
-function schema_how_to_metatag_info() {
-  $info['groups']['schema_how_to'] = array(
-    'label' => t('Schema.org: HowTo'),
-    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>, Google\'s recommendations at <a href="!google_url">!google_url</a>.', ['!url' => 'http://schema.org/HowTo', '!google_url' => 'https://developers.google.com/search/docs/data-types/how-to']),
-    'form' => array(
-      '#weight' => 10,
-    ),
-  );
+function schema_how_to_metatag_info(): array {
 
   $weight = 10;
 
+  $info['groups']['schema_how_to'] = [
+    'label' => t('Schema.org: HowTo'),
+    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>, Google\'s recommendations at <a href="!google_url">!google_url</a>.', [
+      '!url' => 'http://schema.org/HowTo',
+      '!google_url' => 'https://developers.google.com/search/docs/data-types/how-to',
+    ]),
+    'form' => [
+      '#weight' => $weight,
+    ],
+  ];
+
   // Basic tags.
-  $defaults = array(
+  $defaults = [
     'class' => 'SchemaNameBase',
     'group' => 'schema_how_to',
-    'form' => array(
+    'form' => [
       '#type' => 'textfield',
-    ),
-  );
+    ],
+  ];
 
-  $info['tags']['schema_how_to.@type'] = array(
+  $info['tags']['schema_how_to.@type'] = [
     'class' => 'SchemaHowToType',
     'label' => t('@type'),
     'description' => t("REQUIRED. The type of how-to."),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_how_to.name'] = array(
+  $info['tags']['schema_how_to.name'] = [
     'label' => t('text'),
     'description' => t('REQUIRED BY GOOGLE. The title of the how-to. For example, "How to tie a tie".'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_how_to.step'] = array(
+  $info['tags']['schema_how_to.step'] = [
     'class' => 'SchemaHowToStepBase',
     'label' => t('name'),
     'description' => t("REQUIRED BY GOOGLE. An array of HowToStep elements which comprise the full instructions of the how-to."),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_how_to.description'] = array(
+  $info['tags']['schema_how_to.description'] = [
     'label' => t('description'),
     'description' => t('RECOMMENDED BY GOOGLE. A description of the how-to.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_how_to.image'] = array(
+  $info['tags']['schema_how_to.image'] = [
     'class' => 'SchemaImageBase',
     'label' => t('image'),
     'description' => t('RECOMMENDED BY GOOGLE. Image of the completed how-to.'),
     'image' => TRUE,
     'url' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_how_to.estimatedCost'] = array(
+  $info['tags']['schema_how_to.estimatedCost'] = [
     'class' => 'SchemaMonetaryAmountBase',
     'label' => t('estimatedCost'),
     'description' => t('RECOMMENDED BY GOOGLE. The estimated cost of the supplies consumed when performing instructions.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_how_to.supply'] = array(
+  $info['tags']['schema_how_to.supply'] = [
     'label' => t('supply'),
     'description' => t("RECOMMENDED BY GOOGLE. A supply consumed when performing instructions or a direction."),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_how_to.tool'] = array(
+  $info['tags']['schema_how_to.tool'] = [
     'label' => t('tool'),
     'description' => t('RECOMMENDED BY GOOGLE. An object used (but not consumed) when performing instructions or a direction.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
   return $info;
 }
diff --git a/schema_how_to/schema_how_to.module b/schema_how_to/schema_how_to.module
index 6b51dfd..1a4773a 100644
--- a/schema_how_to/schema_how_to.module
+++ b/schema_how_to/schema_how_to.module
@@ -8,8 +8,8 @@
 /**
  * Implements hook_ctools_plugin_api().
  */
-function schema_how_to_ctools_plugin_api($owner, $api) {
+function schema_how_to_ctools_plugin_api(string $owner, string $api): ?array {
   if ($owner == 'metatag' && $api == 'metatag') {
-    return array('version' => 1);
+    return ['version' => 1];
   }
 }
diff --git a/schema_how_to/src/SchemaHowToType.php b/schema_how_to/src/SchemaHowToType.php
index 15eade6..e00718a 100644
--- a/schema_how_to/src/SchemaHowToType.php
+++ b/schema_how_to/src/SchemaHowToType.php
@@ -8,7 +8,7 @@ class SchemaHowToType extends SchemaTypeBase {
   /**
    * {@inheritdoc}
    */
-  public static function labels() {
+  public static function labels(): array {
     return [
       'HowTo',
     ];
diff --git a/schema_how_to/tests/SchemaMetatagHowToTest.test b/schema_how_to/tests/SchemaMetatagHowToTest.test
deleted file mode 100644
index ecbf5c8..0000000
--- a/schema_how_to/tests/SchemaMetatagHowToTest.test
+++ /dev/null
@@ -1,54 +0,0 @@
-<?php
-
-/**
- * Tests that each of the Metatag schema_how_to tags work correctly.
- */
-class SchemaMetatagHowToTest extends SchemaMetatagTagsTestBase {
-
-  /**
-   * {@inheritdoc}
-   */
-  public static function getInfo() {
-    return array(
-      'name' => 'Schema Metatag: HowTo',
-      'description' => 'Test the schema_how_to meta tags.',
-      'group' => 'Schema Metatag',
-      'dependencies' => [
-        'ctools',
-        'token',
-        'metatag',
-        'schema_metatag',
-        'schema_how_to',
-      ],
-    );
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public function setUp(array $modules = array()) {
-    $modules[] = 'schema_how_to';
-    parent::setUp($modules);
-
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public $moduleName = 'schema_how_to';
-
-  /**
-   * {@inheritdoc}
-   */
-  public $schemaTags = [
-    'schema_how_to.@type' => 'SchemaHowToType',
-    'schema_how_to.name' => 'SchemaNameBase',
-    'schema_how_to.step' => 'SchemaHowToStepBase',
-    'schema_how_to.description' => 'SchemaNameBase',
-    'schema_how_to.image' => 'SchemaImageBase',
-    'schema_how_to.estimatedCost' => 'SchemaMonetaryAmountBase',
-    'schema_how_to.supply' => 'SchemaNameBase',
-    'schema_how_to.tool' => 'SchemaNameBase',
-  ];
-
-}
diff --git a/schema_image_object/schema_image_object.info b/schema_image_object/schema_image_object.info
index f11f55e..d14c242 100644
--- a/schema_image_object/schema_image_object.info
+++ b/schema_image_object/schema_image_object.info
@@ -5,4 +5,4 @@ core = 7.x
 dependencies[] = schema_metatag
 
 files[] = src/SchemaImageObjectType.php
-files[] = tests/SchemaMetatagImageObjectTest.test
+files[] = tests/SchemaImageObjectMetatagTest.test
diff --git a/schema_image_object/schema_image_object.metatag.inc b/schema_image_object/schema_image_object.metatag.inc
index 82f3f61..b48455a 100644
--- a/schema_image_object/schema_image_object.metatag.inc
+++ b/schema_image_object/schema_image_object.metatag.inc
@@ -8,87 +8,88 @@
 /**
  * Implements hook_metatag_info().
  */
-function schema_image_object_metatag_info() {
-  $info['groups']['schema_image_object'] = array(
-    'label' => t('Schema.org: ImageObject'),
-    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>.', array('!url' => 'http://schema.org/ImageObject')),
-    'form' => array(
-      '#weight' => 10,
-    ),
-  );
+function schema_image_object_metatag_info(): array {
 
   $weight = 10;
 
+  $info['groups']['schema_image_object'] = [
+    'label' => t('Schema.org: ImageObject'),
+    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>.', array('!url' => 'http://schema.org/ImageObject')),
+    'form' => [
+      '#weight' => $weight,
+    ],
+  ];
+
   // Basic tags.
-  $defaults = array(
+  $defaults = [
     'class' => 'SchemaNameBase',
     'group' => 'schema_image_object',
-    'form' => array(
+    'form' => [
       '#type' => 'textfield',
-    ),
-  );
+    ],
+  ];
 
-  $info['tags']['schema_image_object.@type'] = array(
+  $info['tags']['schema_image_object.@type'] = [
     'class' => 'SchemaImageObjectType',
     'label' => t('@type'),
     'description' => t('REQUIRED. The type of video file.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_image_object.@id'] = array(
+  $info['tags']['schema_image_object.@id'] = [
     'label' => t('@id'),
     'description' => t('Globally unique @id, usually a url, used to to link other properties to this object.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_image_object.name'] = array(
+  $info['tags']['schema_image_object.name'] = [
     'label' => t('name'),
     'description' => t('Name of the video.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_image_object.description'] = array(
+  $info['tags']['schema_image_object.description'] = [
     'label' => t('description'),
     'description' => t('A description of the item.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_image_object.url'] = array(
+  $info['tags']['schema_image_object.url'] = [
     'class' => 'SchemaUrlBase',
     'label' => t('url'),
     'description' => t('Absolute URL of the image. If using tokens include the image preset name, and the URL attribute. [node:field_name:image_preset_name:url]. If using referenced entities like Media or Paragraphs, your token would look like [node:field_name:entity:field_name:image_preset_name:url].'),
     'image' => TRUE,
     'url' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_image_object.width'] = array(
+  $info['tags']['schema_image_object.width'] = [
     'label' => t('width'),
     'description' => t('The width of the image.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_image_object.height'] = array(
+  $info['tags']['schema_image_object.height'] = [
     'label' => t('height'),
     'description' => t('The height of the image.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_image_object.aggregateRating'] = array(
+  $info['tags']['schema_image_object.aggregateRating'] = [
     'class' => 'SchemaRatingBase',
     'label' => t('aggregateRating'),
     'description' => '',
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_image_object.review'] = array(
+  $info['tags']['schema_image_object.review'] = [
     'class' => 'SchemaReviewBase',
     'label' => t('review'),
     'description' => '',
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
   return $info;
 }
diff --git a/schema_image_object/schema_image_object.module b/schema_image_object/schema_image_object.module
index c4c044c..5c3de06 100644
--- a/schema_image_object/schema_image_object.module
+++ b/schema_image_object/schema_image_object.module
@@ -8,8 +8,8 @@
 /**
  * Implements hook_ctools_plugin_api().
  */
-function schema_image_object_ctools_plugin_api($owner, $api) {
+function schema_image_object_ctools_plugin_api(string $owner, string $api): ?array {
   if ($owner == 'metatag' && $api == 'metatag') {
-    return array('version' => 1);
+    return ['version' => 1];
   }
 }
diff --git a/schema_image_object/src/SchemaImageObjectType.php b/schema_image_object/src/SchemaImageObjectType.php
index 2bb2b91..dbd1d59 100644
--- a/schema_image_object/src/SchemaImageObjectType.php
+++ b/schema_image_object/src/SchemaImageObjectType.php
@@ -8,7 +8,7 @@ class SchemaImageObjectType extends SchemaTypeBase {
   /**
    * {@inheritdoc}
    */
-  public static function labels() {
+  public static function labels(): array {
     return [
       'ImageObject',
     ];
diff --git a/schema_image_object/tests/SchemaMetatagImageObjectTest.test b/schema_image_object/tests/SchemaMetatagImageObjectTest.test
deleted file mode 100644
index 87eba14..0000000
--- a/schema_image_object/tests/SchemaMetatagImageObjectTest.test
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-
-/**
- * Tests that each of the Metatag schema_image_object tags work correctly.
- */
-class SchemaMetatagImageObjectTest extends SchemaMetatagTagsTestBase {
-
-  /**
-   * {@inheritdoc}
-   */
-  public static function getInfo() {
-    return array(
-      'name' => 'Schema Metatag: ImageObject',
-      'description' => 'Test the schema_image_object meta tags.',
-      'group' => 'Schema Metatag',
-      'dependencies' => [
-        'ctools',
-        'token',
-        'metatag',
-        'schema_metatag',
-        'schema_image_object',
-      ],
-    );
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public function setUp(array $modules = array()) {
-    $modules[] = 'schema_image_object';
-    parent::setUp($modules);
-
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public $moduleName = 'schema_image_object';
-
-  /**
-   * {@inheritdoc}
-   */
-  public $schemaTags = [
-    'schema_image_object.@type' => 'SchemaImageObjectType',
-    'schema_image_object.@id' => 'SchemaNameBase',
-    'schema_image_object.name' => 'SchemaNameBase',
-    'schema_image_object.description' => 'SchemaNameBase',
-    'schema_image_object.url' => 'SchemaUrlBase',
-    'schema_image_object.width' => 'SchemaNameBase',
-    'schema_image_object.height' => 'SchemaNameBase',
-    'schema_image_object.aggregateRating' => 'SchemaRatingBase',
-    'schema_image_object.review' => 'SchemaReviewBase',
-  ];
-
-}
diff --git a/schema_item_list/schema_item_list.metatag.inc b/schema_item_list/schema_item_list.metatag.inc
index 5670d5e..6e2bd9a 100644
--- a/schema_item_list/schema_item_list.metatag.inc
+++ b/schema_item_list/schema_item_list.metatag.inc
@@ -8,57 +8,59 @@
 /**
  * Implements hook_metatag_info().
  */
-function schema_item_list_metatag_info() {
-  $info['groups']['schema_item_list'] = array(
-    'label' => t('Schema.org: ItemList'),
-    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>.', array('!url' => 'http://schema.org/ItemList')),
-    'form' => array(
-      '#weight' => 10,
-    ),
-  );
+function schema_item_list_metatag_info(): array {
 
   $weight = 10;
 
+  $info['groups']['schema_item_list'] = [
+    'label' => t('Schema.org: ItemList'),
+    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>.', array('!url' => 'http://schema.org/ItemList')),
+    'form' => [
+      '#weight' => $weight,
+    ],
+  ];
+
   // Basic tags.
-  $defaults = array(
+  $defaults = [
     'class' => 'SchemaNameBase',
     'group' => 'schema_item_list',
-    'form' => array(
+    'form' => [
       '#type' => 'textfield',
-    ),
-  );
+    ],
+  ];
 
-  $info['tags']['schema_item_list.@type'] = array(
+  $info['tags']['schema_item_list.@type'] = [
     'class' => 'SchemaItemListType',
     'label' => t('@type'),
     'description' => t('The type of item list.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_item_list.@id'] = array(
+  $info['tags']['schema_item_list.@id'] = [
     'label' => t('@id'),
     'description' => t('Globally unique @id, usually a url, used to to link other properties to this object.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_item_list.itemListElement'] = array(
+  $info['tags']['schema_item_list.itemListElement'] = [
     'class' => 'SchemaItemListElementViewsBase',
     'label' => t('itemListElement'),
     'description' => t('Display the view results as a JSON LD item list'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_item_list.mainEntityOfPage'] = array(
+  $info['tags']['schema_item_list.mainEntityOfPage'] = [
     'label' => t('mainEntityOfPage'),
     'description' => '',
     'url' => TRUE,
-    'form' => array(
-      '#attributes' => array(
+    'form' => [
+      '#attributes' => [
         'placeholder' => '[node:url]',
-      ),
-    ),
+      ],
+    ],
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
   return $info;
+
 }
diff --git a/schema_item_list/schema_item_list.module b/schema_item_list/schema_item_list.module
index 926c0a2..a89bec5 100644
--- a/schema_item_list/schema_item_list.module
+++ b/schema_item_list/schema_item_list.module
@@ -8,8 +8,8 @@
 /**
  * Implements hook_ctools_plugin_api().
  */
-function schema_item_list_ctools_plugin_api($owner, $api) {
+function schema_item_list_ctools_plugin_api(string $owner, string $api): ?array {
   if ($owner == 'metatag' && $api == 'metatag') {
-    return array('version' => 1);
+    return ['version' => 1];
   }
 }
diff --git a/schema_item_list/src/SchemaItemListType.php b/schema_item_list/src/SchemaItemListType.php
index 1fe1c41..b7bb81b 100644
--- a/schema_item_list/src/SchemaItemListType.php
+++ b/schema_item_list/src/SchemaItemListType.php
@@ -8,7 +8,7 @@ class SchemaItemListType extends SchemaTypeBase {
   /**
    * {@inheritdoc}
    */
-  public static function labels() {
+  public static function labels(): array {
     return ['ItemList'];
   }
 
diff --git a/schema_job_posting/schema_job_posting.info b/schema_job_posting/schema_job_posting.info
index 54bfa7b..61b2a22 100644
--- a/schema_job_posting/schema_job_posting.info
+++ b/schema_job_posting/schema_job_posting.info
@@ -5,4 +5,4 @@ core = 7.x
 dependencies[] = schema_metatag
 
 files[] = src/SchemaJobPostingType.php
-files[] = tests/SchemaMetatagJobPostingTest.test
+files[] = tests/SchemaJobPostingMetatagTest.test
diff --git a/schema_job_posting/schema_job_posting.metatag.inc b/schema_job_posting/schema_job_posting.metatag.inc
index 6e02643..065aad1 100644
--- a/schema_job_posting/schema_job_posting.metatag.inc
+++ b/schema_job_posting/schema_job_posting.metatag.inc
@@ -8,118 +8,121 @@
 /**
  * Implements hook_metatag_info().
  */
-function schema_job_posting_metatag_info() {
-  $info['groups']['schema_job_posting'] = array(
-    'label' => t('Schema.org: JobPosting'),
-    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>.', array('!url' => 'http://schema.org/JobPosting')),
-    'form' => array(
-      '#weight' => 10,
-    ),
-  );
+function schema_job_posting_metatag_info(): array {
 
   $weight = 10;
 
+  $info['groups']['schema_job_posting'] = [
+    'label' => t('Schema.org: JobPosting'),
+    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>.', [
+      '!url' => 'http://schema.org/JobPosting',
+    ]),
+    'form' => [
+      '#weight' => $weight,
+    ],
+  ];
+
   // Basic tags.
-  $defaults = array(
+  $defaults = [
     'class' => 'SchemaNameBase',
     'group' => 'schema_job_posting',
-    'form' => array(
+    'form' => [
       '#type' => 'textfield',
-    ),
-  );
+    ],
+  ];
 
-  $info['tags']['schema_job_posting.@type'] = array(
+  $info['tags']['schema_job_posting.@type'] = [
     'class' => 'SchemaJobPostingType',
     'label' => t('@type'),
     'description' => t('REQUIRED. The type of jobPosting.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_job_posting.title'] = array(
+  $info['tags']['schema_job_posting.title'] = [
     'label' => t('title'),
     'description' => t('REQUIRED BY GOOGLE. Title of the job.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_job_posting.description'] = array(
+  $info['tags']['schema_job_posting.description'] = [
     'label' => t('description'),
     'description' => t('REQUIRED BY GOOGLE. Description of the job.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_job_posting.baseSalary'] = array(
+  $info['tags']['schema_job_posting.baseSalary'] = [
     'class' => 'SchemaMonetaryAmountBase',
     'label' => t('baseSalary'),
     'description' => t('RECOMMENDED BY GOOGLE. The baseSalary of the job_posting.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_job_posting.datePosted'] = array(
+  $info['tags']['schema_job_posting.datePosted'] = [
     'class' => 'SchemaDateBase',
     'label' => t('datePosted'),
     'description' => t('REQUIRED BY GOOGLE. Date the job_posting was published.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_job_posting.validThrough'] = array(
+  $info['tags']['schema_job_posting.validThrough'] = [
     'class' => 'SchemaDateBase',
     'label' => t('validThrough'),
     'description' => t('REQUIRED BY GOOGLE. The validThrough of the job_posting.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_job_posting.employmentType'] = array(
+  $info['tags']['schema_job_posting.employmentType'] = [
     'label' => t('employmentType'),
     'description' => t('RECOMMENDED BY GOOGLE. The employment type of the jobPosting. Should be one of FULL_TIME, PART_TIME, CONTRACTOR, TEMPORARY, INTERN, VOLUNTEER, PER_DIEM, OTHER.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_job_posting.hiringOrganization'] = array(
+  $info['tags']['schema_job_posting.hiringOrganization'] = [
     'class' => 'SchemaPersonOrgBase',
     'label' => t('Company'),
     'description' => t('REQUIRED BY GOOGLE. Company offering the job_posting.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_job_posting.jobLocation'] = array(
+  $info['tags']['schema_job_posting.jobLocation'] = [
     'class' => 'SchemaPlaceBase',
     'label' => t('jobLocation'),
     'description' => t('REQUIRED BY GOOGLE. The location of the job_posting.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_job_posting.identifier'] = array(
+  $info['tags']['schema_job_posting.identifier'] = [
     'label' => t('identifier'),
     'description' => t('RECOMMENDED BY GOOGLE. The identifier of the job.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_job_posting.industry'] = array(
+  $info['tags']['schema_job_posting.industry'] = [
     'label' => t('industry'),
     'description' => t('Comma separated industry list of industries, for instance taxonomy terms or categories.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_job_posting.responsibilities'] = array(
+  $info['tags']['schema_job_posting.responsibilities'] = [
     'label' => t('responsibilities'),
     'description' => t('The responsibilities of the job.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_job_posting.jobBenefits'] = array(
+  $info['tags']['schema_job_posting.jobBenefits'] = [
     'label' => t('jobBenefits'),
     'description' => t('The benefits of the job.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_job_posting.qualifications'] = array(
+  $info['tags']['schema_job_posting.qualifications'] = [
     'label' => t('qualifications'),
     'description' => t('The qualifications of the job.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
   return $info;
 
diff --git a/schema_job_posting/schema_job_posting.module b/schema_job_posting/schema_job_posting.module
index 4536f5c..efd5411 100644
--- a/schema_job_posting/schema_job_posting.module
+++ b/schema_job_posting/schema_job_posting.module
@@ -8,8 +8,8 @@
 /**
  * Implements hook_ctools_plugin_api().
  */
-function schema_job_posting_ctools_plugin_api($owner, $api) {
+function schema_job_posting_ctools_plugin_api(string $owner, string $api): ?array {
   if ($owner == 'metatag' && $api == 'metatag') {
-    return array('version' => 1);
+    return ['version' => 1];
   }
 }
diff --git a/schema_job_posting/src/SchemaJobPostingType.php b/schema_job_posting/src/SchemaJobPostingType.php
index 6083aa2..80c1210 100644
--- a/schema_job_posting/src/SchemaJobPostingType.php
+++ b/schema_job_posting/src/SchemaJobPostingType.php
@@ -8,7 +8,7 @@ class SchemaJobPostingType extends SchemaTypeBase {
   /**
    * {@inheritdoc}
    */
-  public static function labels() {
+  public static function labels(): array {
     return [
       'JobPosting',
     ];
diff --git a/schema_job_posting/tests/SchemaMetatagJobPostingTest.test b/schema_job_posting/tests/SchemaMetatagJobPostingTest.test
deleted file mode 100644
index e603df4..0000000
--- a/schema_job_posting/tests/SchemaMetatagJobPostingTest.test
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-
-/**
- * Tests that each of the Metatag schema_job_posting tags work correctly.
- */
-class SchemaMetatagJobPostingTest extends SchemaMetatagTagsTestBase {
-
-  /**
-   * {@inheritdoc}
-   */
-  public static function getInfo() {
-    return array(
-      'name' => 'Schema Metatag: JobPosting',
-      'description' => 'Test the schema_job_posting meta tags.',
-      'group' => 'Schema Metatag',
-      'dependencies' => [
-        'ctools',
-        'token',
-        'metatag',
-        'schema_metatag',
-        'schema_job_posting',
-      ],
-    );
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public function setUp(array $modules = array()) {
-    $modules[] = 'schema_job_posting';
-    parent::setUp($modules);
-
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public $moduleName = 'schema_job_posting';
-
-  /**
-   * {@inheritdoc}
-   */
-  public $schemaTags = [
-    'schema_job_posting.@type' => 'SchemaJobPostingType',
-    'schema_job_posting.title' => 'SchemaNameBase',
-    'schema_job_posting.description' => 'SchemaNameBase',
-    'schema_job_posting.baseSalary' => 'SchemaMonetaryAmountBase',
-    'schema_job_posting.datePosted' => 'SchemaDateBase',
-    'schema_job_posting.validThrough' => 'SchemaDateBase',
-    'schema_job_posting.employmentType' => 'SchemaNameBase',
-    'schema_job_posting.hiringOrganization' => 'SchemaPersonOrgBase',
-    'schema_job_posting.jobLocation' => 'SchemaPlaceBase',
-    'schema_job_posting.identifier' => 'SchemaNameBase',
-    'schema_job_posting.industry' => 'SchemaNameBase',
-    'schema_job_posting.responsibilities' => 'SchemaNameBase',
-    'schema_job_posting.jobBenefits' => 'SchemaNameBase',
-    'schema_job_posting.qualifications' => 'SchemaNameBase',
-  ];
-
-}
diff --git a/schema_metatag.install b/schema_metatag.install
index bbda98d..3b6e413 100644
--- a/schema_metatag.install
+++ b/schema_metatag.install
@@ -8,7 +8,7 @@
 /**
  * Rename AggregateRating tags to Rating.
  */
-function schema_metatag_update_7000(&$sandbox) {
+function schema_metatag_update_7000(array &$sandbox): void {
   cache_clear_all('*', 'cache_metatag', TRUE);
   drupal_set_message(t('AggregateRating tags have been replaced with Rating tags. Please update any configuration of AggregateRating.'));
 }
@@ -16,7 +16,7 @@ function schema_metatag_update_7000(&$sandbox) {
 /**
  * Rename the 'rating' meta tags to 'aggregateRating'.
  */
-function schema_metatag_update_7001(&$sandbox) {
+function schema_metatag_update_7001(array &$sandbox): void {
   module_load_include('install', 'metatag');
   $tags = [
     'schema_article.rating' => 'schema_article.aggregateRating',
@@ -36,7 +36,7 @@ function schema_metatag_update_7001(&$sandbox) {
 /**
  * Delete unneeded tags or tags that need to be re-configured.
  */
-function schema_metatag_update_7002(&$sandbox) {
+function schema_metatag_update_7002(array &$sandbox): void {
   module_load_include('install', 'metatag');
   $tags = [
     'schema_event.mainEntityOfPage',
@@ -56,9 +56,8 @@ function schema_metatag_update_7002(&$sandbox) {
 /**
  * Update the schema_product_brand tag.
  */
-function schema_metatag_update_7003(&$sandbox) {
+function schema_metatag_update_7003(array &$sandbox): void {
   module_load_include('install', 'metatag');
   metatag_update_delete_config('schema_product.brand');
   drupal_set_message(t('Product brand tag options have been changed and expanded, and brand options have been added to Organization and Person. Please reconfigure any Product brand tags.'));
 }
-
diff --git a/schema_metatag.module b/schema_metatag.module
index 6a86809..2802358 100644
--- a/schema_metatag.module
+++ b/schema_metatag.module
@@ -8,16 +8,16 @@
 /**
  * Implements hook_ctools_plugin_api().
  */
-function schema_metatag_ctools_plugin_api($owner, $api) {
+function schema_metatag_ctools_plugin_api(string $owner, string $api): ?array {
   if ($owner == 'metatag' && $api == 'metatag') {
-    return array('version' => 1);
+    return ['version' => 1];
   }
 }
 
 /**
  * Implements hook_html_head_alter().
  */
-function schema_metatag_html_head_alter(&$elements) {
+function schema_metatag_html_head_alter(array &$elements): void {
 
   // Parse tags added by Schema Metatag into a structured data array.
   $items = SchemaMetatagManager::parseJsonld($elements);
@@ -36,7 +36,7 @@ function schema_metatag_html_head_alter(&$elements) {
 /**
  * Validation callback for a schema_metatag element to serialize nested arrays.
  */
-function schema_metatag_element_validate($element, &$form_state, $form) {
+function schema_metatag_element_validate(array $element, array &$form_state, array $form): void {
   // For values that are not string values but instead nested arrays,
   // serialize the results into a single string value.
   $keys = $element['#array_parents'];
diff --git a/schema_movie/schema_movie.info b/schema_movie/schema_movie.info
index 2e6a33a..2ca4042 100644
--- a/schema_movie/schema_movie.info
+++ b/schema_movie/schema_movie.info
@@ -7,4 +7,4 @@ dependencies[] = schema_metatag
 files[] = src/SchemaMovieType.php
 files[] = src/SchemaMoviePotentialAction.php
 files[] = src/SchemaMovieHasPart.php
-files[] = tests/SchemaMetatagMovieTest.test
+files[] = tests/SchemaMovieMetatagTest.test
diff --git a/schema_movie/schema_movie.metatag.inc b/schema_movie/schema_movie.metatag.inc
index 51ac217..6e93522 100644
--- a/schema_movie/schema_movie.metatag.inc
+++ b/schema_movie/schema_movie.metatag.inc
@@ -8,8 +8,11 @@
 /**
  * Implements hook_metatag_info().
  */
-function schema_movie_metatag_info() {
-  $info['groups']['schema_movie'] = array(
+function schema_movie_metatag_info(): array {
+
+  $weight = 10;
+
+  $info['groups']['schema_movie'] = [
     'label' => t('Schema.org: Movie, Series, Season, Episode'),
     'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>, <a href="!url2">!url2</a>, <a href="!url3">!url3</a>, <a href="!url4">!url4</a>, and Google\'s recommendations at <a href="!google_url">!google_url</a>.', [
       '!url' => 'http://schema.org/Movie',
@@ -18,48 +21,46 @@ function schema_movie_metatag_info() {
       '!url4' => 'http://schema.org/Episode',
       '!google_url' => 'https://developers.google.com/search/docs/data-types/movie',
     ]),
-    'form' => array(
-      '#weight' => 10,
-    ),
-  );
-
-  $weight = 10;
+    'form' => [
+      '#weight' => $weight,
+    ],
+  ];
 
   // Basic tags.
-  $defaults = array(
+  $defaults = [
     'class' => 'SchemaNameBase',
     'group' => 'schema_movie',
-    'form' => array(
+    'form' => [
       '#type' => 'textfield',
-    ),
-  );
+    ],
+  ];
 
-  $info['tags']['schema_movie.@type'] = array(
+  $info['tags']['schema_movie.@type'] = [
     'class' => 'SchemaMovieType',
     'label' => t('@type'),
     'description' => t('REQUIRED. The type of movie.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_movie.name'] = array(
+  $info['tags']['schema_movie.name'] = [
     'label' => t('name'),
     'description' => t('REQUIRED BY GOOGLE. Name of the movie.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_movie.@id'] = array(
+  $info['tags']['schema_movie.@id'] = [
     'label' => t('@id'),
     'description' => t('REQUIRED BY GOOGLE. Universally unique id of the item, usually a url.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_movie.description'] = array(
+  $info['tags']['schema_movie.description'] = [
     'label' => t('description'),
     'description' => t('RECOMMENDED BY GOOGLE. A description of the item.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_movie.image'] = array(
+  $info['tags']['schema_movie.image'] = [
     'class' => 'SchemaImageBase',
     'label' => t('image'),
     'description' => t('REQUIRED BY GOOGLE. The primary image for this item.'),
@@ -67,134 +68,135 @@ function schema_movie_metatag_info() {
     'url' => TRUE,
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_movie.potentialAction'] = array(
+  $info['tags']['schema_movie.potentialAction'] = [
     'class' => 'SchemaMoviePotentialAction',
     'label' => t('potentialAction'),
     'description' => t('RECOMMENDED BY GOOGLE. Actions associated with the movie.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_movie.aggregateRating'] = array(
+  $info['tags']['schema_movie.aggregateRating'] = [
     'class' => 'SchemaRatingBase',
     'label' => t('aggregateRating'),
     'description' => t('RECOMMENDED BY GOOGLE. Aggregate rating of the movie.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_movie.hasPart'] = array(
+  $info['tags']['schema_movie.hasPart'] = [
     'class' => 'SchemaMovieHasPart',
     'label' => t('hasPart'),
     'description' => t('RECOMMENDED BY GOOGLE. Short videos related to the Movie (use Clip), TVEpisode, TVSeries or TVSeason (use TVClip).'),
     'url' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_movie.url'] = array(
+  $info['tags']['schema_movie.url'] = [
     'class' => 'SchemaUrlBase',
     'label' => t('review'),
     'description' => t("RECOMMENDED BY GOOGLE. URL to partner's landing page for the work."),
     'url' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_movie.sameAs'] = array(
+  $info['tags']['schema_movie.sameAs'] = [
     'class' => 'SchemaUrlBase',
     'label' => t('sameAs'),
     'description' => t("RECOMMENDED BY GOOGLE. URL to a reference web page that unambiguously identifies the work. Example: IMDB, Wikipedia."),
     'url' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_movie.duration'] = array(
+  $info['tags']['schema_movie.duration'] = [
     'class' => 'SchemaDurationBase',
     'label' => t('duration'),
     'description' => t("RECOMMENDED for Movie. Runtime of the work in ISO 8601 format (for example, 'PT2H22M' (142 minutes))."),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_movie.dateCreated'] = array(
+  $info['tags']['schema_movie.dateCreated'] = [
     'class' => 'SchemaDateBase',
     'label' => t("RECOMMENDED BY GOOGLE. The date on which the work was created or was added to a DataFeed."),
-    'description' => t(''),
+    'description' => '',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_movie.seasonNumber'] = array(
+  $info['tags']['schema_movie.seasonNumber'] = [
     'label' => t("REQUIRED BY GOOGLE for TVSeason."),
-    'description' => t(''),
+    'description' => '',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_movie.episodeNumber'] = array(
+  $info['tags']['schema_movie.episodeNumber'] = [
     'label' => t("REQUIRED BY GOOGLE for TVEpisode."),
-    'description' => t(''),
+    'description' => '',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_movie.partOfSeries'] = array(
+  $info['tags']['schema_movie.partOfSeries'] = [
     'class' => 'SchemaCreativeWorkBase',
     'label' => t('partOfSeries'),
     'description' => t("REQUIRED BY GOOGLE for TVEpisode, TVSeason."),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_movie.partOfSeason'] = array(
+  $info['tags']['schema_movie.partOfSeason'] = [
     'class' => 'SchemaCreativeWorkBase',
     'label' => t('partOfSeason'),
     'description' => t("REQUIRED BY GOOGLE for TVEpisode."),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_movie.releasedEvent'] = array(
+  $info['tags']['schema_movie.releasedEvent'] = [
     'class' => 'SchemaEventBase',
     'label' => t('releasedEvent'),
     'description' => t("RECOMMENDED BY GOOGLE. Details about the original release of the work. Google expects only the country of the location."),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_movie.actor'] = array(
+  $info['tags']['schema_movie.actor'] = [
     'class' => 'SchemaPersonOrgBase',
     'label' => t('actor'),
     'description' => t("RECOMMENDED BY GOOGLE. The names of Actors."),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_movie.director'] = array(
+  $info['tags']['schema_movie.director'] = [
     'class' => 'SchemaPersonOrgBase',
     'label' => t('director'),
     'description' => t("RECOMMENDED BY GOOGLE. The name of Director."),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_movie.musicBy'] = array(
+  $info['tags']['schema_movie.musicBy'] = [
     'class' => 'SchemaPersonOrgBase',
     'label' => t('musicBy'),
     'description' => t("The composer of the work."),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_movie.producer'] = array(
+  $info['tags']['schema_movie.producer'] = [
     'class' => 'SchemaPersonOrgBase',
     'label' => t('producer'),
     'description' => t("The producer of the work."),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_movie.productionCompany'] = array(
+  $info['tags']['schema_movie.productionCompany'] = [
     'class' => 'SchemaPersonOrgBase',
     'label' => t('productionCompany'),
     'description' => t("The production company or studio that made the work."),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
   return $info;
+
 }
diff --git a/schema_movie/schema_movie.module b/schema_movie/schema_movie.module
index 2d6ce2a..fce9eba 100644
--- a/schema_movie/schema_movie.module
+++ b/schema_movie/schema_movie.module
@@ -8,8 +8,8 @@
 /**
  * Implements hook_ctools_plugin_api().
  */
-function schema_movie_ctools_plugin_api($owner, $api) {
+function schema_movie_ctools_plugin_api(string $owner, string $api): ?array {
   if ($owner == 'metatag' && $api == 'metatag') {
-    return array('version' => 1);
+    return ['version' => 1];
   }
 }
diff --git a/schema_movie/src/SchemaMovieHasPart.php b/schema_movie/src/SchemaMovieHasPart.php
index 299ab76..e19501d 100644
--- a/schema_movie/src/SchemaMovieHasPart.php
+++ b/schema_movie/src/SchemaMovieHasPart.php
@@ -8,7 +8,7 @@ class SchemaMovieHasPart extends SchemaHasPartBase {
   /**
    * Generate a form element for this meta tag.
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
 
     $form = parent::getForm($options);
 
diff --git a/schema_movie/src/SchemaMoviePotentialAction.php b/schema_movie/src/SchemaMoviePotentialAction.php
index c9e6f4a..4fc2e4a 100644
--- a/schema_movie/src/SchemaMoviePotentialAction.php
+++ b/schema_movie/src/SchemaMoviePotentialAction.php
@@ -8,7 +8,7 @@ class SchemaMoviePotentialAction extends SchemaActionBase {
   /**
    * Generate a form element for this meta tag.
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
 
     $this->actions = ['Action', 'ConsumeAction', 'WatchAction', 'ViewAction'];
 
diff --git a/schema_movie/src/SchemaMovieType.php b/schema_movie/src/SchemaMovieType.php
index 3b9d5e2..d2ef31f 100644
--- a/schema_movie/src/SchemaMovieType.php
+++ b/schema_movie/src/SchemaMovieType.php
@@ -8,7 +8,7 @@ class SchemaMovieType extends SchemaTypeBase {
   /**
    * {@inheritdoc}
    */
-  public static function labels() {
+  public static function labels(): array {
     return [
       'Movie',
       'Series',
diff --git a/schema_movie/tests/SchemaMetatagMovieTest.test b/schema_movie/tests/SchemaMetatagMovieTest.test
deleted file mode 100644
index 0eb0325..0000000
--- a/schema_movie/tests/SchemaMetatagMovieTest.test
+++ /dev/null
@@ -1,68 +0,0 @@
-<?php
-
-/**
- * Tests that each of the Metatag schema_movie tags work correctly.
- */
-class SchemaMetatagMovieTest extends SchemaMetatagTagsTestBase {
-
-  /**
-   * {@inheritdoc}
-   */
-  public static function getInfo() {
-    return array(
-      'name' => 'Schema Metatag: Movie',
-      'description' => 'Test the schema_movie meta tags.',
-      'group' => 'Schema Metatag',
-      'dependencies' => [
-        'ctools',
-        'token',
-        'metatag',
-        'schema_metatag',
-        'schema_movie',
-      ],
-    );
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public function setUp(array $modules = array()) {
-    $modules[] = 'schema_movie';
-    parent::setUp($modules);
-
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public $moduleName = 'schema_movie';
-
-  /**
-   * {@inheritdoc}
-   */
-  public $schemaTags = [
-    'schema_movie.@type' => 'SchemaMovieType',
-    'schema_movie.name' => 'SchemaNameBase',
-    'schema_movie.@id' => 'SchemaNameBase',
-    'schema_movie.description' => 'SchemaNameBase',
-    'schema_movie.image' => 'SchemaImageBase',
-    'schema_movie.potentialAction' => 'SchemaMoviePotentialAction',
-    'schema_movie.aggregateRating' => 'SchemaRatingBase',
-    'schema_movie.hasPart' => 'SchemaMovieHasPart',
-    'schema_movie.url' => 'SchemaUrlBase',
-    'schema_movie.sameAs' => 'SchemaUrlBase',
-    'schema_movie.duration' => 'SchemaDurationBase',
-    'schema_movie.dateCreated' => 'SchemaDateBase',
-    'schema_movie.seasonNumber' => 'SchemaNameBase',
-    'schema_movie.episodeNumber' => 'SchemaNameBase',
-    'schema_movie.partOfSeries' => 'SchemaCreativeWorkBase',
-    'schema_movie.partOfSeason' => 'SchemaCreativeWorkBase',
-    'schema_movie.releasedEvent' => 'SchemaEventBase',
-    'schema_movie.actor' => 'SchemaPersonOrgBase',
-    'schema_movie.director' => 'SchemaPersonOrgBase',
-    'schema_movie.musicBy' => 'SchemaPersonOrgBase',
-    'schema_movie.producer' => 'SchemaPersonOrgBase',
-    'schema_movie.productionCompany' => 'SchemaPersonOrgBase',
-  ];
-
-}
diff --git a/schema_organization/schema_organization.info b/schema_organization/schema_organization.info
index 7e56038..9649bb5 100644
--- a/schema_organization/schema_organization.info
+++ b/schema_organization/schema_organization.info
@@ -6,4 +6,4 @@ dependencies[] = schema_metatag
 
 files[] = src/SchemaOrganizationType.php
 files[] = src/SchemaOrganizationPotentialAction.php
-files[] = tests/SchemaMetatagOrganizationTest.test
+files[] = tests/SchemaOrganizationMetatagTest.test
diff --git a/schema_organization/schema_organization.metatag.inc b/schema_organization/schema_organization.metatag.inc
index 9a90184..cd66482 100644
--- a/schema_organization/schema_organization.metatag.inc
+++ b/schema_organization/schema_organization.metatag.inc
@@ -8,138 +8,144 @@
 /**
  * Implements hook_metatag_info().
  */
-function schema_organization_metatag_info() {
-  $info['groups']['schema_organization'] = array(
-    'label' => t('Schema.org: Organization'),
-    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>, Google\'s recommendations at <a href="!google_url">!google_url</a>.', ['!url' => 'http://schema.org/Organization', '!google_url' => 'https://developers.google.com/search/docs/data-types/local-business']),
-    'form' => array(
-      '#weight' => 10,
-    ),
-  );
+function schema_organization_metatag_info(): array {
 
   $weight = 10;
 
+  $info['groups']['schema_organization'] = [
+    'label' => t('Schema.org: Organization'),
+    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>, Google\'s recommendations at <a href="!google_url">!google_url</a>.', [
+      '!url' => 'http://schema.org/Organization',
+      '!google_url' => 'https://developers.google.com/search/docs/data-types/local-business',
+    ]),
+    'form' => [
+      '#weight' => $weight,
+    ],
+  ];
+
   // Basic tags.
-  $defaults = array(
+  $defaults = [
     'class' => 'SchemaNameBase',
     'group' => 'schema_organization',
-    'form' => array(
+    'form' => [
       '#type' => 'textfield',
-    ),
-  );
+    ],
+  ];
 
-  $info['tags']['schema_organization.@type'] = array(
+  $info['tags']['schema_organization.@type'] = [
     'class' => 'SchemaOrganizationType',
     'label' => t('@type'),
     'description' => t('REQUIRED. The type of organization.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_organization.additionalType'] = array(
+  $info['tags']['schema_organization.additionalType'] = [
     'class' => 'SchemaOrganizationType',
     'label' => t('additionalType'),
-    'description' => t(" An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in."),
+    'description' => t("An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in."),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_organization.@id'] = array(
+  $info['tags']['schema_organization.@id'] = [
     'label' => t('@id'),
     'description' => t('REQUIRED BY GOOGLE. Globally unique @id, usually a url, used to to link other properties to this object.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_organization.name'] = array(
+  $info['tags']['schema_organization.name'] = [
     'label' => t('name'),
     'description' => t('REQUIRED BY GOOGLE. The name of the organization.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_organization.address'] = array(
+  $info['tags']['schema_organization.address'] = [
     'class' => 'SchemaAddressBase',
     'label' => t('address'),
     'description' => t('REQUIRED BY GOOGLE. The address of the organization.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_organization.geo'] = array(
+  $info['tags']['schema_organization.geo'] = [
     'class' => 'SchemaGeoBase',
     'label' => t('geo'),
     'description' => t('RECOMMENDED BY GOOGLE. The geographic coordinates of the organization.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_organization.telephone'] = array(
+  $info['tags']['schema_organization.telephone'] = [
     'label' => t('telephone'),
     'description' => t("RECOMMENDED BY GOOGLE. A business phone number meant to be the primary contact method for customers. Be sure to include the country code and area code in the phone number."),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_organization.contactPoint'] = array(
+  $info['tags']['schema_organization.contactPoint'] = [
     'class' => 'SchemaContactPointBase',
     'label' => t('contactPoint'),
-    'description' => t("Telephone and other contact point information. See <a href=\":url\">Google Corporate Contact</a>.", [":url" => "https://developers.google.com/search/docs/data-types/corporate-contact"]),
+    'description' => t('Telephone and other contact point information. See <a href=":url">Google Corporate Contact</a>.', [
+      ":url" => "https://developers.google.com/search/docs/data-types/corporate-contact",
+    ]),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_organization.url'] = array(
+  $info['tags']['schema_organization.url'] = [
     'class' => 'SchemaUrlBase',
     'label' => t('url'),
     'description' => t('RECOMMENDED BY GOOGLE. The url of the organization.'),
     'url' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_organization.sameAs'] = array(
+  $info['tags']['schema_organization.sameAs'] = [
     'class' => 'SchemaUrlBase',
     'label' => t('sameAs'),
     'description' => t('Additional urls, such as wikipedia page or social profiles.'),
     'multiple' => TRUE,
     'url' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_organization.description'] = array(
+  $info['tags']['schema_organization.description'] = [
     'label' => t('description'),
     'description' => t('RECOMMENDED BY GOOGLE. A description of the item.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_organization.brand'] = array(
+  $info['tags']['schema_organization.brand'] = [
     'class' => 'SchemaBrandBase',
     'label' => t('brand'),
     'description' => t('The brand of the organization.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_organization.acceptsReservations'] = array(
+  $info['tags']['schema_organization.acceptsReservations'] = [
     'class' => 'SchemaTrueFalseBase',
     'label' => t('acceptsReservations'),
     'description' => t('RECOMMENDED BY GOOGLE FOR Food Establishments.'),
     'multiple' => FALSE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_organization.menu'] = array(
+  $info['tags']['schema_organization.menu'] = [
     'class' => 'SchemaUrlBase',
     'label' => t('menu'),
     'description' => t('RECOMMENDED BY GOOGLE FOR Food Establishments. The url of the menu.'),
     'url' => TRUE,
     'multiple' => FALSE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_organization.openingHoursSpecification'] = array(
+  $info['tags']['schema_organization.openingHoursSpecification'] = [
     'class' => 'SchemaOpeningHoursSpecificationBase',
     'label' => t('openingHoursSpecification'),
     'description' => t('RECOMMENDED BY GOOGLE. Hours during which the business location is open.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_organization.image'] = array(
+  $info['tags']['schema_organization.image'] = [
     'class' => 'SchemaImageBase',
     'label' => t('image'),
     'description' => t('REQUIRED BY GOOGLE. The primary image for this organization.'),
@@ -147,61 +153,61 @@ function schema_organization_metatag_info() {
     'url' => TRUE,
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_organization.logo'] = array(
+  $info['tags']['schema_organization.logo'] = [
     'class' => 'SchemaImageBase',
     'label' => t('logo'),
     'description' => t('The logo for this organization.'),
     'image' => TRUE,
     'url' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_organization.potentialAction'] = array(
+  $info['tags']['schema_organization.potentialAction'] = [
     'class' => 'SchemaOrganizationPotentialAction',
     'label' => t('memberOf'),
     'description' => t('RECOMMENDED BY GOOGLE. Potential action provided by this organization.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_organization.priceRange'] = array(
+  $info['tags']['schema_organization.priceRange'] = [
     'label' => t('priceRange'),
     'description' => t('The price range of products of the organization.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_organization.memberOf'] = array(
+  $info['tags']['schema_organization.memberOf'] = [
     'class' => 'SchemaProgramMembershipBase',
     'label' => t('memberOf'),
     'description' => t('An Organization (or ProgramMembership) to which this Organization belongs.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_organization.aggregateRating'] = array(
+  $info['tags']['schema_organization.aggregateRating'] = [
     'class' => 'SchemaRatingBase',
     'label' => t('aggregateRating'),
     'description' => '',
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_organization.starRating'] = array(
+  $info['tags']['schema_organization.starRating'] = [
     'class' => 'SchemaRatingBase',
     'label' => t('starRating'),
     'description' => t('An official rating for a lodging business or food establishment, e.g. from national associations or standards bodies.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_organization.review'] = array(
+  $info['tags']['schema_organization.review'] = [
     'class' => 'SchemaReviewBase',
     'label' => t('review'),
     'description' => '',
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
   return $info;
 
diff --git a/schema_organization/schema_organization.module b/schema_organization/schema_organization.module
index 1c09978..ffa8c3d 100644
--- a/schema_organization/schema_organization.module
+++ b/schema_organization/schema_organization.module
@@ -8,8 +8,8 @@
 /**
  * Implements hook_ctools_plugin_api().
  */
-function schema_organization_ctools_plugin_api($owner, $api) {
+function schema_organization_ctools_plugin_api(string $owner, string $api): ?array {
   if ($owner == 'metatag' && $api == 'metatag') {
-    return array('version' => 1);
+    return ['version' => 1];
   }
 }
diff --git a/schema_organization/src/SchemaOrganizationPotentialAction.php b/schema_organization/src/SchemaOrganizationPotentialAction.php
index 6901776..d0b5198 100644
--- a/schema_organization/src/SchemaOrganizationPotentialAction.php
+++ b/schema_organization/src/SchemaOrganizationPotentialAction.php
@@ -8,9 +8,15 @@ class SchemaOrganizationPotentialAction extends SchemaActionBase {
   /**
    * Generate a form element for this meta tag.
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
 
-    $this->actions = ['Action', 'TradeAction', 'OrganizeAction', 'OrderAction', 'ReserveAction'];
+    $this->actions = [
+      'Action',
+      'TradeAction',
+      'OrganizeAction',
+      'OrderAction',
+      'ReserveAction',
+    ];
 
     $form = parent::getForm($options);
     return $form;
diff --git a/schema_organization/src/SchemaOrganizationType.php b/schema_organization/src/SchemaOrganizationType.php
index 0e05a57..0bebc69 100644
--- a/schema_organization/src/SchemaOrganizationType.php
+++ b/schema_organization/src/SchemaOrganizationType.php
@@ -8,7 +8,7 @@ class SchemaOrganizationType extends SchemaTypeBase {
   /**
    * {@inheritdoc}
    */
-  public static function labels() {
+  public static function labels(): array {
     return [
       'Organization',
       'Airline',
diff --git a/schema_organization/tests/SchemaMetatagOrganizationTest.test b/schema_organization/tests/SchemaMetatagOrganizationTest.test
deleted file mode 100644
index d013f4f..0000000
--- a/schema_organization/tests/SchemaMetatagOrganizationTest.test
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php
-
-/**
- * Tests that each of the Metatag schema_organization tags work correctly.
- */
-class SchemaMetatagOrganizationTest extends SchemaMetatagTagsTestBase {
-
-  /**
-   * {@inheritdoc}
-   */
-  public static function getInfo() {
-    return array(
-      'name' => 'Schema Metatag: Organization',
-      'description' => 'Test the schema_organization meta tags.',
-      'group' => 'Schema Metatag',
-      'dependencies' => [
-        'ctools',
-        'token',
-        'metatag',
-        'schema_metatag',
-        'schema_organization',
-      ],
-    );
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public function setUp(array $modules = array()) {
-    $modules[] = 'schema_organization';
-    parent::setUp($modules);
-
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public $moduleName = 'schema_organization';
-
-  /**
-   * {@inheritdoc}
-   */
-  public $schemaTags = [
-    'schema_organization.@type' => 'SchemaOrganizationType',
-    'schema_organization.additionalType' => 'SchemaOrganizationType',
-    'schema_organization.@id' => 'SchemaNameBase',
-    'schema_organization.name' => 'SchemaNameBase',
-    'schema_organization.acceptsReservations' => 'SchemaTrueFalseBase',
-    'schema_organization.menu' => 'SchemaUrlBase',
-    'schema_organization.url' => 'SchemaUrlBase',
-    'schema_organization.sameAs' => 'SchemaUrlBase',
-    'schema_organization.address' => 'SchemaAddressBase',
-    'schema_organization.geo' => 'SchemaGeoBase',
-    'schema_organization.image' => 'SchemaImageBase',
-    'schema_organization.logo' => 'SchemaImageBase',
-    'schema_organization.telephone' => 'SchemaNameBase',
-    'schema_organization.description' => 'SchemaNameBase',
-    'schema_organization.openingHoursSpecification' => 'SchemaOpeningHoursSpecificationBase',
-    'schema_organization.priceRange' => 'SchemaNameBase',
-    'schema_organization.memberOf' => 'SchemaProgramMembershipBase',
-    'schema_organization.potentialAction' => 'SchemaOrganizationPotentialAction',
-    'schema_organization.aggregateRating' => 'SchemaRatingBase',
-    'schema_organization.starRating' => 'SchemaRatingBase',
-    'schema_organization.review' => 'SchemaReviewBase',
-    'schema_organization.contactPoint' => 'SchemaContactPointBase',
-    'schema_organization.brand' => 'SchemaBrandBase',
-  ];
-
-}
diff --git a/schema_person/schema_person.info b/schema_person/schema_person.info
index 8bc4807..825fcda 100644
--- a/schema_person/schema_person.info
+++ b/schema_person/schema_person.info
@@ -5,4 +5,4 @@ core = 7.x
 dependencies[] = schema_metatag:schema_metatag
 
 files[] = src/SchemaPersonType.php
-files[] = tests/SchemaMetatagPersonTest.test
+files[] = tests/SchemaPersonMetatagTest.test
diff --git a/schema_person/schema_person.metatag.inc b/schema_person/schema_person.metatag.inc
index b60037f..b3ac386 100644
--- a/schema_person/schema_person.metatag.inc
+++ b/schema_person/schema_person.metatag.inc
@@ -8,140 +8,145 @@
 /**
  * Implements hook_metatag_info().
  */
-function schema_person_metatag_info() {
-  $info['groups']['schema_person'] = array(
-    'label' => t('Schema.org: Person'),
-    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>.', array('!url' => 'http://schema.org/Person')),
-    'form' => array(
-      '#weight' => 10,
-    ),
-  );
+function schema_person_metatag_info(): array {
 
   $weight = 10;
 
+  $info['groups']['schema_person'] = [
+    'label' => t('Schema.org: Person'),
+    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>.', [
+      '!url' => 'http://schema.org/Person',
+    ]),
+    'form' => [
+      '#weight' => $weight,
+    ],
+  ];
+
   // Basic tags.
-  $defaults = array(
+  $defaults = [
     'class' => 'SchemaNameBase',
     'group' => 'schema_person',
-    'form' => array(
+    'form' => [
       '#type' => 'textfield',
-    ),
-  );
+    ],
+  ];
 
-  $info['tags']['schema_person.@type'] = array(
+  $info['tags']['schema_person.@type'] = [
     'class' => 'SchemaPersonType',
     'label' => t('@type'),
     'description' => t('The type of person.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_person.@id'] = array(
+  $info['tags']['schema_person.@id'] = [
     'label' => t('@id'),
     'description' => t('Globally unique @id, usually a url, used to to link other properties to this object.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_person.name'] = array(
+  $info['tags']['schema_person.name'] = [
     'label' => t('name'),
     'description' => t('The name of the person.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_person.givenName'] = array(
+  $info['tags']['schema_person.givenName'] = [
     'label' => t('givenName'),
     'description' => t('Given name. In the U.S., the first name of a Person. This can be used along with familyName instead of the name property.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_person.familyName'] = array(
+  $info['tags']['schema_person.familyName'] = [
     'label' => t('familyName'),
     'description' => t('Family name. In the U.S., the last name of an Person. This can be used along with givenName instead of the name property.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_person.additionalName'] = array(
+  $info['tags']['schema_person.additionalName'] = [
     'label' => t('additonalName'),
     'description' => t('An additional name for a Person, can be used for a middle name. Multiple values may be used, separated by a comma. Note: Tokens that return multiple values will be handled automatically.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_person.alternateName'] = array(
+  $info['tags']['schema_person.alternateName'] = [
     'label' => t('alternateName'),
     'description' => t('An alias for the person.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_person.birthDate'] = array(
+  $info['tags']['schema_person.birthDate'] = [
     'class' => 'SchemaDateBase',
     'label' => t('birthDate'),
     'description' => t('Date of birth of the person in ISO 8601 format, 2017-12-31. To format the date properly, use a token like [node:created:html_datetime].'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_person.gender'] = array(
+  $info['tags']['schema_person.gender'] = [
     'label' => t('gender'),
     'description' => t('Gender of the person.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_person.jobTitle'] = array(
+  $info['tags']['schema_person.jobTitle'] = [
     'label' => t('jobTitle'),
     'description' => t('The job title of the person (for example, Financial Manager).'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_person.url'] = array(
+  $info['tags']['schema_person.url'] = [
     'class' => 'SchemaUrlBase',
     'label' => t('url'),
     'description' => t('The url of the person.'),
     'url' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_person.sameAs'] = array(
+  $info['tags']['schema_person.sameAs'] = [
     'class' => 'SchemaUrlBase',
     'label' => t('sameAs'),
     'description' => t('Social links and other urls of the person.'),
     'url' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_person.address'] = array(
+  $info['tags']['schema_person.address'] = [
     'class' => 'SchemaAddressBase',
     'label' => t('address'),
     'description' => t('The address of the person.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_person.email'] = array(
+  $info['tags']['schema_person.email'] = [
     'label' => t('email'),
     'description' => t('The email address of the person.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_person.telephone'] = array(
+  $info['tags']['schema_person.telephone'] = [
     'label' => t('telephone'),
     'description' => t('The primary telephone number of the person.'),
     'multiple' => FALSE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_person.contactPoint'] = array(
+  $info['tags']['schema_person.contactPoint'] = [
     'class' => 'SchemaContactPointBase',
     'label' => t('contactPoint'),
-    'description' => t("Telephone and other contact point information. See <a href=\":url\">ContactPoint</a>.", [":url" => "https://schema.org/ContactPoint"]),
+    'description' => t('Telephone and other contact point information. See <a href=\":url\">ContactPoint</a>.', [
+      ":url" => "https://schema.org/ContactPoint",
+    ]),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_person.description'] = array(
+  $info['tags']['schema_person.description'] = [
     'label' => t('description'),
     'description' => t('A description of the person.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_person.image'] = array(
+  $info['tags']['schema_person.image'] = [
     'class' => 'SchemaImageBase',
     'label' => t('image'),
     'description' => t('The primary image for the person.'),
@@ -149,38 +154,38 @@ function schema_person_metatag_info() {
     'url' => TRUE,
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_person.brand'] = array(
+  $info['tags']['schema_person.brand'] = [
     'class' => 'SchemaBrandBase',
     'label' => t('brand'),
     'description' => t('The brand of the person.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_person.affiliation'] = array(
+  $info['tags']['schema_person.affiliation'] = [
     'class' => 'SchemaPersonOrgBase',
     'label' => t('affiliation'),
     'description' => t('An organization that this person is affiliated with. For example, a school/university, a club, or a team.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_person.memberOf'] = array(
+  $info['tags']['schema_person.memberOf'] = [
     'class' => 'SchemaProgramMembershipBase',
     'label' => t('memberOf'),
     'description' => t('An Organization (or ProgramMembership) to which this Person belongs.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_person.worksFor'] = array(
+  $info['tags']['schema_person.worksFor'] = [
     'class' => 'SchemaPersonOrgBase',
     'label' => t('worksFor'),
     'description' => t('Organizations that the person works for.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
   return $info;
 
diff --git a/schema_person/schema_person.module b/schema_person/schema_person.module
index 66262ed..0086725 100644
--- a/schema_person/schema_person.module
+++ b/schema_person/schema_person.module
@@ -8,8 +8,8 @@
 /**
  * Implements hook_ctools_plugin_api().
  */
-function schema_person_ctools_plugin_api($owner, $api) {
+function schema_person_ctools_plugin_api(string $owner, string $api): ?array {
   if ($owner == 'metatag' && $api == 'metatag') {
-    return array('version' => 1);
+    return ['version' => 1];
   }
 }
diff --git a/schema_person/src/SchemaPersonType.php b/schema_person/src/SchemaPersonType.php
index 7b6bf5c..edfda5f 100644
--- a/schema_person/src/SchemaPersonType.php
+++ b/schema_person/src/SchemaPersonType.php
@@ -8,7 +8,7 @@ class SchemaPersonType extends SchemaTypeBase {
   /**
    * {@inheritdoc}
    */
-  public static function labels() {
+  public static function labels(): array {
     return [
       'Person',
     ];
diff --git a/schema_person/tests/SchemaMetatagPersonTest.test b/schema_person/tests/SchemaMetatagPersonTest.test
deleted file mode 100644
index c5a6c99..0000000
--- a/schema_person/tests/SchemaMetatagPersonTest.test
+++ /dev/null
@@ -1,68 +0,0 @@
-<?php
-
-/**
- * Tests that each of the Metatag schema_person tags work correctly.
- */
-class SchemaMetatagPersonTest extends SchemaMetatagTagsTestBase {
-
-  /**
-   * {@inheritdoc}
-   */
-  public static function getInfo() {
-    return array(
-      'name' => 'Schema Metatag: Person',
-      'description' => 'Test the schema_person meta tags.',
-      'group' => 'Schema Metatag',
-      'dependencies' => [
-        'ctools',
-        'token',
-        'metatag',
-        'schema_metatag',
-        'schema_person',
-      ],
-    );
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public function setUp(array $modules = array()) {
-    $modules[] = 'schema_person';
-    parent::setUp($modules);
-
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public $moduleName = 'schema_person';
-
-  /**
-   * {@inheritdoc}
-   */
-  public $schemaTags = [
-    'schema_person.@type' => 'SchemaPersonType',
-    'schema_person.@id' => 'SchemaNameBase',
-    'schema_person.name' => 'SchemaNameBase',
-    'schema_person.givenName' => 'SchemaNameBase',
-    'schema_person.familyName' => 'SchemaNameBase',
-    'schema_person.additionalName' => 'SchemaNameBase',
-    'schema_person.alternateName' => 'SchemaNameBase',
-    'schema_person.birthDate' => 'SchemaDateBase',
-    'schema_person.gender' => 'SchemaNameBase',
-    'schema_person.jobTitle' => 'SchemaNameBase',
-    'schema_person.url' => 'SchemaUrlBase',
-    'schema_person.sameAs' => 'SchemaUrlBase',
-    'schema_person.address' => 'SchemaAddressBase',
-    'schema_person.email' => 'SchemaNameBase',
-    'schema_person.telephone' => 'SchemaNameBase',
-    'schema_person.description' => 'SchemaNameBase',
-    'schema_person.image' => 'SchemaImageBase',
-    'schema_person.affiliation' => 'SchemaPersonOrgBase',
-    'schema_person.memberOf' => 'SchemaProgramMembershipBase',
-    'schema_person.worksFor' => 'SchemaPersonOrgBase',
-    'schema_person.contactPoint' => 'SchemaContactPointBase',
-    'schema_person.brand' => 'SchemaBrandBase',
-  ];
-
-}
diff --git a/schema_place/schema_place.info b/schema_place/schema_place.info
index e290b5a..9fef666 100644
--- a/schema_place/schema_place.info
+++ b/schema_place/schema_place.info
@@ -5,4 +5,4 @@ core = 7.x
 dependencies[] = schema_metatag
 
 files[] = src/SchemaPlaceType.php
-files[] = tests/SchemaMetatagPlaceTest.test
+files[] = tests/SchemaPlaceMetatagTest.test
diff --git a/schema_place/schema_place.metatag.inc b/schema_place/schema_place.metatag.inc
index 0e8f298..d0a48fe 100644
--- a/schema_place/schema_place.metatag.inc
+++ b/schema_place/schema_place.metatag.inc
@@ -8,46 +8,49 @@
 /**
  * Implements hook_metatag_info().
  */
-function schema_place_metatag_info() {
-  $info['groups']['schema_place'] = array(
-    'label' => t('Schema.org: Place'),
-    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>.', array('!url' => 'http://schema.org/Place')),
-    'form' => array(
-      '#weight' => 10,
-    ),
-  );
+function schema_place_metatag_info(): array {
 
   $weight = 10;
 
+  $info['groups']['schema_place'] = [
+    'label' => t('Schema.org: Place'),
+    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>.', [
+      '!url' => 'http://schema.org/Place',
+    ]),
+    'form' => [
+      '#weight' => $weight,
+    ],
+  ];
+
   // Basic tags.
-  $defaults = array(
+  $defaults = [
     'class' => 'SchemaNameBase',
     'group' => 'schema_place',
-    'form' => array(
+    'form' => [
       '#type' => 'textfield',
-    ),
-  );
+    ],
+  ];
 
-  $info['tags']['schema_place.@type'] = array(
+  $info['tags']['schema_place.@type'] = [
     'class' => 'SchemaPlaceType',
     'label' => t('@type'),
     'description' => t('REQUIRED. The type of Place (fixed by standard).'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_place.name'] = array(
+  $info['tags']['schema_place.name'] = [
     'label' => t('name'),
     'description' => t('Name of the Place.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_place.description'] = array(
+  $info['tags']['schema_place.description'] = [
     'label' => t('description'),
     'description' => t('A description of the Place.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_place.image'] = array(
+  $info['tags']['schema_place.image'] = [
     'class' => 'SchemaImageBase',
     'label' => t('image'),
     'description' => t('The primary image for this Place.'),
@@ -55,35 +58,36 @@ function schema_place_metatag_info() {
     'url' => TRUE,
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_place.telephone'] = array(
+  $info['tags']['schema_place.telephone'] = [
     'label' => t('telephone'),
     'description' => t('The telephone number associated with the Place.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_place.url'] = array(
+  $info['tags']['schema_place.url'] = [
     'label' => t('url'),
     'description' => t('The url associated with the Place.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_place.address'] = array(
+  $info['tags']['schema_place.address'] = [
     'class' => 'SchemaAddressBase',
     'label' => t('address'),
     'description' => t('The address of the place.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_place.geo'] = array(
+  $info['tags']['schema_place.geo'] = [
     'class' => 'SchemaGeoBase',
     'label' => t('geo'),
     'description' => t('The geographic coordinates of the Place.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
   return $info;
+
 }
diff --git a/schema_place/schema_place.module b/schema_place/schema_place.module
index f9d84c2..3aecd32 100644
--- a/schema_place/schema_place.module
+++ b/schema_place/schema_place.module
@@ -8,8 +8,8 @@
 /**
  * Implements hook_ctools_plugin_api().
  */
-function schema_place_ctools_plugin_api($owner, $api) {
+function schema_place_ctools_plugin_api(string $owner, string $api): ?array {
   if ($owner == 'metatag' && $api == 'metatag') {
-    return array('version' => 1);
+    return ['version' => 1];
   }
 }
diff --git a/schema_place/src/SchemaPlaceType.php b/schema_place/src/SchemaPlaceType.php
index b1fc1c3..955ca66 100644
--- a/schema_place/src/SchemaPlaceType.php
+++ b/schema_place/src/SchemaPlaceType.php
@@ -8,7 +8,7 @@ class SchemaPlaceType extends SchemaTypeBase {
   /**
    * {@inheritdoc}
    */
-  public static function labels() {
+  public static function labels(): array {
     return [
       'Place',
       '- Accommodation',
diff --git a/schema_place/tests/SchemaMetatagPlaceTest.test b/schema_place/tests/SchemaMetatagPlaceTest.test
deleted file mode 100644
index 157bf48..0000000
--- a/schema_place/tests/SchemaMetatagPlaceTest.test
+++ /dev/null
@@ -1,54 +0,0 @@
-<?php
-
-/**
- * Tests that each of the Metatag schema_place tags work correctly.
- */
-class SchemaMetatagPlaceTest extends SchemaMetatagTagsTestBase {
-
-  /**
-   * {@inheritdoc}
-   */
-  public static function getInfo() {
-    return array(
-      'name' => 'Schema Metatag: Place',
-      'description' => 'Test the schema_place meta tags.',
-      'group' => 'Schema Metatag',
-      'dependencies' => [
-        'ctools',
-        'token',
-        'metatag',
-        'schema_metatag',
-        'schema_place',
-      ],
-    );
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public function setUp(array $modules = array()) {
-    $modules[] = 'schema_place';
-    parent::setUp($modules);
-
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public $moduleName = 'schema_place';
-
-  /**
-   * {@inheritdoc}
-   */
-  public $schemaTags = [
-    'schema_place.@type' => 'SchemaPlaceType',
-    'schema_place.name' => 'SchemaNameBase',
-    'schema_place.description' => 'SchemaNameBase',
-    'schema_place.image' => 'SchemaImageBase',
-    'schema_place.telephone' => 'SchemaNameBase',
-    'schema_place.url' => 'SchemaNameBase',
-    'schema_place.address' => 'SchemaAddressBase',
-    'schema_place.geo' => 'SchemaGeoBase',
-  ];
-
-}
diff --git a/schema_product/schema_product.info b/schema_product/schema_product.info
index 35c1fe7..3ec1f58 100644
--- a/schema_product/schema_product.info
+++ b/schema_product/schema_product.info
@@ -5,4 +5,4 @@ core = 7.x
 dependencies[] = schema_metatag
 
 files[] = src/SchemaProductType.php
-files[] = tests/SchemaMetatagProductTest.test
+files[] = tests/SchemaProductMetatagTest.test
diff --git a/schema_product/schema_product.metatag.inc b/schema_product/schema_product.metatag.inc
index 9eaa03b..515baf2 100644
--- a/schema_product/schema_product.metatag.inc
+++ b/schema_product/schema_product.metatag.inc
@@ -8,107 +8,111 @@
 /**
  * Implements hook_metatag_info().
  */
-function schema_product_metatag_info() {
-  $info['groups']['schema_product'] = array(
-    'label' => t('Schema.org: Product'),
-    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>, Google\'s recommendations at <a href="!google_url">!google_url</a>.', ['!url' => 'http://schema.org/Product', '!google_url' => 'https://developers.google.com/search/docs/data-types/product']),
-    'form' => array(
-      '#weight' => 10,
-    ),
-  );
+function schema_product_metatag_info(): array {
 
   $weight = 10;
 
+  $info['groups']['schema_product'] = [
+    'label' => t('Schema.org: Product'),
+    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>, Google\'s recommendations at <a href="!google_url">!google_url</a>.', [
+      '!url' => 'http://schema.org/Product',
+      '!google_url' => 'https://developers.google.com/search/docs/data-types/product',
+    ]),
+    'form' => [
+      '#weight' => $weight,
+    ],
+  ];
+
   // Basic tags.
-  $defaults = array(
+  $defaults = [
     'class' => 'SchemaNameBase',
     'group' => 'schema_product',
-    'form' => array(
+    'form' => [
       '#type' => 'textfield',
-    ),
-  );
+    ],
+  ];
 
-  $info['tags']['schema_product.@type'] = array(
+  $info['tags']['schema_product.@type'] = [
     'class' => 'SchemaProductType',
     'label' => t('@type'),
     'description' => t('REQUIRED. The type of product (fixed by standard).'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_product.name'] = array(
+  $info['tags']['schema_product.name'] = [
     'label' => t('name'),
     'description' => t('REQUIRED BY GOOGLE. Name of the product.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_product.brand'] = array(
+  $info['tags']['schema_product.brand'] = [
     'class' => 'SchemaBrandBase',
     'label' => t('brand'),
     'description' => t('REQUIRED BY GOOGLE. The brand of the product.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_product.description'] = array(
+  $info['tags']['schema_product.description'] = [
     'label' => t('description'),
     'description' => t('RECOMMENDED BY GOOGLE. A description of the item.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_product.category'] = array(
+  $info['tags']['schema_product.category'] = [
     'label' => t('category'),
     'description' => t('RECOMMENDED BY GOOGLE. The category of the product.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_product.url'] = array(
+  $info['tags']['schema_product.url'] = [
     'label' => t('url'),
     'description' => t('RECOMMENDED BY GOOGLE. The url of the product.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_product.sku'] = array(
+  $info['tags']['schema_product.sku'] = [
     'label' => t('sku'),
     'description' => t('RECOMMENDED BY GOOGLE. Populate one of sku, gtin8, gtin12, gtin13, gtin14, isbn, or mpn.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_product.gtin8'] = array(
+  $info['tags']['schema_product.gtin8'] = [
     'label' => t('gtin8'),
     'description' => t('RECOMMENDED BY GOOGLE. Populate one of sku, gtin8, gtin12, gtin13, gtin14, isbn, or mpn.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_product.gtin12'] = array(
+  $info['tags']['schema_product.gtin12'] = [
     'label' => t('gtin12'),
     'description' => t('RECOMMENDED BY GOOGLE. Populate one of sku, gtin8, gtin12, gtin13, gtin14, isbn, or mpn.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_product.gtin13'] = array(
+  $info['tags']['schema_product.gtin13'] = [
     'label' => t('gtin13'),
     'description' => t('RECOMMENDED BY GOOGLE. Populate one of sku, gtin8, gtin12, gtin13, gtin14, isbn, or mpn.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_product.gtin14'] = array(
+  $info['tags']['schema_product.gtin14'] = [
     'label' => t('gtin14'),
     'description' => t('RECOMMENDED BY GOOGLE. Populate one of sku, gtin8, gtin12, gtin13, gtin14, isbn, or mpn.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_product.isbn'] = array(
+  $info['tags']['schema_product.isbn'] = [
     'label' => t('isbn'),
     'description' => t('RECOMMENDED BY GOOGLE. Populate one of sku, gtin8, gtin12, gtin13, gtin14, isbn, or mpn.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_product.mpn'] = array(
+  $info['tags']['schema_product.mpn'] = [
     'label' => t('mpn'),
     'description' => t('RECOMMENDED BY GOOGLE. Populate one of sku, gtin8, gtin12, gtin13, gtin14, isbn, or mpn.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_product.image'] = array(
+  $info['tags']['schema_product.image'] = [
     'class' => 'SchemaImageBase',
     'label' => t('image'),
     'description' => t('REQUIRED BY GOOGLE. The primary image for this item.'),
@@ -116,31 +120,32 @@ function schema_product_metatag_info() {
     'url' => TRUE,
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_product.offers'] = array(
+  $info['tags']['schema_product.offers'] = [
     'class' => 'SchemaOfferBase',
     'label' => t('offers'),
     'description' => t('RECOMMENDED BY GOOGLE. Offers associated with the product.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_product.aggregateRating'] = array(
+  $info['tags']['schema_product.aggregateRating'] = [
     'class' => 'SchemaRatingBase',
     'label' => t('aggregateRating'),
     'description' => t('RECOMMENDED BY GOOGLE. Aggregate rating of the product.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_product.review'] = array(
+  $info['tags']['schema_product.review'] = [
     'class' => 'SchemaReviewBase',
     'label' => t('review'),
     'description' => t('RECOMMENDED BY GOOGLE. Review of the product.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
   return $info;
+
 }
diff --git a/schema_product/schema_product.module b/schema_product/schema_product.module
index 6fed019..fb781cb 100644
--- a/schema_product/schema_product.module
+++ b/schema_product/schema_product.module
@@ -8,8 +8,8 @@
 /**
  * Implements hook_ctools_plugin_api().
  */
-function schema_product_ctools_plugin_api($owner, $api) {
+function schema_product_ctools_plugin_api(string $owner, string $api): ?array {
   if ($owner == 'metatag' && $api == 'metatag') {
-    return array('version' => 1);
+    return ['version' => 1];
   }
 }
diff --git a/schema_product/src/SchemaProductType.php b/schema_product/src/SchemaProductType.php
index e6718eb..4aa644a 100644
--- a/schema_product/src/SchemaProductType.php
+++ b/schema_product/src/SchemaProductType.php
@@ -8,7 +8,7 @@ class SchemaProductType extends SchemaTypeBase {
   /**
    * {@inheritdoc}
    */
-  public static function labels() {
+  public static function labels(): array {
     return [
       'Product',
       'IndividualProduct',
diff --git a/schema_product/tests/SchemaMetatagProductTest.test b/schema_product/tests/SchemaMetatagProductTest.test
deleted file mode 100644
index 06eeac8..0000000
--- a/schema_product/tests/SchemaMetatagProductTest.test
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-
-/**
- * Tests that each of the Metatag schema_product tags work correctly.
- */
-class SchemaMetatagProductTest extends SchemaMetatagTagsTestBase {
-
-  /**
-   * {@inheritdoc}
-   */
-  public static function getInfo() {
-    return array(
-      'name' => 'Schema Metatag: Product',
-      'description' => 'Test the schema_product meta tags.',
-      'group' => 'Schema Metatag',
-      'dependencies' => [
-        'ctools',
-        'token',
-        'metatag',
-        'schema_metatag',
-        'schema_product',
-      ],
-    );
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public function setUp(array $modules = array()) {
-    $modules[] = 'schema_product';
-    parent::setUp($modules);
-
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public $moduleName = 'schema_product';
-
-  /**
-   * {@inheritdoc}
-   */
-  public $schemaTags = [
-    'schema_product.@type' => 'SchemaProductType',
-    'schema_product.name' => 'SchemaNameBase',
-    'schema_product.brand' => 'SchemaBrandBase',
-    'schema_product.description' => 'SchemaNameBase',
-    'schema_product.image' => 'SchemaImageBase',
-    'schema_product.offers' => 'SchemaOfferBase',
-    'schema_product.aggregateRating' => 'SchemaRatingBase',
-    'schema_product.review' => 'SchemaReviewBase',
-    'schema_product.category' => 'SchemaNameBase',
-    'schema_product.url' => 'SchemaNameBase',
-    'schema_product.sku' => 'SchemaNameBase',
-    'schema_product.gtin8' => 'SchemaNameBase',
-    'schema_product.gtin12' => 'SchemaNameBase',
-    'schema_product.gtin13' => 'SchemaNameBase',
-    'schema_product.gtin14' => 'SchemaNameBase',
-    'schema_product.isbn' => 'SchemaNameBase',
-    'schema_product.mpn' => 'SchemaNameBase',
-  ];
-
-}
diff --git a/schema_qa_page/schema_qa_page.info b/schema_qa_page/schema_qa_page.info
index 6c01bc2..61e7cb6 100644
--- a/schema_qa_page/schema_qa_page.info
+++ b/schema_qa_page/schema_qa_page.info
@@ -5,4 +5,4 @@ core = 7.x
 dependencies[] = schema_metatag
 
 files[] = src/SchemaQAPageType.php
-files[] = tests/SchemaMetatagQAPageTest.test
+files[] = tests/SchemaQAPageMetatagTest.test
diff --git a/schema_qa_page/schema_qa_page.metatag.inc b/schema_qa_page/schema_qa_page.metatag.inc
index 83e450a..0495549 100644
--- a/schema_qa_page/schema_qa_page.metatag.inc
+++ b/schema_qa_page/schema_qa_page.metatag.inc
@@ -8,8 +8,11 @@
 /**
  * Implements hook_metatag_info().
  */
-function schema_qa_page_metatag_info() {
-  $info['groups']['schema_qa_page'] = array(
+function schema_qa_page_metatag_info(): array {
+
+  $weight = 10;
+
+  $info['groups']['schema_qa_page'] = [
     'label' => t('Schema.org: QAPage/FAQPage'),
     'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a> and <a href="!url2">!url2</a>, Google\'s recommendations at <a href="!google_url">!google_url</a> and <a href="!google_url2">!google_url2</a>.', [
       '!url' => 'http://schema.org/QAPage',
@@ -17,36 +20,35 @@ function schema_qa_page_metatag_info() {
       '!google_url' => 'https://developers.google.com/search/docs/data-types/qapage',
       '!google_url2' => 'https://developers.google.com/search/docs/data-types/faqpage',
     ]),
-    'form' => array(
-      '#weight' => 10,
-    ),
-  );
-
-  $weight = 10;
+    'form' => [
+      '#weight' => $weight,
+    ],
+  ];
 
   // Basic tags.
-  $defaults = array(
+  $defaults = [
     'class' => 'SchemaNameBase',
     'group' => 'schema_qa_page',
-    'form' => array(
+    'form' => [
       '#type' => 'textfield',
-    ),
-  );
+    ],
+  ];
 
-  $info['tags']['schema_qa_page.@type'] = array(
+  $info['tags']['schema_qa_page.@type'] = [
     'class' => 'SchemaQAPageType',
     'label' => t('@type'),
     'description' => t("REQUIRED. The type of object."),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_qa_page.mainEntity'] = array(
+  $info['tags']['schema_qa_page.mainEntity'] = [
     'class' => 'SchemaQuestionBase',
     'label' => t('text'),
     'description' => t('REQUIRED BY GOOGLE. An array of Question elements which comprise the list of answered questions that this QAPage or FAQPage is about.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
   return $info;
+
 }
diff --git a/schema_qa_page/schema_qa_page.module b/schema_qa_page/schema_qa_page.module
index 7290038..64c555b 100644
--- a/schema_qa_page/schema_qa_page.module
+++ b/schema_qa_page/schema_qa_page.module
@@ -8,8 +8,8 @@
 /**
  * Implements hook_ctools_plugin_api().
  */
-function schema_qa_page_ctools_plugin_api($owner, $api) {
+function schema_qa_page_ctools_plugin_api(string $owner, string $api): ?array {
   if ($owner == 'metatag' && $api == 'metatag') {
-    return array('version' => 1);
+    return ['version' => 1];
   }
 }
diff --git a/schema_qa_page/src/SchemaQAPageType.php b/schema_qa_page/src/SchemaQAPageType.php
index d977683..eb5e9cb 100644
--- a/schema_qa_page/src/SchemaQAPageType.php
+++ b/schema_qa_page/src/SchemaQAPageType.php
@@ -8,7 +8,7 @@ class SchemaQAPageType extends SchemaTypeBase {
   /**
    * {@inheritdoc}
    */
-  public static function labels() {
+  public static function labels(): array {
     return [
       'QAPage',
       'FAQPage',
diff --git a/schema_qa_page/tests/SchemaMetatagQAPageTest.test b/schema_qa_page/tests/SchemaMetatagQAPageTest.test
deleted file mode 100644
index 9b68a91..0000000
--- a/schema_qa_page/tests/SchemaMetatagQAPageTest.test
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-
-/**
- * Tests that each of the Metatag schema_qa_page tags work correctly.
- */
-class SchemaMetatagQAPageTest extends SchemaMetatagTagsTestBase {
-
-  /**
-   * {@inheritdoc}
-   */
-  public static function getInfo() {
-    return array(
-      'name' => 'Schema Metatag: QAPage/FAQPage',
-      'description' => 'Test the schema_qa_page meta tags.',
-      'group' => 'Schema Metatag',
-      'dependencies' => [
-        'ctools',
-        'token',
-        'metatag',
-        'schema_metatag',
-        'schema_qa_page',
-      ],
-    );
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public function setUp(array $modules = array()) {
-    $modules[] = 'schema_qa_page';
-    parent::setUp($modules);
-
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public $moduleName = 'schema_qa_page';
-
-  /**
-   * {@inheritdoc}
-   */
-  public $schemaTags = [
-    'schema_qa_page.@type' => 'SchemaQAPageType',
-    'schema_qa_page.mainEntity' => 'SchemaQuestionBase',
-  ];
-
-}
diff --git a/schema_recipe/schema_recipe.info b/schema_recipe/schema_recipe.info
index d8b8439..374431b 100644
--- a/schema_recipe/schema_recipe.info
+++ b/schema_recipe/schema_recipe.info
@@ -5,4 +5,4 @@ core = 7.x
 dependencies[] = schema_metatag
 
 files[] = src/SchemaRecipeType.php
-files[] = tests/SchemaMetatagRecipeTest.test
+files[] = tests/SchemaRecipeMetatagTest.test
diff --git a/schema_recipe/schema_recipe.metatag.inc b/schema_recipe/schema_recipe.metatag.inc
index e454499..73ff78e 100644
--- a/schema_recipe/schema_recipe.metatag.inc
+++ b/schema_recipe/schema_recipe.metatag.inc
@@ -8,46 +8,50 @@
 /**
  * Implements hook_metatag_info().
  */
-function schema_recipe_metatag_info() {
-  $info['groups']['schema_recipe'] = array(
-    'label' => t('Schema.org: Recipe'),
-    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>, Google\'s recommendations at <a href="!google_url">!google_url</a>.', ['!url' => 'http://schema.org/Recipe', '!google_url' => 'https://developers.google.com/search/docs/data-types/recipe']),
-    'form' => array(
-      '#weight' => 10,
-    ),
-  );
+function schema_recipe_metatag_info(): array {
 
   $weight = 10;
 
+  $info['groups']['schema_recipe'] = [
+    'label' => t('Schema.org: Recipe'),
+    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>, Google\'s recommendations at <a href="!google_url">!google_url</a>.', [
+      '!url' => 'http://schema.org/Recipe',
+      '!google_url' => 'https://developers.google.com/search/docs/data-types/recipe',
+    ]),
+    'form' => [
+      '#weight' => $weight,
+    ],
+  ];
+
   // Basic tags.
-  $defaults = array(
+  $defaults = [
     'class' => 'SchemaNameBase',
     'group' => 'schema_recipe',
-    'form' => array(
+    'form' => [
       '#type' => 'textfield',
-    ),
-  );
+    ],
+  ];
 
-  $info['tags']['schema_recipe.@type'] = array(
+  $info['tags']['schema_recipe.@type'] = [
     'class' => 'SchemaRecipeType',
     'label' => t('@type'),
     'description' => t('REQUIRED. The type of product.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_recipe.name'] = array(
+  $info['tags']['schema_recipe.name'] = [
     'label' => t('name'),
     'description' => t('REQUIRED BY GOOGLE. Name of the product.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_recipe.description'] = array(
+  $info['tags']['schema_recipe.description'] = [
     'label' => t('description'),
     'description' => t('RECOMMENDED BY GOOGLE. A description of the item.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_recipe.image'] = array(
+  $info['tags']['schema_recipe.image'] = [
     'class' => 'SchemaImageBase',
     'label' => t('image'),
     'description' => t('RECOMMENDED BY GOOGLE. The primary image for this item.'),
@@ -55,99 +59,100 @@ function schema_recipe_metatag_info() {
     'url' => TRUE,
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_recipe.author'] = array(
+  $info['tags']['schema_recipe.author'] = [
     'class' => 'SchemaPersonOrgBase',
     'label' => t('author'),
     'description' => t('RECOMMENDED BY GOOGLE. Author of the recipe.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_recipe.cookTime'] = array(
+  $info['tags']['schema_recipe.cookTime'] = [
     'class' => 'SchemaDurationBase',
     'label' => t('cookTime'),
     'description' => t('RECOMMENDED BY GOOGLE. Cook Time (The time it takes to actually cook the dish, in ISO 8601 duration format.)'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_recipe.prepTime'] = array(
+  $info['tags']['schema_recipe.prepTime'] = [
     'class' => 'SchemaDurationBase',
     'label' => t('prepTime'),
     'description' => t("RECOMMENDED BY GOOGLE. Cook Time (Prep Time (the name of the recipe, which isn’t necessarily the name of the node)."),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_recipe.totalTime'] = array(
+  $info['tags']['schema_recipe.totalTime'] = [
     'class' => 'SchemaDurationBase',
     'label' => t('totalTime'),
     'description' => t("Total Time (The total time required to perform instructions or a direction (including time to prepare the supplies), in ISO 8601 duration format."),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_recipe.datePublished'] = array(
+  $info['tags']['schema_recipe.datePublished'] = [
     'class' => 'SchemaDateBase',
     'label' => t('datePublished'),
     'description' => t('RECOMMEND BY GOOGLE. Date the recipe was published.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_recipe.nutrition'] = array(
+  $info['tags']['schema_recipe.nutrition'] = [
     'class' => 'SchemaNutritionInformationBase',
     'label' => t('nutrition'),
     'description' => t('RECOMMENDED BY GOOGLE. The number of calories in the recipe.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_recipe.recipeCategory'] = array(
+  $info['tags']['schema_recipe.recipeCategory'] = [
     'label' => t('recipeCategory'),
     'description' => t('RECOMMENDED BY GOOGLE. The category of the recipe—for example, appetizer, entree, etc.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_recipe.recipeIngredient'] = array(
+  $info['tags']['schema_recipe.recipeIngredient'] = [
     'label' => t('recipeIngredient'),
     'description' => t('RECOMMENDED BY GOOGLE. A list of single ingredients used in the recipe, e.g. sugar, flour or garlic.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_recipe.recipeCuisine'] = array(
+  $info['tags']['schema_recipe.recipeCuisine'] = [
     'label' => t('recipeCuisine'),
     'description' => t("RECOMMENDED BY GOOGLE. The region associated with your recipe. For example, 'French Mediterranean', or 'American'."),
     'multiple' => FALSE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_recipe.recipeInstructions'] = array(
+  $info['tags']['schema_recipe.recipeInstructions'] = [
     'label' => t('recipeInstructions'),
     'description' => t('RECOMMENDED BY GOOGLE. Steps in making the recipe, in the form of a single item (document, video, etc.) or an ordered list with HowToStep and/or HowToSection items.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_recipe.recipeYield'] = array(
+  $info['tags']['schema_recipe.recipeYield'] = [
     'label' => t('recipeYield'),
     'description' => t('RECOMMENDED BY GOOGLE. The quantity produced by the recipe. For example: number of people served, or number of servings.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_recipe.aggregateRating'] = array(
+  $info['tags']['schema_recipe.aggregateRating'] = [
     'class' => 'SchemaRatingBase',
     'label' => t('rating'),
     'description' => t('RECOMMENDED BY GOOGLE. The average review score assigned to the item.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_recipe.review'] = array(
+  $info['tags']['schema_recipe.review'] = [
     'class' => 'SchemaReviewBase',
     'label' => t('review'),
     'description' => t('RECOMMENDED BY GOOGLE. A review of the dish.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
   return $info;
+
 }
diff --git a/schema_recipe/schema_recipe.module b/schema_recipe/schema_recipe.module
index 9301b5e..9f472db 100644
--- a/schema_recipe/schema_recipe.module
+++ b/schema_recipe/schema_recipe.module
@@ -8,8 +8,8 @@
 /**
  * Implements hook_ctools_plugin_api().
  */
-function schema_recipe_ctools_plugin_api($owner, $api) {
+function schema_recipe_ctools_plugin_api(string $owner, string $api): ?array {
   if ($owner == 'metatag' && $api == 'metatag') {
-    return array('version' => 1);
+    return ['version' => 1];
   }
 }
diff --git a/schema_recipe/src/SchemaRecipeType.php b/schema_recipe/src/SchemaRecipeType.php
index 0c04cc5..cce9752 100644
--- a/schema_recipe/src/SchemaRecipeType.php
+++ b/schema_recipe/src/SchemaRecipeType.php
@@ -8,7 +8,7 @@ class SchemaRecipeType extends SchemaTypeBase {
   /**
    * {@inheritdoc}
    */
-  public static function labels() {
+  public static function labels(): array {
     return [
       'Recipe',
     ];
diff --git a/schema_recipe/tests/SchemaMetatagRecipeTest.test b/schema_recipe/tests/SchemaMetatagRecipeTest.test
deleted file mode 100644
index 5c6e2c5..0000000
--- a/schema_recipe/tests/SchemaMetatagRecipeTest.test
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-
-/**
- * Tests that each of the Metatag schema_recipe tags work correctly.
- */
-class SchemaMetatagRecipeTest extends SchemaMetatagTagsTestBase {
-
-  /**
-   * {@inheritdoc}
-   */
-  public static function getInfo() {
-    return array(
-      'name' => 'Schema Metatag: Recipe',
-      'description' => 'Test the schema_recipe meta tags.',
-      'group' => 'Schema Metatag',
-      'dependencies' => [
-        'ctools',
-        'token',
-        'metatag',
-        'schema_metatag',
-        'schema_recipe',
-      ],
-    );
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public function setUp(array $modules = array()) {
-    $modules[] = 'schema_recipe';
-    parent::setUp($modules);
-
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public $moduleName = 'schema_recipe';
-
-  /**
-   * {@inheritdoc}
-   */
-  public $schemaTags = [
-    'schema_recipe.@type' => 'SchemaRecipeType',
-    'schema_recipe.name' => 'SchemaNameBase',
-    'schema_recipe.description' => 'SchemaNameBase',
-    'schema_recipe.image' => 'SchemaImageBase',
-    'schema_recipe.author' => 'SchemaPersonOrgBase',
-    'schema_recipe.cookTime' => 'SchemaDurationBase',
-    'schema_recipe.prepTime' => 'SchemaDurationBase',
-    'schema_recipe.totalTime' => 'SchemaDurationBase',
-    'schema_recipe.datePublished' => 'SchemaDateBase',
-    'schema_recipe.recipeCategory' => 'SchemaNameBase',
-    'schema_recipe.recipeIngredient' => 'SchemaNameBase',
-    'schema_recipe.recipeInstructions' => 'SchemaNameBase',
-    'schema_recipe.recipeCuisine' => 'SchemaNameBase',
-    'schema_recipe.recipeYield' => 'SchemaNameBase',
-    'schema_recipe.nutrition' => 'SchemaNutritionInformationBase',
-    'schema_recipe.aggregateRating' => 'SchemaRatingBase',
-    'schema_recipe.review' => 'SchemaReviewBase',
-  ];
-
-}
diff --git a/schema_review/schema_review.info b/schema_review/schema_review.info
index add4b1e..6026362 100644
--- a/schema_review/schema_review.info
+++ b/schema_review/schema_review.info
@@ -5,4 +5,4 @@ core = 7.x
 dependencies[] = schema_metatag
 
 files[] = src/SchemaReviewType.php
-files[] = tests/SchemaMetatagReviewTest.test
+files[] = tests/SchemaReviewMetatagTest.test
diff --git a/schema_review/schema_review.metatag.inc b/schema_review/schema_review.metatag.inc
index 810754e..4423a41 100644
--- a/schema_review/schema_review.metatag.inc
+++ b/schema_review/schema_review.metatag.inc
@@ -8,74 +8,79 @@
 /**
  * Implements hook_metatag_info().
  */
-function schema_review_metatag_info() {
-  $info['groups']['schema_review'] = array(
-    'label' => t('Schema.org: Review'),
-    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>, Google\'s recommendations at <a href="!google_url">!google_url</a>.', ['!url' => 'http://schema.org/Review', '!google_url' => 'https://developers.google.com/search/docs/data-types/review']),
-    'form' => array(
-      '#weight' => 10,
-    ),
-  );
+function schema_review_metatag_info(): array {
 
   $weight = 10;
 
+  $info['groups']['schema_review'] = [
+    'label' => t('Schema.org: Review'),
+    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>, Google\'s recommendations at <a href="!google_url">!google_url</a>.', [
+      '!url' => 'http://schema.org/Review',
+      '!google_url' => 'https://developers.google.com/search/docs/data-types/review',
+    ]),
+    'form' => [
+      '#weight' => $weight,
+    ],
+  ];
+
   // Basic tags.
-  $defaults = array(
+  $defaults = [
     'class' => 'SchemaNameBase',
     'group' => 'schema_review',
-    'form' => array(
+    'form' => [
       '#type' => 'textfield',
-    ),
-  );
+    ],
+  ];
 
-  $info['tags']['schema_review.@type'] = array(
+  $info['tags']['schema_review.@type'] = [
     'class' => 'SchemaReviewType',
     'label' => t('@type'),
     'description' => t('The type of review (fixed by standard).'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_review.name'] = array(
+  $info['tags']['schema_review.name'] = [
     'label' => t('name'),
     'description' => t('Name of the review.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_review.itemReviewed'] = array(
+  $info['tags']['schema_review.itemReviewed'] = [
     'class' => 'SchemaThingBase',
     'label' => t('itemReviewed'),
     'description' => t('REQUIRED BY GOOGLE. The item that is being reviewed/rated.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_review.reviewBody'] = array(
+  $info['tags']['schema_review.reviewBody'] = [
     'label' => t('reviewBody'),
     'description' => t('REQUIRED BY GOOGLE. The actual body of the review.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_review.author'] = array(
+  $info['tags']['schema_review.author'] = [
     'class' => 'SchemaPersonOrgBase',
     'label' => t('author'),
     'description' => t('RECOMMENDED BY GOOGLE. The author of this review or rating.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_review.datePublished'] = array(
+  $info['tags']['schema_review.datePublished'] = [
     'class' => 'SchemaDateBase',
     'label' => t('datePublished'),
     'description' => t('REQUIRED BY GOOGLE. Date the review was published.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_review.reviewRating'] = array(
+  $info['tags']['schema_review.reviewRating'] = [
     'class' => 'SchemaRatingBase',
     'label' => t('reviewRating'),
     'description' => t('RECOMMENDED BY GOOGLE. The rating given in this review.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
   return $info;
+
 }
diff --git a/schema_review/schema_review.module b/schema_review/schema_review.module
index a51abac..a3cab4c 100644
--- a/schema_review/schema_review.module
+++ b/schema_review/schema_review.module
@@ -8,8 +8,8 @@
 /**
  * Implements hook_ctools_plugin_api().
  */
-function schema_review_ctools_plugin_api($owner, $api) {
+function schema_review_ctools_plugin_api(string $owner, string $api): ?array {
   if ($owner == 'metatag' && $api == 'metatag') {
-    return array('version' => 1);
+    return ['version' => 1];
   }
 }
diff --git a/schema_review/src/SchemaReviewType.php b/schema_review/src/SchemaReviewType.php
index fad845e..f4f6fb2 100644
--- a/schema_review/src/SchemaReviewType.php
+++ b/schema_review/src/SchemaReviewType.php
@@ -8,7 +8,7 @@ class SchemaReviewType extends SchemaTypeBase {
   /**
    * {@inheritdoc}
    */
-  public static function labels() {
+  public static function labels(): array {
     return [
       'Review',
       'UserReview',
diff --git a/schema_review/tests/SchemaMetatagReviewTest.test b/schema_review/tests/SchemaMetatagReviewTest.test
deleted file mode 100644
index 25fc270..0000000
--- a/schema_review/tests/SchemaMetatagReviewTest.test
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-
-/**
- * Tests that each of the Metatag schema_review tags work correctly.
- */
-class SchemaMetatagReviewTest extends SchemaMetatagTagsTestBase {
-
-  /**
-   * {@inheritdoc}
-   */
-  public static function getInfo() {
-    return array(
-      'name' => 'Schema Metatag: Review',
-      'description' => 'Test the schema_review meta tags.',
-      'group' => 'Schema Metatag',
-      'dependencies' => [
-        'ctools',
-        'token',
-        'metatag',
-        'schema_metatag',
-        'schema_review',
-      ],
-    );
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public function setUp(array $modules = array()) {
-    $modules[] = 'schema_review';
-    parent::setUp($modules);
-
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public $moduleName = 'schema_review';
-
-  /**
-   * {@inheritdoc}
-   */
-  public $schemaTags = [
-    'schema_review.@type' => 'SchemaReviewType',
-    'schema_review.name' => 'SchemaNameBase',
-    'schema_review.itemReviewed' => 'SchemaThingBase',
-    'schema_review.reviewBody' => 'SchemaNameBase',
-    'schema_review.author' => 'SchemaPersonOrgBase',
-    'schema_review.datePublished' => 'SchemaDateBase',
-    'schema_review.reviewRating' => 'SchemaRatingBase',
-  ];
-
-}
diff --git a/schema_service/schema_service.info b/schema_service/schema_service.info
index c3acee9..56d0d89 100644
--- a/schema_service/schema_service.info
+++ b/schema_service/schema_service.info
@@ -5,4 +5,4 @@ core = 7.x
 dependencies[] = schema_metatag
 
 files[] = src/SchemaServiceType.php
-files[] = tests/SchemaMetatagServiceTest.test
+files[] = tests/SchemaServiceMetatagTest.test
diff --git a/schema_service/schema_service.metatag.inc b/schema_service/schema_service.metatag.inc
index f88516d..5806ac2 100644
--- a/schema_service/schema_service.metatag.inc
+++ b/schema_service/schema_service.metatag.inc
@@ -8,46 +8,49 @@
 /**
  * Implements hook_metatag_info().
  */
-function schema_service_metatag_info() {
-  $info['groups']['schema_service'] = array(
-    'label' => t('Schema.org: Service'),
-    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>.', array('!url' => 'http://schema.org/Service')),
-    'form' => array(
-      '#weight' => 10,
-    ),
-  );
+function schema_service_metatag_info(): array {
 
   $weight = 10;
 
+  $info['groups']['schema_service'] = [
+    'label' => t('Schema.org: Service'),
+    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>.', [
+      '!url' => 'http://schema.org/Service',
+    ]),
+    'form' => [
+      '#weight' => $weight,
+    ],
+  ];
+
   // Basic tags.
-  $defaults = array(
+  $defaults = [
     'class' => 'SchemaNameBase',
     'group' => 'schema_service',
-    'form' => array(
+    'form' => [
       '#type' => 'textfield',
-    ),
-  );
+    ],
+  ];
 
-  $info['tags']['schema_service.@type'] = array(
+  $info['tags']['schema_service.@type'] = [
     'class' => 'SchemaServiceType',
     'label' => t('@type'),
     'description' => t('REQUIRED. The type of service (fixed by standard).'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_service.name'] = array(
+  $info['tags']['schema_service.name'] = [
     'label' => t('name'),
     'description' => t('Name of the service.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_service.description'] = array(
+  $info['tags']['schema_service.description'] = [
     'label' => t('description'),
     'description' => t('A description of the item.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_service.image'] = array(
+  $info['tags']['schema_service.image'] = [
     'class' => 'SchemaImageBase',
     'label' => t('image'),
     'description' => t('The primary image for this item.'),
@@ -55,31 +58,32 @@ function schema_service_metatag_info() {
     'url' => TRUE,
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_service.offers'] = array(
+  $info['tags']['schema_service.offers'] = [
     'class' => 'SchemaOfferBase',
     'label' => t('offers'),
     'description' => t('Offers associated with the service.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_service.aggregateRating'] = array(
+  $info['tags']['schema_service.aggregateRating'] = [
     'class' => 'SchemaRatingBase',
     'label' => t('aggregateRating'),
     'description' => '',
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_service.review'] = array(
+  $info['tags']['schema_service.review'] = [
     'class' => 'SchemaReviewBase',
     'label' => t('review'),
     'description' => '',
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
   return $info;
+
 }
diff --git a/schema_service/schema_service.module b/schema_service/schema_service.module
index 46a4c69..8e97957 100644
--- a/schema_service/schema_service.module
+++ b/schema_service/schema_service.module
@@ -8,8 +8,8 @@
 /**
  * Implements hook_ctools_plugin_api().
  */
-function schema_service_ctools_plugin_api($owner, $api) {
+function schema_service_ctools_plugin_api(string $owner, string $api): ?array {
   if ($owner == 'metatag' && $api == 'metatag') {
-    return array('version' => 1);
+    return ['version' => 1];
   }
 }
diff --git a/schema_service/src/SchemaServiceType.php b/schema_service/src/SchemaServiceType.php
index e3d45d6..49f8c40 100644
--- a/schema_service/src/SchemaServiceType.php
+++ b/schema_service/src/SchemaServiceType.php
@@ -8,7 +8,7 @@ class SchemaServiceType extends SchemaTypeBase {
   /**
    * {@inheritdoc}
    */
-  public static function labels() {
+  public static function labels(): array {
     return [
       'Service',
       'BroadcastService',
diff --git a/schema_service/tests/SchemaMetatagServiceTest.test b/schema_service/tests/SchemaMetatagServiceTest.test
deleted file mode 100644
index 8a7e2f0..0000000
--- a/schema_service/tests/SchemaMetatagServiceTest.test
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-
-/**
- * Tests that each of the Metatag schema_service tags work correctly.
- */
-class SchemaMetatagServiceTest extends SchemaMetatagTagsTestBase {
-
-  /**
-   * {@inheritdoc}
-   */
-  public static function getInfo() {
-    return array(
-      'name' => 'Schema Metatag: Service',
-      'description' => 'Test the schema_service meta tags.',
-      'group' => 'Schema Metatag',
-      'dependencies' => [
-        'ctools',
-        'token',
-        'metatag',
-        'schema_metatag',
-        'schema_service',
-      ],
-    );
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public function setUp(array $modules = array()) {
-    $modules[] = 'schema_service';
-    parent::setUp($modules);
-
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public $moduleName = 'schema_service';
-
-  /**
-   * {@inheritdoc}
-   */
-  public $schemaTags = [
-    'schema_service.@type' => 'SchemaServiceType',
-    'schema_service.name' => 'SchemaNameBase',
-    'schema_service.description' => 'SchemaNameBase',
-    'schema_service.image' => 'SchemaImageBase',
-    'schema_service.offers' => 'SchemaOfferBase',
-    'schema_service.aggregateRating' => 'SchemaRatingBase',
-    'schema_service.review' => 'SchemaReviewBase',
-  ];
-
-}
diff --git a/schema_special_announcement/schema_special_announcement.info b/schema_special_announcement/schema_special_announcement.info
index 86136ad..36d2a2c 100644
--- a/schema_special_announcement/schema_special_announcement.info
+++ b/schema_special_announcement/schema_special_announcement.info
@@ -5,4 +5,4 @@ core = 7.x
 dependencies[] = schema_metatag
 
 files[] = src/SchemaSpecialAnnouncementType.php
-files[] = tests/SchemaMetatagSpecialAnnouncementTest.test
+files[] = tests/SchemaSpecialAnnouncementMetatagTest.test
diff --git a/schema_special_announcement/schema_special_announcement.metatag.inc b/schema_special_announcement/schema_special_announcement.metatag.inc
index 9ef3c68..4c5abf9 100644
--- a/schema_special_announcement/schema_special_announcement.metatag.inc
+++ b/schema_special_announcement/schema_special_announcement.metatag.inc
@@ -8,135 +8,138 @@
 /**
  * Implements hook_metatag_info().
  */
-function schema_special_announcement_metatag_info() {
-  $info['groups']['schema_special_announcement'] = array(
-    'label' => t('Schema.org: SpecialAnnouncement'),
-    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>.', array('!url' => 'https://schema.org/SpecialAnnouncement')),
-    'form' => array(
-      '#weight' => 10,
-    ),
-  );
+function schema_special_announcement_metatag_info(): array {
 
   $weight = 10;
 
+  $info['groups']['schema_special_announcement'] = [
+    'label' => t('Schema.org: SpecialAnnouncement'),
+    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>.', [
+      '!url' => 'https://schema.org/SpecialAnnouncement',
+    ]),
+    'form' => [
+      '#weight' => $weight,
+    ],
+  ];
+
   // Basic tags.
-  $defaults = array(
+  $defaults = [
     'class' => 'SchemaNameBase',
     'group' => 'schema_special_announcement',
-    'form' => array(
+    'form' => [
       '#type' => 'textfield',
-    ),
-  );
+    ],
+  ];
 
-  $info['tags']['schema_special_announcement.@type'] = array(
+  $info['tags']['schema_special_announcement.@type'] = [
     'class' => 'SchemaSpecialAnnouncementType',
     'label' => t('@type'),
     'description' => t('REQUIRED. The type of specialAnnouncement.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_special_announcement.name'] = array(
+  $info['tags']['schema_special_announcement.name'] = [
     'label' => t('name'),
     'description' => t("The short title of the COVID-19 announcement. For example: 'Stanford announces COVID-19 testing facility'."),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_special_announcement.category'] = array(
+  $info['tags']['schema_special_announcement.category'] = [
     'label' => t('category'),
     'description' => t('The URL that describes the category for the special announcement. Set the category to the Wikipedia page for COVID-19: https://www.wikidata.org/wiki/Q81068910.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_special_announcement.datePosted'] = array(
+  $info['tags']['schema_special_announcement.datePosted'] = [
     'class' => 'SchemaDateBase',
     'label' => t('datePosted'),
     'description' => t('The date that the COVID-19 announcement was published in ISO-8601 format.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_special_announcement.expires'] = array(
+  $info['tags']['schema_special_announcement.expires'] = [
     'class' => 'SchemaDateBase',
     'label' => t('expires'),
     'description' => t("The date in which the content expires and is no longer useful or available in ISO-8601 format. Don't include this property if you don't know when the content will expire."),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_special_announcement.text'] = array(
+  $info['tags']['schema_special_announcement.text'] = [
     'label' => t('text'),
     'description' => t('You must include either text, or one of the following urls that point to more info about the announcement, depending on the subject matter: diseasePreventionInfo, diseaseSpreadStatistics, gettingTestedInfo, governmentBenefitsInfo, newsUpdatesAndGuidelines, publicTransportClosuresInfo, quarantineGuidelines, schoolClosuresInfo, and/or travelBans.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_special_announcement.diseasePreventionInfo'] = array(
+  $info['tags']['schema_special_announcement.diseasePreventionInfo'] = [
     'label' => t('diseasePreventionInfo'),
     'description' => t("Url to information about disease prevention, if applicable to the announcement."),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_special_announcement.diseaseSpreadStatistics'] = array(
+  $info['tags']['schema_special_announcement.diseaseSpreadStatistics'] = [
     'label' => t('diseaseSpreadStatistics'),
     'description' => t("If applicable to the announcement, url to statistical information about the spread of a disease."),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_special_announcement.gettingTestedInfo'] = array(
+  $info['tags']['schema_special_announcement.gettingTestedInfo'] = [
     'label' => t('gettingTestedInfo'),
     'description' => t("Url to information about getting tested (for a MedicalCondition) in the context of COVID-19, if applicable to the announcement."),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_special_announcement.newsUpdatesAndGuidelines'] = array(
+  $info['tags']['schema_special_announcement.newsUpdatesAndGuidelines'] = [
     'label' => t('newsUpdatesAndGuidelines'),
     'description' => t("Url to a page with news updates and guidelines in the context of COVID-19, if applicable to the announcement. This could be (but is not required to be) the main page containing SpecialAnnouncement markup on a site."),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_special_announcement.publicTransportClosuresInfo'] = array(
+  $info['tags']['schema_special_announcement.publicTransportClosuresInfo'] = [
     'label' => t('publicTransportClosuresInfo'),
     'description' => t("Url to information about public transport closures in the context of COVID-19, if applicable to the announcement."),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_special_announcement.quarantineGuidelines'] = array(
+  $info['tags']['schema_special_announcement.quarantineGuidelines'] = [
     'label' => t('quarantineGuidelines'),
     'description' => t("Url to guidelines about quarantine rules in the context of COVID-19, if applicable to the announcement."),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_special_announcement.schoolClosuresInfo'] = array(
+  $info['tags']['schema_special_announcement.schoolClosuresInfo'] = [
     'label' => t('schoolClosuresInfo'),
     'description' => t("Url to information about school closures in the context of COVID-19, if applicable to the announcement."),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_special_announcement.travelBans'] = array(
+  $info['tags']['schema_special_announcement.travelBans'] = [
     'label' => t('travelBans'),
     'description' => t("Url to information about travel bans in the context of COVID-19, if applicable to the announcement."),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_special_announcement.governmentBenefitsInfo'] = array(
+  $info['tags']['schema_special_announcement.governmentBenefitsInfo'] = [
     'class' => 'SchemaGovernmentServiceBase',
     'label' => t('governmentBenefitsInfo'),
     'description' => t("Information about new government benefits in the context of COVID-19, if applicable to the announcement."),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_special_announcement.announcementLocation'] = array(
+  $info['tags']['schema_special_announcement.announcementLocation'] = [
     'class' => 'SchemaPlaceBase',
     'label' => t('announcementLocation'),
     'description' => t("The specific location that is associated with the SpecialAnnouncement. For example, a specific testing facility or business with special opening hours. For a larger geographic region, like a quarantine of an entire region, we recommend that you use spatialCoverage."),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_special_announcement.spatialCoverage'] = array(
+  $info['tags']['schema_special_announcement.spatialCoverage'] = [
     'class' => 'SchemaPlaceBase',
     'label' => t('spatialCoverage'),
     'description' => t("The geographic region that is the focus of the special announcement, if applicable. For example, the announcement may be about a shelter-in-place that affects multiple regions. If the announcement affects both a region and a specific location (for example, a library closure that serves an entire region), use both spatialCoverage and announcementLocation."),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
   return $info;
 
diff --git a/schema_special_announcement/schema_special_announcement.module b/schema_special_announcement/schema_special_announcement.module
index a68272e..0bcb162 100644
--- a/schema_special_announcement/schema_special_announcement.module
+++ b/schema_special_announcement/schema_special_announcement.module
@@ -8,8 +8,8 @@
 /**
  * Implements hook_ctools_plugin_api().
  */
-function schema_special_announcement_ctools_plugin_api($owner, $api) {
+function schema_special_announcement_ctools_plugin_api(string $owner, string $api): ?array {
   if ($owner == 'metatag' && $api == 'metatag') {
-    return array('version' => 1);
+    return ['version' => 1];
   }
 }
diff --git a/schema_special_announcement/src/SchemaSpecialAnnouncementType.php b/schema_special_announcement/src/SchemaSpecialAnnouncementType.php
index c4a7b5d..0e7e076 100644
--- a/schema_special_announcement/src/SchemaSpecialAnnouncementType.php
+++ b/schema_special_announcement/src/SchemaSpecialAnnouncementType.php
@@ -8,7 +8,7 @@ class SchemaSpecialAnnouncementType extends SchemaTypeBase {
   /**
    * {@inheritdoc}
    */
-  public static function labels() {
+  public static function labels(): array {
     return [
       'SpecialAnnouncement',
     ];
diff --git a/schema_special_announcement/tests/SchemaMetatagSpecialAnnouncementTest.test b/schema_special_announcement/tests/SchemaMetatagSpecialAnnouncementTest.test
deleted file mode 100644
index 0f01acc..0000000
--- a/schema_special_announcement/tests/SchemaMetatagSpecialAnnouncementTest.test
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-
-/**
- * Tests that each of the Metatag schema_service tags work correctly.
- */
-class SchemaMetatagSpecialAnnouncementTest extends SchemaMetatagTagsTestBase {
-
-  /**
-   * {@inheritdoc}
-   */
-  public static function getInfo() {
-    return array(
-      'name' => 'Schema Metatag: Special Announcement',
-      'description' => 'Test the schema_special_announcement meta tags.',
-      'group' => 'Schema Metatag',
-      'dependencies' => [
-        'ctools',
-        'token',
-        'metatag',
-        'schema_metatag',
-        'schema_special_announcement',
-      ],
-    );
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public function setUp(array $modules = array()) {
-    $modules[] = 'schema_special_announcement';
-    parent::setUp($modules);
-
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public $moduleName = 'schema_special_announcement';
-
-  /**
-   * {@inheritdoc}
-   */
-  public $schemaTags = [
-    'schema_special_announcement.@type' => 'SchemaSpecialAnnouncementType',
-    'schema_special_announcement.name' => 'SchemaNameBase',
-    'schema_special_announcement.category' => 'SchemaNameBase',
-    'schema_special_announcement.datePosted' => 'SchemaDateBase',
-    'schema_special_announcement.expires' => 'SchemaDateBase',
-    'schema_special_announcement.text' => 'SchemaNameBase',
-    'schema_special_announcement.diseasePreventionInfo' => 'SchemaNameBase',
-    'schema_special_announcement.diseaseSpreadStatistics' => 'SchemaNameBase',
-    'schema_special_announcement.gettingTestedInfo' => 'SchemaNameBase',
-    'schema_special_announcement.governmentBenefitsInfo' => 'SchemaGovernmentServiceBase',
-    'schema_special_announcement.newsUpdatesAndGuidelines' => 'SchemaNameBase',
-    'schema_special_announcement.publicTransportClosuresInfo' => 'SchemaNameBase',
-    'schema_special_announcement.quarantineGuidelines' => 'SchemaNameBase',
-    'schema_special_announcement.travelBans' => 'SchemaNameBase',
-    'schema_special_announcement.schoolClosuresInfo' => 'SchemaNameBase',
-    'schema_special_announcement.announcementLocation' => 'SchemaPlaceBase',
-    'schema_special_announcement.spatialCoverage' => 'SchemaPlaceBase',
-  ];
-
-}
diff --git a/schema_video_object/schema_video_object.info b/schema_video_object/schema_video_object.info
index bc4e818..aef856a 100644
--- a/schema_video_object/schema_video_object.info
+++ b/schema_video_object/schema_video_object.info
@@ -5,4 +5,4 @@ core = 7.x
 dependencies[] = schema_metatag
 
 files[] = src/SchemaVideoObjectType.php
-files[] = tests/SchemaMetatagVideoObjectTest.test
+files[] = tests/SchemaVideoObjectMetatagTest.test
diff --git a/schema_video_object/schema_video_object.metatag.inc b/schema_video_object/schema_video_object.metatag.inc
index 001328e..2dd7a86 100644
--- a/schema_video_object/schema_video_object.metatag.inc
+++ b/schema_video_object/schema_video_object.metatag.inc
@@ -8,126 +8,131 @@
 /**
  * Implements hook_metatag_info().
  */
-function schema_video_object_metatag_info() {
-  $info['groups']['schema_video_object'] = array(
-    'label' => t('Schema.org: VideoObject'),
-    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>, Google\'s recommendations at <a href="!google_url">!google_url</a>.', ['!url' => 'http://schema.org/VideoObject', '!google_url' => 'https://developers.google.com/search/docs/data-types/video']),
-    'form' => array(
-      '#weight' => 10,
-    ),
-  );
+function schema_video_object_metatag_info(): array {
 
   $weight = 10;
 
+  $info['groups']['schema_video_object'] = [
+    'label' => t('Schema.org: VideoObject'),
+    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>, Google\'s recommendations at <a href="!google_url">!google_url</a>.', [
+      '!url' => 'http://schema.org/VideoObject',
+      '!google_url' => 'https://developers.google.com/search/docs/data-types/video',
+    ]),
+    'form' => [
+      '#weight' => $weight,
+    ],
+  ];
+
   // Basic tags.
-  $defaults = array(
+  $defaults = [
     'class' => 'SchemaNameBase',
     'group' => 'schema_video_object',
-    'form' => array(
+    'form' => [
       '#type' => 'textfield',
-    ),
-  );
+    ],
+  ];
 
-  $info['tags']['schema_video_object.@type'] = array(
+  $info['tags']['schema_video_object.@type'] = [
     'class' => 'SchemaVideoObjectType',
     'label' => t('@type'),
     'description' => t('REQUIRED. The type of video file.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_video_object.@id'] = array(
+  $info['tags']['schema_video_object.@id'] = [
     'label' => t('@id'),
     'description' => t('Globally unique @id, usually a url, used to to link other properties to this object.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_video_object.name'] = array(
+  $info['tags']['schema_video_object.name'] = [
     'label' => t('name'),
     'description' => t('REQUIRED BY GOOGLE. Name of the video.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_video_object.description'] = array(
+  $info['tags']['schema_video_object.description'] = [
     'label' => t('description'),
     'description' => t('REQUIRED BY GOOGLE. A description of the item.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_video_object.uploadDate'] = array(
+  $info['tags']['schema_video_object.uploadDate'] = [
     'class' => 'SchemaDateBase',
     'label' => t('uploadDate'),
     'description' => t('REQUIRED BY GOOGLE. The date the video was first published, in ISO 8601 format.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_video_object.expires'] = array(
+  $info['tags']['schema_video_object.expires'] = [
     'class' => 'SchemaDateBase',
     'label' => t('expires'),
     'description' => t("RECOMMENDED BY GOOGLE. If applicable, the date after which the video will no longer be available, in ISO 8601 format. Don't supply this information if your video does not expire."),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_video_object.thumbnailUrl'] = array(
+  $info['tags']['schema_video_object.thumbnailUrl'] = [
     'class' => 'SchemaImageBase',
     'label' => t('thumbnailUrl'),
     'description' => t('REQUIRED BY GOOGLE. The thumbnail URL of the video.'),
     'image' => TRUE,
     'url' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_video_object.contentUrl'] = array(
+  $info['tags']['schema_video_object.contentUrl'] = [
     'class' => 'SchemaUrlBase',
     'label' => t('contentUrl'),
     'description' => t('RECOMMENDED BY GOOGLE. A URL pointing to the actual video media file.'),
     'image' => TRUE,
     'url' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_video_object.embedUrl'] = array(
+  $info['tags']['schema_video_object.embedUrl'] = [
     'class' => 'SchemaUrlBase',
     'label' => t('embedUrl'),
     'description' => t('RECOMMENDED BY GOOGLE. A URL pointing to a player for the specific video. Usually this is the information in the src element of an <embed> tag.'),
     'image' => TRUE,
     'url' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_video_object.duration'] = array(
+  $info['tags']['schema_video_object.duration'] = [
     'class' => 'SchemaDurationBase',
     'label' => t('duration'),
     'description' => t('RECOMMENDED BY GOOGLE. The video duration in seconds or ISO 8601 format.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_video_object.interactionCount'] = array(
+  $info['tags']['schema_video_object.interactionCount'] = [
     'label' => t('interactionCount'),
     'description' => t('RECOMMENDED BY GOOGLE. The number of times the video has been viewed.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_video_object.transcript'] = array(
+  $info['tags']['schema_video_object.transcript'] = [
     'label' => t('transcript'),
     'description' => t('The transcript of the video.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_video_object.aggregateRating'] = array(
+  $info['tags']['schema_video_object.aggregateRating'] = [
     'class' => 'SchemaRatingBase',
     'label' => t('aggregateRating'),
     'description' => '',
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_video_object.review'] = array(
+  $info['tags']['schema_video_object.review'] = [
     'class' => 'SchemaReviewBase',
     'label' => t('review'),
     'description' => '',
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
   return $info;
+
 }
diff --git a/schema_video_object/schema_video_object.module b/schema_video_object/schema_video_object.module
index fa90143..7654a0f 100644
--- a/schema_video_object/schema_video_object.module
+++ b/schema_video_object/schema_video_object.module
@@ -8,7 +8,7 @@
 /**
  * Implements hook_ctools_plugin_api().
  */
-function schema_video_object_ctools_plugin_api($owner, $api) {
+function schema_video_object_ctools_plugin_api(string $owner, string $api): ?array {
   if ($owner == 'metatag' && $api == 'metatag') {
     return array('version' => 1);
   }
diff --git a/schema_video_object/src/SchemaVideoObjectType.php b/schema_video_object/src/SchemaVideoObjectType.php
index da8344a..eec984a 100644
--- a/schema_video_object/src/SchemaVideoObjectType.php
+++ b/schema_video_object/src/SchemaVideoObjectType.php
@@ -8,7 +8,7 @@ class SchemaVideoObjectType extends SchemaTypeBase {
   /**
    * {@inheritdoc}
    */
-  public static function labels() {
+  public static function labels(): array {
     return [
       'VideoObject',
     ];
diff --git a/schema_video_object/tests/SchemaMetatagVideoObjectTest.test b/schema_video_object/tests/SchemaMetatagVideoObjectTest.test
deleted file mode 100644
index 2938f0e..0000000
--- a/schema_video_object/tests/SchemaMetatagVideoObjectTest.test
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-
-/**
- * Tests that each of the Metatag schema_video_object tags work correctly.
- */
-class SchemaMetatagVideoObjectTest extends SchemaMetatagTagsTestBase {
-
-  /**
-   * {@inheritdoc}
-   */
-  public static function getInfo() {
-    return array(
-      'name' => 'Schema Metatag: VideoObject',
-      'description' => 'Test the schema_video_object meta tags.',
-      'group' => 'Schema Metatag',
-      'dependencies' => [
-        'ctools',
-        'token',
-        'metatag',
-        'schema_metatag',
-        'schema_video_object',
-      ],
-    );
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public function setUp(array $modules = array()) {
-    $modules[] = 'schema_video_object';
-    parent::setUp($modules);
-
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public $moduleName = 'schema_video_object';
-
-  /**
-   * {@inheritdoc}
-   */
-  public $schemaTags = [
-    'schema_video_object.@type' => 'SchemaVideoObjectType',
-    'schema_video_object.@id' => 'SchemaNameBase',
-    'schema_video_object.name' => 'SchemaNameBase',
-    'schema_video_object.description' => 'SchemaNameBase',
-    'schema_video_object.uploadDate' => 'SchemaDateBase',
-    'schema_video_object.expires' => 'SchemaDateBase',
-    'schema_video_object.thumbnailUrl' => 'SchemaImageBase',
-    'schema_video_object.contentUrl' => 'SchemaUrlBase',
-    'schema_video_object.embedUrl' => 'SchemaUrlBase',
-    'schema_video_object.duration' => 'SchemaDurationBase',
-    'schema_video_object.interactionCount' => 'SchemaNameBase',
-    'schema_video_object.transcript' => 'SchemaNameBase',
-    'schema_video_object.aggregateRating' => 'SchemaRatingBase',
-    'schema_video_object.review' => 'SchemaReviewBase',
-  ];
-
-}
diff --git a/schema_web_page/schema_web_page.info b/schema_web_page/schema_web_page.info
index 087defd..c278be1 100644
--- a/schema_web_page/schema_web_page.info
+++ b/schema_web_page/schema_web_page.info
@@ -5,4 +5,4 @@ core = 7.x
 dependencies[] = schema_metatag
 
 files[] = src/SchemaWebPageType.php
-files[] = tests/SchemaMetatagWebPageTest.test
+files[] = tests/SchemaWebPageMetatagTest.test
diff --git a/schema_web_page/schema_web_page.metatag.inc b/schema_web_page/schema_web_page.metatag.inc
index 6b33156..1f61a5a 100644
--- a/schema_web_page/schema_web_page.metatag.inc
+++ b/schema_web_page/schema_web_page.metatag.inc
@@ -8,130 +8,140 @@
 /**
  * Implements hook_metatag_info().
  */
-function schema_web_page_metatag_info() {
-  $info['groups']['schema_web_page'] = array(
-    'label' => t('Schema.org: WebPage'),
-    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>.', array('!url' => 'http://schema.org/WebPage')),
-    'form' => array(
-      '#weight' => 10,
-    ),
-  );
+function schema_web_page_metatag_info(): array {
 
   $weight = 10;
 
+  $info['groups']['schema_web_page'] = [
+    'label' => t('Schema.org: WebPage'),
+    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>.', [
+      '!url' => 'http://schema.org/WebPage',
+    ]),
+    'form' => [
+      '#weight' => $weight,
+    ],
+  ];
+
   // Basic tags.
-  $defaults = array(
+  $defaults = [
     'class' => 'SchemaNameBase',
     'group' => 'schema_web_page',
-    'form' => array(
+    'form' => [
       '#type' => 'textfield',
-    ),
-  );
+    ],
+  ];
 
-  $info['tags']['schema_web_page.@type'] = array(
+  $info['tags']['schema_web_page.@type'] = [
     'class' => 'SchemaWebPageType',
     'label' => t('@type'),
     'description' => t('REQUIRED. The type of web page.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_web_page.@id'] = array(
+  $info['tags']['schema_web_page.@id'] = [
     'label' => t('@id'),
     'description' => t('Globally unique @id, usually a url, used to to link other properties to this object.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_web_page.name'] = array(
+  $info['tags']['schema_web_page.name'] = [
     'label' => t('name'),
     'description' => t('The name of the web page.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_web_page.description'] = array(
+  $info['tags']['schema_web_page.description'] = [
     'label' => t('description'),
     'description' => t('A description of the web page.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_web_page.author'] = array(
+  $info['tags']['schema_web_page.author'] = [
     'class' => 'SchemaPersonOrgBase',
     'label' => t('author'),
     'description' => 'The author of the web page.',
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_web_page.publisher'] = array(
+  $info['tags']['schema_web_page.publisher'] = [
     'class' => 'SchemaPersonOrgBase',
     'label' => t('publisher'),
     'description' => 'The publisher of the web page.',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_web_page.breadcrumb'] = array(
+  $info['tags']['schema_web_page.breadcrumb'] = [
     'class' => 'SchemaItemListElementBreadcrumbBase',
     'label' => t('breadcrumb'),
     'description' => t('The breadcrumb of the web page.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_web_page.url'] = array(
+  $info['tags']['schema_web_page.url'] = [
     'class' => 'SchemaUrlBase',
     'label' => t('url'),
     'description' => t('The url of the web page.'),
     'url' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_web_page.hasPart'] = array(
+  $info['tags']['schema_web_page.hasPart'] = [
     'class' => 'SchemaHasPartBase',
     'label' => t('hasPart'),
-    'description' => t('RECOMMENDED BY GOOGLE. Use for <a href="!url">Paywalled content</a>', ['!url' => 'https://developers.google.com/search/docs/data-types/paywalled-content']),
+    'description' => t('RECOMMENDED BY GOOGLE. Use for <a href="!url">Paywalled content</a>', [
+      '!url' => 'https://developers.google.com/search/docs/data-types/paywalled-content',
+    ]),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_web_page.isAccessibleForFree'] = array(
+  $info['tags']['schema_web_page.isAccessibleForFree'] = [
     'class' => 'SchemaIsAccessibleForFreeBase',
     'label' => t('isAccessibleForFree'),
-    'description' => t('RECOMMENDED BY GOOGLE. Use for <a href="!url">Paywalled content</a>', ['!url' => 'https://developers.google.com/search/docs/data-types/paywalled-content']),
+    'description' => t('RECOMMENDED BY GOOGLE. Use for <a href="!url">Paywalled content</a>', [
+      '!url' => 'https://developers.google.com/search/docs/data-types/paywalled-content',
+    ]),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_web_page.speakable'] = array(
+  $info['tags']['schema_web_page.speakable'] = [
     'class' => 'SchemaSpeakableBase',
     'label' => t('speakable'),
     'description' => t('Speakable property.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_web_page.inLanguage'] = array(
+  $info['tags']['schema_web_page.inLanguage'] = [
     'label' => t('inLanguage'),
     'description' => t('The language of the content.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_web_page.translationOfWork'] = array(
+  $info['tags']['schema_web_page.translationOfWork'] = [
     'class' => 'SchemaIdReferenceBase',
     'label' => t('translationOfWork'),
     'description' => t('The website id that this is a direct translation of.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_web_page.workTranslation'] = array(
+  $info['tags']['schema_web_page.workTranslation'] = [
     'class' => 'SchemaIdReferenceBase',
     'label' => t('workTranslation'),
     'description' => t('Translation(s) of this work'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_web_page.listElementBreadcrumb'] = array(
+  $info['tags']['schema_web_page.listElementBreadcrumb'] = [
     'class' => 'SchemaListElementBreadcrumbBase',
     'label' => t('breadcrumb'),
-    'description' => t('Use for <a href="!url">Breadcrumbs</a>', ['!url' => 'https://developers.google.com/search/docs/data-types/breadcrumb']),
+    'description' => t('Use for <a href="!url">Breadcrumbs</a>', [
+      '!url' => 'https://developers.google.com/search/docs/data-types/breadcrumb',
+    ]),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
   return $info;
+
 }
diff --git a/schema_web_page/schema_web_page.module b/schema_web_page/schema_web_page.module
index d989fdd..e8ed878 100644
--- a/schema_web_page/schema_web_page.module
+++ b/schema_web_page/schema_web_page.module
@@ -8,8 +8,8 @@
 /**
  * Implements hook_ctools_plugin_api().
  */
-function schema_web_page_ctools_plugin_api($owner, $api) {
+function schema_web_page_ctools_plugin_api(string $owner, string $api): ?array {
   if ($owner == 'metatag' && $api == 'metatag') {
-    return array('version' => 1);
+    return ['version' => 1];
   }
 }
diff --git a/schema_web_page/src/SchemaWebPageType.php b/schema_web_page/src/SchemaWebPageType.php
index 41eb5d4..45d2205 100644
--- a/schema_web_page/src/SchemaWebPageType.php
+++ b/schema_web_page/src/SchemaWebPageType.php
@@ -8,7 +8,7 @@ class SchemaWebPageType extends SchemaTypeBase {
   /**
    * {@inheritdoc}
    */
-  public static function labels() {
+  public static function labels(): array {
     return [
       'WebPage',
       'ItemPage',
diff --git a/schema_web_page/tests/SchemaMetatagWebPageTest.test b/schema_web_page/tests/SchemaMetatagWebPageTest.test
deleted file mode 100644
index e00686a..0000000
--- a/schema_web_page/tests/SchemaMetatagWebPageTest.test
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-
-/**
- * Tests that each of the Metatag schema_web_page tags work correctly.
- */
-class SchemaMetatagWebPageTest extends SchemaMetatagTagsTestBase {
-
-  /**
-   * {@inheritdoc}
-   */
-  public static function getInfo() {
-    return array(
-      'name' => 'Schema Metatag: WebPage',
-      'description' => 'Test the schema_web_page meta tags.',
-      'group' => 'Schema Metatag',
-      'dependencies' => [
-        'ctools',
-        'token',
-        'metatag',
-        'schema_metatag',
-        'schema_web_page',
-      ],
-    );
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public function setUp(array $modules = array()) {
-    $modules[] = 'schema_web_page';
-    parent::setUp($modules);
-
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public $moduleName = 'schema_web_page';
-
-  /**
-   * {@inheritdoc}
-   */
-  public $schemaTags = [
-    'schema_web_page.@type' => 'SchemaWebPageType',
-    'schema_web_page.@id' => 'SchemaNameBase',
-    'schema_web_page.name' => 'SchemaNameBase',
-    'schema_web_page.description' => 'SchemaNameBase',
-    'schema_web_page.author' => 'SchemaPersonOrgBase',
-    'schema_web_page.publisher' => 'SchemaPersonOrgBase',
-    'schema_web_page.url' => 'SchemaUrlBase',
-    'schema_web_page.hasPart' => 'SchemaHasPartBase',
-    'schema_web_page.isAccessibleForFree' => 'SchemaIsAccessibleForFreeBase',
-    'schema_web_page.speakable' => 'SchemaSpeakableBase',
-    'schema_web_page.inLanguage' => 'SchemaNameBase',
-    'schema_web_page.translationOfWork' => 'SchemaIdReferenceBase',
-    'schema_web_page.workTranslation' => 'SchemaIdReferenceBase',
-  ];
-
-}
diff --git a/schema_web_site/schema_web_site.info b/schema_web_site/schema_web_site.info
index a5159de..865830d 100644
--- a/schema_web_site/schema_web_site.info
+++ b/schema_web_site/schema_web_site.info
@@ -6,4 +6,4 @@ dependencies[] = schema_metatag
 
 files[] = src/SchemaWebSiteType.php
 files[] = src/SchemaWebSitePotentialAction.php
-files[] = tests/SchemaMetatagWebSiteTest.test
+files[] = tests/SchemaWebSiteMetatagTest.test
diff --git a/schema_web_site/schema_web_site.metatag.inc b/schema_web_site/schema_web_site.metatag.inc
index 9d076fd..96488d1 100644
--- a/schema_web_site/schema_web_site.metatag.inc
+++ b/schema_web_site/schema_web_site.metatag.inc
@@ -8,98 +8,102 @@
 /**
  * Implements hook_metatag_info().
  */
-function schema_web_site_metatag_info() {
-  $info['groups']['schema_web_site'] = array(
-    'label' => t('Schema.org: WebSite'),
-    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>.', array('!url' => 'http://schema.org/WebSite')),
-    'form' => array(
-      '#weight' => 10,
-    ),
-  );
+function schema_web_site_metatag_info(): array {
 
   $weight = 10;
 
+  $info['groups']['schema_web_site'] = [
+    'label' => t('Schema.org: WebSite'),
+    'description' => t('See Schema.org definitions for this Schema type at <a href="!url">!url</a>.', [
+      '!url' => 'http://schema.org/WebSite',
+    ]),
+    'form' => [
+      '#weight' => $weight,
+    ],
+  ];
+
   // Basic tags.
-  $defaults = array(
+  $defaults = [
     'class' => 'SchemaNameBase',
     'group' => 'schema_web_site',
-    'form' => array(
+    'form' => [
       '#type' => 'textfield',
-    ),
-  );
+    ],
+  ];
 
-  $info['tags']['schema_web_site.@type'] = array(
+  $info['tags']['schema_web_site.@type'] = [
     'class' => 'SchemaWebSiteType',
     'label' => t('@type'),
     'description' => t('REQUIRED. The type of web site.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_web_site.@id'] = array(
+  $info['tags']['schema_web_site.@id'] = [
     'label' => t('@id'),
     'description' => t('Globally unique @id, usually a url, used to to link other properties to this object.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_web_site.name'] = array(
+  $info['tags']['schema_web_site.name'] = [
     'label' => t('name'),
     'description' => t('The name of the web site.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_web_site.url'] = array(
+  $info['tags']['schema_web_site.url'] = [
     'class' => 'SchemaUrlBase',
     'label' => t('url'),
     'description' => t('The url of the web site.'),
     'url' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_web_site.sameAs'] = array(
+  $info['tags']['schema_web_site.sameAs'] = [
     'class' => 'SchemaUrlBase',
     'label' => t('sameAs'),
     'description' => t('Url linked to the web site, such as wikipedia page or social profiles.'),
     'multiple' => TRUE,
     'url' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_web_site.publisher'] = array(
+  $info['tags']['schema_web_site.publisher'] = [
     'class' => 'SchemaPersonOrgBase',
     'label' => t('publisher'),
     'description' => t('The publisher of the web site.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_web_site.potentialAction'] = array(
+  $info['tags']['schema_web_site.potentialAction'] = [
     'class' => 'SchemaWebSitePotentialAction',
     'label' => t('potentialAction'),
     'description' => t('Potential action that can be accomplished on this site, like SearchAction.'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_web_site.inLanguage'] = array(
+  $info['tags']['schema_web_site.inLanguage'] = [
     'label' => t('inLanguage'),
     'description' => t('The language of the content.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_web_site.translationOfWork'] = array(
+  $info['tags']['schema_web_site.translationOfWork'] = [
     'class' => 'SchemaIdReferenceBase',
     'label' => t('translationOfWork'),
     'description' => t('The website id that this is a direct translation of.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_web_site.workTranslation'] = array(
+  $info['tags']['schema_web_site.workTranslation'] = [
     'class' => 'SchemaIdReferenceBase',
     'label' => t('workTranslation'),
     'description' => t('Translation(s) of this work'),
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
   return $info;
+
 }
diff --git a/schema_web_site/schema_web_site.module b/schema_web_site/schema_web_site.module
index 85520b3..760d40f 100644
--- a/schema_web_site/schema_web_site.module
+++ b/schema_web_site/schema_web_site.module
@@ -8,8 +8,8 @@
 /**
  * Implements hook_ctools_plugin_api().
  */
-function schema_web_site_ctools_plugin_api($owner, $api) {
+function schema_web_site_ctools_plugin_api(string $owner, string $api): ?array {
   if ($owner == 'metatag' && $api == 'metatag') {
-    return array('version' => 1);
+    return ['version' => 1];
   }
 }
diff --git a/schema_web_site/src/SchemaWebSitePotentialAction.php b/schema_web_site/src/SchemaWebSitePotentialAction.php
index 17a9436..1f7ee67 100644
--- a/schema_web_site/src/SchemaWebSitePotentialAction.php
+++ b/schema_web_site/src/SchemaWebSitePotentialAction.php
@@ -8,7 +8,7 @@ class SchemaWebSitePotentialAction extends SchemaActionBase {
   /**
    * Generate a form element for this meta tag.
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
 
     $this->actions = ['Action', 'SearchAction'];
 
diff --git a/schema_web_site/src/SchemaWebSiteType.php b/schema_web_site/src/SchemaWebSiteType.php
index 6335192..d6a3503 100644
--- a/schema_web_site/src/SchemaWebSiteType.php
+++ b/schema_web_site/src/SchemaWebSiteType.php
@@ -8,7 +8,7 @@ class SchemaWebSiteType extends SchemaTypeBase {
   /**
    * {@inheritdoc}
    */
-  public static function labels() {
+  public static function labels(): array {
     return [
       'WebSite',
     ];
diff --git a/schema_web_site/tests/SchemaMetatagWebSiteTest.test b/schema_web_site/tests/SchemaMetatagWebSiteTest.test
deleted file mode 100644
index d5ef949..0000000
--- a/schema_web_site/tests/SchemaMetatagWebSiteTest.test
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-
-/**
- * Tests that each of the Metatag schema_web_site tags work correctly.
- */
-class SchemaMetatagWebSiteTest extends SchemaMetatagTagsTestBase {
-
-  /**
-   * {@inheritdoc}
-   */
-  public static function getInfo() {
-    return array(
-      'name' => 'Schema Metatag: WebSite',
-      'description' => 'Test the schema_web_site meta tags.',
-      'group' => 'Schema Metatag',
-      'dependencies' => [
-        'ctools',
-        'token',
-        'metatag',
-        'schema_metatag',
-        'schema_web_site',
-      ],
-    );
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public function setUp(array $modules = array()) {
-    $modules[] = 'schema_web_site';
-    parent::setUp($modules);
-
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public $moduleName = 'schema_web_site';
-
-  /**
-   * {@inheritdoc}
-   */
-  public $schemaTags = [
-    'schema_web_site.@type' => 'SchemaWebSiteType',
-    'schema_web_site.@id' => 'SchemaNameBase',
-    'schema_web_site.name' => 'SchemaNameBase',
-    'schema_web_site.url' => 'SchemaUrlBase',
-    'schema_web_site.sameAs' => 'SchemaUrlBase',
-    'schema_web_site.publisher' => 'SchemaPersonOrgBase',
-    'schema_web_site.inLanguage' => 'SchemaNameBase',
-    'schema_web_site.translationOfWork' => 'SchemaIdReferenceBase',
-    'schema_web_site.workTranslation' => 'SchemaIdReferenceBase',
-  ];
-
-}
diff --git a/src/SchemaActionBase.php b/src/SchemaActionBase.php
index ce49759..78fee9b 100644
--- a/src/SchemaActionBase.php
+++ b/src/SchemaActionBase.php
@@ -17,7 +17,7 @@ class SchemaActionBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public function __construct(array $info, array $data = NULL) {
+  public function __construct(array $info, ?array $data = NULL) {
     parent::__construct($info, $data);
     $this->actions = [];
   }
@@ -25,7 +25,7 @@ class SchemaActionBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
 
     $value = $this->schemaMetatagManager()->unserialize($this->value());
 
@@ -53,7 +53,7 @@ class SchemaActionBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function testValue() {
+  public static function testValue(): array {
     $items = [];
     $keys = [
       '@type',
@@ -83,7 +83,7 @@ class SchemaActionBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function processedTestValue($items) {
+  public static function processedTestValue($items): array {
     foreach ($items as $key => $value) {
       switch ($key) {
         case 'target':
diff --git a/src/SchemaActionTrait.php b/src/SchemaActionTrait.php
index fcc63a3..ee17ee6 100644
--- a/src/SchemaActionTrait.php
+++ b/src/SchemaActionTrait.php
@@ -34,7 +34,7 @@ trait SchemaActionTrait {
    * @return array
    *   The form element.
    */
-  public function actionForm(array $input_values) {
+  public function actionForm(array $input_values): array {
 
     $all_types = static::getAllActions(TRUE);
     $all_options = array_combine($all_types, $all_types);
@@ -58,7 +58,10 @@ trait SchemaActionTrait {
     $visibility = ['invisible' => [$selector => ['value' => '']]];
     $selector2 = $this->SchemaMetatagManager()->altSelector($selector);
     $visibility2 = ['invisible' => [$selector2 => ['value' => '']]];
-    $visibility['invisible'] = [$visibility['invisible'], $visibility2['invisible']];
+    $visibility['invisible'] = [
+      $visibility['invisible'],
+      $visibility2['invisible'],
+    ];
 
     $form['#type'] = 'fieldset';
     $form['#title'] = $input_values['title'];
@@ -165,13 +168,13 @@ trait SchemaActionTrait {
   /**
    * Get an array of all actions, grouped by action type.
    *
-   * @param string $flattened
+   * @param bool $flattened
    *   Set TRUE to return a single-level array of values.
    *
    * @return array
    *   An array of all actions. If not $flattened, the list is grouped by type.
    */
-  public static function getAllActions($flattened = FALSE) {
+  public static function getAllActions(bool $flattened = FALSE): array {
     $list = $flattened ? ['Action'] : [];
     $types = static::actionTypes();
     foreach ($types as $type) {
@@ -191,10 +194,10 @@ trait SchemaActionTrait {
    * @param string $action
    *   The action to assess.
    *
-   * @return string
+   * @return string|false
    *   The action type for the specified action.
    */
-  public static function getActionType($action) {
+  public static function getActionType(string $action) {
     $actions = static::getAllActions();
     foreach ($actions as $type => $values) {
       if (in_array($action, $values)) {
@@ -238,7 +241,7 @@ trait SchemaActionTrait {
    * @return array
    *   An array of all the actions for the specified type.
    */
-  public static function actionObjects($action_type) {
+  public static function actionObjects(string $action_type): array {
     switch ($action_type) {
 
       case 'MoveAction':
@@ -424,7 +427,7 @@ trait SchemaActionTrait {
    * @return array
    *   An array of all the unique properties for that type.
    */
-  public static function actionProperties($action_type) {
+  public static function actionProperties(string $action_type): array {
     switch ($action_type) {
 
       case 'MoveAction':
diff --git a/src/SchemaAddressBase.php b/src/SchemaAddressBase.php
index fdc19c7..62228ea 100644
--- a/src/SchemaAddressBase.php
+++ b/src/SchemaAddressBase.php
@@ -10,7 +10,7 @@ class SchemaAddressBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
 
     $value = $this->schemaMetatagManager()->unserialize($this->value());
     $input_values = [
@@ -36,7 +36,7 @@ class SchemaAddressBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function testValue() {
+  public static function testValue(): array {
     $items = [];
     $keys = [
       '@type',
diff --git a/src/SchemaAddressTrait.php b/src/SchemaAddressTrait.php
index 435a2e7..540c19c 100644
--- a/src/SchemaAddressTrait.php
+++ b/src/SchemaAddressTrait.php
@@ -18,7 +18,7 @@ trait SchemaAddressTrait {
   /**
    * The form element.
    */
-  public function postalAddressForm($input_values) {
+  public function postalAddressForm(array $input_values): array {
 
     $input_values += $this->schemaMetatagManager()->defaultInputValues();
     $value = $input_values['value'];
@@ -28,7 +28,10 @@ trait SchemaAddressTrait {
     $visibility = ['invisible' => [$selector => ['value' => '']]];
     $selector2 = $this->schemaMetatagManager()->altSelector($selector);
     $visibility2 = ['invisible' => [$selector2 => ['value' => '']]];
-    $visibility['invisible'] = [$visibility['invisible'], $visibility2['invisible']];
+    $visibility['invisible'] = [
+      $visibility['invisible'],
+      $visibility2['invisible'],
+    ];
 
     $form['#type'] = 'fieldset';
     $form['#title'] = $input_values['title'];
diff --git a/src/SchemaAnswerBase.php b/src/SchemaAnswerBase.php
index 0c39075..8cc74ba 100644
--- a/src/SchemaAnswerBase.php
+++ b/src/SchemaAnswerBase.php
@@ -10,7 +10,7 @@ class SchemaAnswerBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
 
     $value = $this->schemaMetatagManager()->unserialize($this->value());
 
@@ -37,7 +37,7 @@ class SchemaAnswerBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function testValue() {
+  public static function testValue(): array {
     $items = [];
     $keys = [
       '@type',
@@ -69,7 +69,7 @@ class SchemaAnswerBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function processedTestValue($items) {
+  public static function processedTestValue($items): array {
     foreach ($items as $key => $value) {
       switch ($key) {
         case 'author':
diff --git a/src/SchemaAnswerTrait.php b/src/SchemaAnswerTrait.php
index 4f166ab..49d66e9 100644
--- a/src/SchemaAnswerTrait.php
+++ b/src/SchemaAnswerTrait.php
@@ -20,7 +20,7 @@ trait SchemaAnswerTrait {
   /**
    * The form element.
    */
-  public function answerForm($input_values) {
+  public function answerForm(array $input_values): array {
 
     $input_values += $this->schemaMetatagManager()->defaultInputValues();
     $value = $input_values['value'];
@@ -31,7 +31,10 @@ trait SchemaAnswerTrait {
     $visibility = ['invisible' => [$selector => ['value' => '']]];
     $selector2 = $this->schemaMetatagManager()->altSelector($selector);
     $visibility2 = ['invisible' => [$selector2 => ['value' => '']]];
-    $visibility['invisible'] = [$visibility['invisible'], $visibility2['invisible']];
+    $visibility['invisible'] = [
+      $visibility['invisible'],
+      $visibility2['invisible'],
+    ];
 
     $form['#type'] = 'fieldset';
     $form['#title'] = $input_values['title'];
diff --git a/src/SchemaBrandBase.php b/src/SchemaBrandBase.php
index 89ba809..33edbef 100644
--- a/src/SchemaBrandBase.php
+++ b/src/SchemaBrandBase.php
@@ -10,7 +10,7 @@ class SchemaBrandBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
 
     $value = $this->schemaMetatagManager()->unserialize($this->value());
     $input_values = [
@@ -36,7 +36,7 @@ class SchemaBrandBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function testValue() {
+  public static function testValue(): array {
     $items = [];
     $keys = [
       '@type',
diff --git a/src/SchemaBrandTrait.php b/src/SchemaBrandTrait.php
index 24a4e25..3afed2e 100644
--- a/src/SchemaBrandTrait.php
+++ b/src/SchemaBrandTrait.php
@@ -18,7 +18,7 @@ trait SchemaBrandTrait {
   /**
    * The form elements.
    */
-  public function brandForm($input_values) {
+  public function brandForm(array $input_values): array {
 
     $input_values += $this->schemaMetatagManager()->defaultInputValues();
     $value = $input_values['value'];
@@ -28,7 +28,10 @@ trait SchemaBrandTrait {
     $visibility = ['invisible' => [$selector => ['value' => '']]];
     $selector2 = $this->schemaMetatagManager()->altSelector($selector);
     $visibility2 = ['invisible' => [$selector2 => ['value' => '']]];
-    $visibility['invisible'] = [$visibility['invisible'], $visibility2['invisible']];
+    $visibility['invisible'] = [
+      $visibility['invisible'],
+      $visibility2['invisible'],
+    ];
 
     $form['#type'] = 'fieldset';
     $form['#title'] = $input_values['title'];
diff --git a/src/SchemaContactPointBase.php b/src/SchemaContactPointBase.php
index 97b8c24..2485bbe 100644
--- a/src/SchemaContactPointBase.php
+++ b/src/SchemaContactPointBase.php
@@ -10,7 +10,7 @@ class SchemaContactPointBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
 
     $value = $this->schemaMetatagManager()->unserialize($this->value());
 
@@ -37,7 +37,7 @@ class SchemaContactPointBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function testValue() {
+  public static function testValue(): array {
     $items = [];
     $keys = [
       '@type',
diff --git a/src/SchemaContactPointTrait.php b/src/SchemaContactPointTrait.php
index ac72128..334d03b 100644
--- a/src/SchemaContactPointTrait.php
+++ b/src/SchemaContactPointTrait.php
@@ -26,7 +26,7 @@ trait SchemaContactPointTrait {
    * @return array
    *   A form element.
    */
-  public function contactPointForm(array $input_values) {
+  public function contactPointForm(array $input_values): array {
 
     $input_values += $this->schemaMetatagManager()->defaultInputValues();
     $value = $input_values['value'];
@@ -37,7 +37,10 @@ trait SchemaContactPointTrait {
     $visibility = ['invisible' => [$selector => ['value' => '']]];
     $selector2 = $this->schemaMetatagManager()->altSelector($selector);
     $visibility2 = ['invisible' => [$selector2 => ['value' => '']]];
-    $visibility['invisible'] = [$visibility['invisible'], $visibility2['invisible']];
+    $visibility['invisible'] = [
+      $visibility['invisible'],
+      $visibility2['invisible'],
+    ];
 
     $form['#type'] = 'fieldset';
     $form['#title'] = $input_values['title'];
diff --git a/src/SchemaCountryBase.php b/src/SchemaCountryBase.php
index b0d76e9..1f6247a 100644
--- a/src/SchemaCountryBase.php
+++ b/src/SchemaCountryBase.php
@@ -10,7 +10,7 @@ class SchemaCountryBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
 
     $value = $this->schemaMetatagManager()->unserialize($this->value());
 
@@ -37,7 +37,7 @@ class SchemaCountryBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function testValue() {
+  public static function testValue(): array {
     $items = [];
     $keys = [
       '@type',
@@ -65,7 +65,7 @@ class SchemaCountryBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function processedTestValue($items) {
+  public static function processedTestValue($items): array {
     foreach ($items as $key => $value) {
       switch ($key) {
         case 'name':
diff --git a/src/SchemaCountryTrait.php b/src/SchemaCountryTrait.php
index 06515f7..5fd28e8 100644
--- a/src/SchemaCountryTrait.php
+++ b/src/SchemaCountryTrait.php
@@ -18,7 +18,7 @@ trait SchemaCountryTrait {
   /**
    * The form element.
    */
-  public function countryForm($input_values) {
+  public function countryForm(array $input_values): array {
 
     $input_values += $this->schemaMetatagManager()->defaultInputValues();
     $value = $input_values['value'];
@@ -28,7 +28,10 @@ trait SchemaCountryTrait {
     $visibility = ['invisible' => [$selector => ['value' => '']]];
     $selector2 = $this->schemaMetatagManager()->altSelector($selector);
     $visibility2 = ['invisible' => [$selector2 => ['value' => '']]];
-    $visibility['invisible'] = [$visibility['invisible'], $visibility2['invisible']];
+    $visibility['invisible'] = [
+      $visibility['invisible'],
+      $visibility2['invisible'],
+    ];
 
     $form['#type'] = 'fieldset';
     $form['#title'] = $input_values['title'];
diff --git a/src/SchemaCreativeWorkBase.php b/src/SchemaCreativeWorkBase.php
index fc5211e..bcd1edf 100644
--- a/src/SchemaCreativeWorkBase.php
+++ b/src/SchemaCreativeWorkBase.php
@@ -10,7 +10,7 @@ class SchemaCreativeWorkBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
 
     $value = $this->schemaMetatagManager()->unserialize($this->value());
 
@@ -37,7 +37,7 @@ class SchemaCreativeWorkBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function testValue() {
+  public static function testValue(): array {
     $items = [];
     $keys = [
       '@type',
@@ -76,7 +76,7 @@ class SchemaCreativeWorkBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function processedTestValue($items) {
+  public static function processedTestValue($items): array {
     foreach ($items as $key => $value) {
       switch ($key) {
         case 'author':
diff --git a/src/SchemaCreativeWorkTrait.php b/src/SchemaCreativeWorkTrait.php
index c8b2270..d0726c6 100644
--- a/src/SchemaCreativeWorkTrait.php
+++ b/src/SchemaCreativeWorkTrait.php
@@ -29,7 +29,7 @@ trait SchemaCreativeWorkTrait {
    * @return array
    *   The form element.
    */
-  public function creativeWorkForm(array $input_values) {
+  public function creativeWorkForm(array $input_values): array {
 
     $input_values += $this->schemaMetatagManager()->defaultInputValues();
     $value = $input_values['value'];
@@ -40,7 +40,10 @@ trait SchemaCreativeWorkTrait {
 
     $visibility = ['invisible' => [$selector => ['value' => '']]];
     $visibility2 = ['invisible' => [$selector2 => ['value' => '']]];
-    $visibility['invisible'] = [$visibility['invisible'], $visibility2['invisible']];
+    $visibility['invisible'] = [
+      $visibility['invisible'],
+      $visibility2['invisible'],
+    ];
 
     $form['#type'] = 'fieldset';
     $form['#title'] = $input_values['title'];
@@ -102,9 +105,14 @@ trait SchemaCreativeWorkTrait {
       // Properties specific to an object type appear only for that type.
       $properties = static::creativeWorkProperties($type);
       foreach ($properties as $key => $property) {
-        $property_visibility = ['visible' => [$selector => ['value' => $type]]];
+        $property_visibility = [
+          'visible' => [$selector => ['value' => $type]],
+        ];
         $property_visibility2 = ['visible' => [$selector2 => ['value' => $type]]];
-        $property_visibility['visible'] = [$property_visibility['visible'], $property_visibility2['visible']];
+        $property_visibility['visible'] = [
+          $property_visibility['visible'],
+          $property_visibility2['visible'],
+        ];
 
         if (empty($property['form'])) {
           $form[$key] = [
@@ -143,7 +151,7 @@ trait SchemaCreativeWorkTrait {
    * @return array
    *   An array of all possible object types.
    */
-  public static function creativeWorkObjects() {
+  public static function creativeWorkObjects(): array {
     return [
       'CreativeWork',
       'Article',
@@ -177,7 +185,7 @@ trait SchemaCreativeWorkTrait {
    * @return array
    *   An array of all the unique properties for that type.
    */
-  public static function creativeWorkProperties($object_type) {
+  public static function creativeWorkProperties(string $object_type): array {
     switch ($object_type) {
 
       case 'Book':
diff --git a/src/SchemaDateBase.php b/src/SchemaDateBase.php
index 2daf42e..27e825e 100644
--- a/src/SchemaDateBase.php
+++ b/src/SchemaDateBase.php
@@ -8,7 +8,7 @@ class SchemaDateBase extends SchemaNameBase {
   /**
    * Generate a form element for this meta tag.
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
     $form = parent::getForm($options);
     $form['value']['#description'] .= ' ' . $this->t('Use a token like [node:created:html_datetime].');
     return $form;
diff --git a/src/SchemaEntryPointBase.php b/src/SchemaEntryPointBase.php
index 7c8f3e4..1c54211 100644
--- a/src/SchemaEntryPointBase.php
+++ b/src/SchemaEntryPointBase.php
@@ -10,7 +10,7 @@ class SchemaEntryPointBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
 
     $value = $this->schemaMetatagManager()->unserialize($this->value());
 
@@ -37,7 +37,7 @@ class SchemaEntryPointBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function testValue() {
+  public static function testValue(): array {
     $items = [];
     $keys = [
       '@type',
@@ -68,7 +68,7 @@ class SchemaEntryPointBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function processedTestValue($items) {
+  public static function processedTestValue($items): array {
     foreach ($items as $key => $value) {
       switch ($key) {
         case 'urlTemplate':
diff --git a/src/SchemaEntryPointTrait.php b/src/SchemaEntryPointTrait.php
index 20225b2..4a57481 100644
--- a/src/SchemaEntryPointTrait.php
+++ b/src/SchemaEntryPointTrait.php
@@ -18,7 +18,7 @@ trait SchemaEntryPointTrait {
   /**
    * The form element.
    */
-  public function entryPointForm($input_values) {
+  public function entryPointForm(array $input_values): array {
 
     $input_values += $this->schemaMetatagManager()->defaultInputValues();
     $value = $input_values['value'];
@@ -28,7 +28,10 @@ trait SchemaEntryPointTrait {
     $visibility = ['invisible' => [$selector => ['value' => '']]];
     $selector2 = $this->schemaMetatagManager()->altSelector($selector);
     $visibility2 = ['invisible' => [$selector2 => ['value' => '']]];
-    $visibility['invisible'] = [$visibility['invisible'], $visibility2['invisible']];
+    $visibility['invisible'] = [
+      $visibility['invisible'],
+      $visibility2['invisible'],
+    ];
 
     $form['#type'] = 'fieldset';
     $form['#title'] = $input_values['title'];
diff --git a/src/SchemaEventBase.php b/src/SchemaEventBase.php
index 183082f..ea4ad15 100644
--- a/src/SchemaEventBase.php
+++ b/src/SchemaEventBase.php
@@ -10,7 +10,7 @@ class SchemaEventBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
 
     $value = $this->schemaMetatagManager()->unserialize($this->value());
 
@@ -37,7 +37,7 @@ class SchemaEventBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function testValue() {
+  public static function testValue(): array {
     $items = [];
     $keys = [
       '@type',
@@ -69,7 +69,7 @@ class SchemaEventBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function processedTestValue($items) {
+  public static function processedTestValue($items): array {
     foreach ($items as $key => $value) {
       switch ($key) {
         case 'location':
diff --git a/src/SchemaEventTrait.php b/src/SchemaEventTrait.php
index c097e0c..5f210be 100644
--- a/src/SchemaEventTrait.php
+++ b/src/SchemaEventTrait.php
@@ -20,7 +20,7 @@ trait SchemaEventTrait {
   /**
    * The form element.
    */
-  public function eventForm($input_values) {
+  public function eventForm(array $input_values): array {
 
     $input_values += $this->schemaMetatagManager()->defaultInputValues();
     $value = $input_values['value'];
@@ -31,7 +31,10 @@ trait SchemaEventTrait {
     $visibility = ['invisible' => [$selector => ['value' => '']]];
     $selector2 = $this->schemaMetatagManager()->altSelector($selector);
     $visibility2 = ['invisible' => [$selector2 => ['value' => '']]];
-    $visibility['invisible'] = [$visibility['invisible'], $visibility2['invisible']];
+    $visibility['invisible'] = [
+      $visibility['invisible'],
+      $visibility2['invisible'],
+    ];
 
     $form['#type'] = 'fieldset';
     $form['#title'] = $input_values['title'];
diff --git a/src/SchemaGeoBase.php b/src/SchemaGeoBase.php
index 26d2b2c..9669fee 100644
--- a/src/SchemaGeoBase.php
+++ b/src/SchemaGeoBase.php
@@ -10,7 +10,7 @@ class SchemaGeoBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
 
     $value = $this->schemaMetatagManager()->unserialize($this->value());
 
@@ -37,7 +37,7 @@ class SchemaGeoBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function testValue() {
+  public static function testValue(): array {
     $items = [];
     $keys = [
       '@type',
diff --git a/src/SchemaGeoTrait.php b/src/SchemaGeoTrait.php
index 43aff34..32aca0e 100644
--- a/src/SchemaGeoTrait.php
+++ b/src/SchemaGeoTrait.php
@@ -18,7 +18,7 @@ trait SchemaGeoTrait {
   /**
    * The form element.
    */
-  public function geoForm($input_values) {
+  public function geoForm(array $input_values): array {
 
     $input_values += $this->schemaMetatagManager()->defaultInputValues();
     $value = $input_values['value'];
@@ -28,7 +28,10 @@ trait SchemaGeoTrait {
     $visibility = ['invisible' => [$selector => ['value' => '']]];
     $selector2 = $this->schemaMetatagManager()->altSelector($selector);
     $visibility2 = ['invisible' => [$selector2 => ['value' => '']]];
-    $visibility['invisible'] = [$visibility['invisible'], $visibility2['invisible']];
+    $visibility['invisible'] = [
+      $visibility['invisible'],
+      $visibility2['invisible'],
+    ];
 
     $form['#type'] = 'fieldset';
     $form['#title'] = $input_values['title'];
diff --git a/src/SchemaGovernmentServiceBase.php b/src/SchemaGovernmentServiceBase.php
index 128da3a..6fe41c6 100644
--- a/src/SchemaGovernmentServiceBase.php
+++ b/src/SchemaGovernmentServiceBase.php
@@ -17,7 +17,7 @@ class SchemaGovernmentServiceBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
 
     $value = $this->schemaMetatagManager()->unserialize($this->value());
 
@@ -45,7 +45,7 @@ class SchemaGovernmentServiceBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function testValue() {
+  public static function testValue(): array {
     $items = [];
     $keys = [
       '@type',
@@ -77,7 +77,7 @@ class SchemaGovernmentServiceBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function processedTestValue($items) {
+  public static function processedTestValue($items): array {
     foreach ($items as $key => $value) {
       switch ($key) {
         case 'provider':
diff --git a/src/SchemaGovernmentServiceTrait.php b/src/SchemaGovernmentServiceTrait.php
index 66db917..f23b492 100644
--- a/src/SchemaGovernmentServiceTrait.php
+++ b/src/SchemaGovernmentServiceTrait.php
@@ -20,7 +20,7 @@ trait SchemaGovernmentServiceTrait {
   /**
    * The form element.
    */
-  public function governmentServiceForm($input_values) {
+  public function governmentServiceForm(array $input_values): array {
 
     $input_values += $this->schemaMetatagManager()->defaultInputValues();
     $value = $input_values['value'];
@@ -31,7 +31,10 @@ trait SchemaGovernmentServiceTrait {
     $visibility = ['invisible' => [$selector => ['value' => '']]];
     $selector2 = $this->schemaMetatagManager()->altSelector($selector);
     $visibility2 = ['invisible' => [$selector2 => ['value' => '']]];
-    $visibility['invisible'] = [$visibility['invisible'], $visibility2['invisible']];
+    $visibility['invisible'] = [
+      $visibility['invisible'],
+      $visibility2['invisible'],
+    ];
 
     $form['#type'] = 'fieldset';
     $form['#title'] = $input_values['title'];
diff --git a/src/SchemaHasPartBase.php b/src/SchemaHasPartBase.php
index 61c3111..3d04192 100644
--- a/src/SchemaHasPartBase.php
+++ b/src/SchemaHasPartBase.php
@@ -14,7 +14,7 @@ class SchemaHasPartBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
 
     $value = $this->schemaMetatagManager()->unserialize($this->value());
 
@@ -41,7 +41,7 @@ class SchemaHasPartBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function testValue() {
+  public static function testValue(): array {
     $items = [];
     $keys = [
       '@type',
diff --git a/src/SchemaHasPartTrait.php b/src/SchemaHasPartTrait.php
index 048f504..2748e93 100644
--- a/src/SchemaHasPartTrait.php
+++ b/src/SchemaHasPartTrait.php
@@ -26,7 +26,7 @@ trait SchemaHasPartTrait {
    * @return array
    *   The form element.
    */
-  public function hasPartForm(array $input_values) {
+  public function hasPartForm(array $input_values): array {
 
     $input_values += $this->schemaMetatagManager()->defaultInputValues();
     $value = $input_values['value'];
@@ -36,7 +36,10 @@ trait SchemaHasPartTrait {
     $visibility = ['invisible' => [$selector => ['value' => '']]];
     $selector2 = $this->schemaMetatagManager()->altSelector($selector);
     $visibility2 = ['invisible' => [$selector2 => ['value' => '']]];
-    $visibility['invisible'] = [$visibility['invisible'], $visibility2['invisible']];
+    $visibility['invisible'] = [
+      $visibility['invisible'],
+      $visibility2['invisible'],
+    ];
 
     $form['#type'] = 'fieldset';
     $form['#title'] = $input_values['title'];
@@ -100,7 +103,10 @@ trait SchemaHasPartTrait {
       foreach ($properties as $key => $property) {
         $property_visibility = ['visible' => [$selector => ['value' => $type]]];
         $property_visibility2 = ['visible' => [$selector2 => ['value' => $type]]];
-        $property_visibility['visible'] = [$property_visibility['visible'], $property_visibility2['visible']];
+        $property_visibility['visible'] = [
+          $property_visibility['visible'],
+          $property_visibility2['visible'],
+        ];
 
         if (empty($property['form'])) {
           $form[$key] = [
@@ -140,7 +146,7 @@ trait SchemaHasPartTrait {
    * @return array
    *   An array of all possible object types.
    */
-  public static function hasPartObjects() {
+  public static function hasPartObjects(): array {
     return [
       'Clip',
       'TVClip',
@@ -159,7 +165,7 @@ trait SchemaHasPartTrait {
    * @return array
    *   An array of all the unique properties for that type.
    */
-  public static function hasPartProperties($object_type) {
+  public static function hasPartProperties(string $object_type): array {
     switch ($object_type) {
 
       case 'WebPageElement':
diff --git a/src/SchemaHowToStepBase.php b/src/SchemaHowToStepBase.php
index 84046ad..79cc913 100644
--- a/src/SchemaHowToStepBase.php
+++ b/src/SchemaHowToStepBase.php
@@ -10,7 +10,7 @@ class SchemaHowToStepBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
 
     $value = $this->schemaMetatagManager()->unserialize($this->value());
 
@@ -37,7 +37,7 @@ class SchemaHowToStepBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function testValue() {
+  public static function testValue(): array {
     $items = [];
     $keys = [
       '@type',
@@ -68,7 +68,7 @@ class SchemaHowToStepBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function processedTestValue($items) {
+  public static function processedTestValue($items): array {
     foreach ($items as $key => $value) {
       switch ($key) {
         case 'image':
diff --git a/src/SchemaHowToStepTrait.php b/src/SchemaHowToStepTrait.php
index 1a4e758..dc546e0 100644
--- a/src/SchemaHowToStepTrait.php
+++ b/src/SchemaHowToStepTrait.php
@@ -20,7 +20,7 @@ trait SchemaHowToStepTrait {
   /**
    * The form element.
    */
-  public function howToStepForm($input_values) {
+  public function howToStepForm(array $input_values): array {
 
     $input_values += $this->schemaMetatagManager()->defaultInputValues();
     $value = $input_values['value'];
@@ -31,7 +31,10 @@ trait SchemaHowToStepTrait {
     $visibility = ['invisible' => [$selector => ['value' => '']]];
     $selector2 = $this->schemaMetatagManager()->altSelector($selector);
     $visibility2 = ['invisible' => [$selector2 => ['value' => '']]];
-    $visibility['invisible'] = [$visibility['invisible'], $visibility2['invisible']];
+    $visibility['invisible'] = [
+      $visibility['invisible'],
+      $visibility2['invisible'],
+    ];
 
     $form['#type'] = 'fieldset';
     $form['#title'] = $input_values['title'];
diff --git a/src/SchemaIdReferenceBase.php b/src/SchemaIdReferenceBase.php
index 62b7e4a..76b71ca 100644
--- a/src/SchemaIdReferenceBase.php
+++ b/src/SchemaIdReferenceBase.php
@@ -10,7 +10,7 @@ class SchemaIdReferenceBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
 
     $value = $this->schemaMetatagManager()->unserialize($this->value());
 
@@ -37,7 +37,7 @@ class SchemaIdReferenceBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function testValue() {
+  public static function testValue(): array {
     $items = [];
     $keys = [
       '@id',
@@ -58,7 +58,7 @@ class SchemaIdReferenceBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function processedTestValue($items) {
+  public static function processedTestValue($items): array {
     foreach ($items as $key => $value) {
       switch ($key) {
         case '@id':
diff --git a/src/SchemaIdReferenceTrait.php b/src/SchemaIdReferenceTrait.php
index 4020d25..4784302 100644
--- a/src/SchemaIdReferenceTrait.php
+++ b/src/SchemaIdReferenceTrait.php
@@ -18,7 +18,7 @@ trait SchemaIdReferenceTrait {
   /**
    * The form element.
    */
-  public function idForm($input_values) {
+  public function idForm(array $input_values): array {
 
     $input_values += $this->schemaMetatagManager()->defaultInputValues();
     $value = $input_values['value'];
@@ -28,7 +28,10 @@ trait SchemaIdReferenceTrait {
     $visibility = ['invisible' => [$selector => ['value' => '']]];
     $selector2 = $this->schemaMetatagManager()->altSelector($selector);
     $visibility2 = ['invisible' => [$selector2 => ['value' => '']]];
-    $visibility['invisible'] = [$visibility['invisible'], $visibility2['invisible']];
+    $visibility['invisible'] = [
+      $visibility['invisible'],
+      $visibility2['invisible'],
+    ];
 
     $form['#type'] = 'fieldset';
     $form['#title'] = $input_values['title'];
diff --git a/src/SchemaImageBase.php b/src/SchemaImageBase.php
index b932067..9c2d88c 100644
--- a/src/SchemaImageBase.php
+++ b/src/SchemaImageBase.php
@@ -10,7 +10,7 @@ class SchemaImageBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = array()) {
+  public function getForm(array $options = []): array {
 
     $value = $this->schemaMetatagManager()->unserialize($this->value());
 
@@ -37,7 +37,7 @@ class SchemaImageBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function testValue() {
+  public static function testValue(): array {
     $items = [];
     $keys = [
       '@type',
diff --git a/src/SchemaImageTrait.php b/src/SchemaImageTrait.php
index 2e72486..5ca6fe6 100644
--- a/src/SchemaImageTrait.php
+++ b/src/SchemaImageTrait.php
@@ -18,7 +18,7 @@ trait SchemaImageTrait {
   /**
    * The form element.
    */
-  public function imageForm($input_values) {
+  public function imageForm(array $input_values): array {
 
     $input_values += $this->schemaMetatagManager()->defaultInputValues();
     $value = $input_values['value'];
@@ -28,7 +28,10 @@ trait SchemaImageTrait {
     $visibility = ['invisible' => [$selector => ['value' => '']]];
     $selector2 = $this->schemaMetatagManager()->altSelector($selector);
     $visibility2 = ['invisible' => [$selector2 => ['value' => '']]];
-    $visibility['invisible'] = [$visibility['invisible'], $visibility2['invisible']];
+    $visibility['invisible'] = [
+      $visibility['invisible'],
+      $visibility2['invisible'],
+    ];
 
     $form['#type'] = 'fieldset';
     $form['#title'] = $input_values['title'];
diff --git a/src/SchemaIsAccessibleForFreeBase.php b/src/SchemaIsAccessibleForFreeBase.php
index f93366c..5a79c26 100644
--- a/src/SchemaIsAccessibleForFreeBase.php
+++ b/src/SchemaIsAccessibleForFreeBase.php
@@ -8,7 +8,7 @@ class SchemaIsAccessibleForFreeBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
     $form = parent::getForm($options);
     $form['value']['#type'] = 'select';
     $form['value']['#empty_option'] = t('True');
@@ -21,7 +21,7 @@ class SchemaIsAccessibleForFreeBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function testValue() {
+  public static function testValue(): string {
     return 'False';
   }
 
diff --git a/src/SchemaItemListBase.php b/src/SchemaItemListBase.php
index 971e934..e7af5ad 100644
--- a/src/SchemaItemListBase.php
+++ b/src/SchemaItemListBase.php
@@ -8,7 +8,7 @@ class SchemaItemListBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public function getElement(array $options = array()) {
+  public function getElement(array $options = []) {
     $element = parent::getElement($options);
     if (!empty($element)) {
       $view = $options['token data']['view'];
diff --git a/src/SchemaItemListElementBase.php b/src/SchemaItemListElementBase.php
index e619c19..35a676a 100644
--- a/src/SchemaItemListElementBase.php
+++ b/src/SchemaItemListElementBase.php
@@ -8,7 +8,7 @@ class SchemaItemListElementBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
     $form = parent::getForm($options);
     $form['value']['#description'] = $this->t('To create a list, provide a token for a multiple value field, or a comma-separated list of values.');
     return $form;
diff --git a/src/SchemaItemListElementBreadcrumbBase.php b/src/SchemaItemListElementBreadcrumbBase.php
index 58e3a2f..9d048e3 100644
--- a/src/SchemaItemListElementBreadcrumbBase.php
+++ b/src/SchemaItemListElementBreadcrumbBase.php
@@ -8,7 +8,7 @@ class SchemaItemListElementBreadcrumbBase extends SchemaItemListElementBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
     $form['value'] = [
       '#type' => 'select',
       '#title' => $this->label(),
@@ -30,7 +30,7 @@ class SchemaItemListElementBreadcrumbBase extends SchemaItemListElementBase {
   /**
    * {@inheritdoc}
    */
-  public static function testValue() {
+  public static function testValue(): string {
     return 'Yes';
   }
 
@@ -52,7 +52,7 @@ class SchemaItemListElementBreadcrumbBase extends SchemaItemListElementBase {
   /**
    * {@inheritdoc}
    */
-  public static function getItems($input_value) {
+  public static function getItems($input_value): array {
     $values = [];
     if (!empty($input_value)) {
       $breadcrumbs = drupal_get_breadcrumb();
@@ -77,7 +77,7 @@ class SchemaItemListElementBreadcrumbBase extends SchemaItemListElementBase {
           'name' => $text,
           'item' => $url,
         ];
-         $key++;
+        $key++;
       }
     }
     return $values;
diff --git a/src/SchemaItemListElementViewsBase.php b/src/SchemaItemListElementViewsBase.php
index d69d773..7905d80 100644
--- a/src/SchemaItemListElementViewsBase.php
+++ b/src/SchemaItemListElementViewsBase.php
@@ -8,7 +8,7 @@ class SchemaItemListElementViewsBase extends SchemaItemListElementBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
     $form = parent::getForm($options);
     $form['value']['#attributes']['placeholder'] = 'view_name:display_id';
     $form['value']['#description'] = $this->t("Provide the machine name of the view, the machine name of the display, and any argument values, separated by colons, i.e. 'view_name:display_id' or 'view_name:display_id:article.  Use 'view_name:display_id:{{args}}' to pass the page arguments to the view. This will create a <a href=':url'>Summary View</a> list, which assumes each list item contains the url to a view page for the entity. The view rows should contain content (like teaser views) rather than fields for this to work correctly.", [':url' => 'https://developers.google.com/search/docs/guides/mark-up-listings']);
@@ -18,7 +18,7 @@ class SchemaItemListElementViewsBase extends SchemaItemListElementBase {
   /**
    * {@inheritdoc}
    */
-  public static function testValue() {
+  public static function testValue(): string {
     return 'frontpage:page';
   }
 
diff --git a/src/SchemaMainEntityOfPageBase.php b/src/SchemaMainEntityOfPageBase.php
index 924d152..8f240b4 100644
--- a/src/SchemaMainEntityOfPageBase.php
+++ b/src/SchemaMainEntityOfPageBase.php
@@ -8,7 +8,7 @@ class SchemaMainEntityOfPageBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
     $form = parent::getForm($options);
     $form['value']['#description'] = $this->t("If this is the main content of the page, provide url of the page. i.e. '[current-page:url]'. Only one object on each page should be marked as the main entity of the page.");
     return $form;
@@ -17,7 +17,7 @@ class SchemaMainEntityOfPageBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function testValue() {
+  public static function testValue(): string {
     return static::randomUrl();
   }
 
diff --git a/src/SchemaMetatagManager.php b/src/SchemaMetatagManager.php
index 6bb5bf1..90a0efa 100644
--- a/src/SchemaMetatagManager.php
+++ b/src/SchemaMetatagManager.php
@@ -32,7 +32,7 @@ class Random {
 }
 
 /**
- * Class SchemaMetatagManager.
+ * Utility methods for SchemaMetatags.
  *
  * @package Drupal\schema_metatag
  */
@@ -41,7 +41,7 @@ class SchemaMetatagManager implements SchemaMetatagManagerInterface {
   /**
    * {@inheritdoc}
    */
-  public static function parseJsonld(&$elements) {
+  public static function parseJsonld(array &$elements): array {
     $schema_metatags = [];
     foreach ($elements as $key => $info) {
       if (!empty($info['#attributes']['schema_metatag'])) {
@@ -69,7 +69,7 @@ class SchemaMetatagManager implements SchemaMetatagManagerInterface {
   /**
    * {@inheritdoc}
    */
-  public static function encodeJsonld($items) {
+  public static function encodeJsonld(array $items): string {
     // If some group has been found, render the JSON LD,
     // otherwise return nothing.
     if (!empty($items)) {
@@ -83,7 +83,7 @@ class SchemaMetatagManager implements SchemaMetatagManagerInterface {
   /**
    * {@inheritdoc}
    */
-  public static function renderArrayJsonLd($jsonld) {
+  public static function renderArrayJsonLd(string $jsonld): array {
     return [
       '#type' => 'html_tag',
       '#tag' => 'script',
@@ -95,7 +95,7 @@ class SchemaMetatagManager implements SchemaMetatagManagerInterface {
   /**
    * {@inheritdoc}
    */
-  public static function getRenderedJsonld($entity = NULL, $entity_type = NULL) {
+  public static function getRenderedJsonld(?string $entity = NULL, ?string $entity_type = NULL): string {
     // If nothing was passed in, assume the current entity.
     // @see schema_metatag_entity_load() to understand why this works.
     if (empty($entity)) {
@@ -117,7 +117,7 @@ class SchemaMetatagManager implements SchemaMetatagManagerInterface {
   /**
    * {@inheritdoc}
    */
-  public static function pivot($content) {
+  public static function pivot(array $content): array {
     if (!is_array($content) || empty($content)) {
       return $content;
     }
@@ -126,7 +126,6 @@ class SchemaMetatagManager implements SchemaMetatagManagerInterface {
     $count = max(array_map([__CLASS__, 'countNumericKeys'], $content));
     $pivoted = [];
     $exploded = [];
-    $keys = array_keys($content);
     for ($i = 0; $i < $count; $i++) {
       foreach ($content as $key => $item) {
         // If a lower array is pivoted, pivot that first.
@@ -165,7 +164,7 @@ class SchemaMetatagManager implements SchemaMetatagManagerInterface {
   /**
    * If the item is an array with numeric keys, count the keys.
    */
-  public static function countNumericKeys($item) {
+  public static function countNumericKeys(array $item): int {
     if (!is_array($item)) {
       return 0;
     }
@@ -180,10 +179,9 @@ class SchemaMetatagManager implements SchemaMetatagManagerInterface {
   /**
    * {@inheritdoc}
    */
-  public static function explode($value) {
+  public static function explode(string $value) {
     $value = explode(',', $value);
     $value = array_map('trim', $value);
-    //$value = array_unique($value);
     if (count($value) == 1) {
       return $value[0];
     }
@@ -194,7 +192,7 @@ class SchemaMetatagManager implements SchemaMetatagManagerInterface {
   /**
    * {@inheritdoc}
    */
-  public static function serialize($value) {
+  public static function serialize(array $value): string {
     // Make sure the same value isn't serialized more than once if this is
     // called multiple times.
     if (is_array($value)) {
@@ -214,7 +212,7 @@ class SchemaMetatagManager implements SchemaMetatagManagerInterface {
   /**
    * {@inheritdoc}
    */
-  public static function unserialize($value) {
+  public static function unserialize(string $value) {
     // Make sure the the value is not just a plain string and that
     // the same value isn't unserialized more than once if this is called
     // multiple times.
@@ -240,12 +238,11 @@ class SchemaMetatagManager implements SchemaMetatagManagerInterface {
   /**
    * {@inheritdoc}
    */
-  public static function isSerialized($value) {
+  public static function isSerialized(string $value): bool {
     // If it isn't a string, it isn't serialized.
     if (!is_string($value)) {
       return FALSE;
     }
-    $data = trim($value);
     if ('N' == $value) {
       return TRUE;
     }
@@ -276,7 +273,7 @@ class SchemaMetatagManager implements SchemaMetatagManagerInterface {
   /**
    * {@inheritdoc}
    */
-  public static function arrayTrim($array) {
+  public static function arrayTrim(array $array): array {
 
     // See if this is an array or an object.
     $needs_type = static::isObject($array);
@@ -315,14 +312,14 @@ class SchemaMetatagManager implements SchemaMetatagManagerInterface {
   /**
    * {@inheritdoc}
    */
-  public static function isObject($array) {
+  public static function isObject(array $array): bool {
     return empty(static::countNumericKeys($array));
   }
 
   /**
    * {@inheritdoc}
    */
-  public static function recomputeSerializedLength($value) {
+  public static function recomputeSerializedLength(string $value): string {
     $value = preg_replace_callback('!s:(\d+):"(.*?)";!', function ($match) {
       return ($match[1] == strlen($match[2])) ? $match[0] : 's:' . strlen($match[2]) . ':"' . $match[2] . '";';
     }, $value);
@@ -332,7 +329,7 @@ class SchemaMetatagManager implements SchemaMetatagManagerInterface {
   /**
    * {@inheritdoc}
    */
-  public static function randomString($length = 8) {
+  public static function randomString(int $length = 8): string {
     $randomGenerator = new Random();
     if ($length < 4) {
       return $randomGenerator->string($length, TRUE);
@@ -346,7 +343,7 @@ class SchemaMetatagManager implements SchemaMetatagManagerInterface {
   /**
    * {@inheritdoc}
    */
-  public static function randomMachineName($length = 8) {
+  public static function randomMachineName(int $length = 8): string {
     $randomGenerator = new Random();
     return $randomGenerator->name($length, TRUE);
   }
@@ -354,7 +351,7 @@ class SchemaMetatagManager implements SchemaMetatagManagerInterface {
   /**
    * {@inheritdoc}
    */
-  public static function defaultInputValues() {
+  public static function defaultInputValues(): array {
     return [
       'title' => '',
       'description' => '',
@@ -369,7 +366,7 @@ class SchemaMetatagManager implements SchemaMetatagManagerInterface {
   /**
    * {@inheritdoc}
    */
-  public static function altSelector($selector) {
+  public static function altSelector(string $selector): string {
     return $selector;
   }
 
diff --git a/src/SchemaMetatagManagerInterface.php b/src/SchemaMetatagManagerInterface.php
index 01dcbab..7c614dd 100644
--- a/src/SchemaMetatagManagerInterface.php
+++ b/src/SchemaMetatagManagerInterface.php
@@ -1,7 +1,7 @@
 <?php
 
 /**
- * Interface SchemaMetatagManagerInterface.
+ * Interface for the Manager, with utility methods for SchemaMetatags.
  *
  * @package Drupal\schema_metatag
  */
@@ -16,18 +16,18 @@ interface SchemaMetatagManagerInterface {
    * @return array
    *   Array of Schema metatag tags, ready to be turned into JSON LD.
    */
-  public static function parseJsonld(&$elements);
+  public static function parseJsonld(array &$elements): array;
 
   /**
    * Convert a metatags-style data array to JSON LD.
    *
-   * @param $items
+   * @param array $items
    *   Array of Schema metatag tags, ready to be turned into JSON LD.
    *
    * @return string
    *   Json-encoded representation of the structured data.
    */
-  public static function encodeJsonld($items);
+  public static function encodeJsonld(array $items): string;
 
   /**
    * Create the JSON LD render array.
@@ -38,22 +38,22 @@ interface SchemaMetatagManagerInterface {
    * @return array
    *   A render array for the JSONLD, .
    */
-  public static function renderArrayJsonLd($jsonld);
+  public static function renderArrayJsonLd(string $jsonld): array;
 
   /**
    * Render JSON LD for a specific entity.
    *
    * Useful to pass to a decoupled front end, for instance.
    *
-   * @param string $entity
+   * @param string|null $entity
    *   The entity that contains JSONLD.
-   * @param string $entity_type
+   * @param string|null $entity_type
    *   The type of entity.
    *
    * @return string
    *   The JSONLD markup.
    */
-  public static function getRenderedJsonld($entity = NULL, $entity_type = NULL);
+  public static function getRenderedJsonld(?string $entity = NULL, ?string $entity_type = NULL): string;
 
   /**
    * Pivot multiple value results.
@@ -67,7 +67,7 @@ interface SchemaMetatagManagerInterface {
    * @return array
    *   The pivoted array.
    */
-  public static function pivot($content);
+  public static function pivot(array $content): array;
 
   /**
    * If the item is an array with numeric keys, count the keys.
@@ -78,7 +78,7 @@ interface SchemaMetatagManagerInterface {
    * @return int
    *   The number of numeric keys in the array.
    */
-  public static function countNumericKeys($item);
+  public static function countNumericKeys(array $item): int;
 
   /**
    * Explode values if this is a multiple value field.
@@ -86,10 +86,10 @@ interface SchemaMetatagManagerInterface {
    * @param string $value
    *   The value to explode.
    *
-   * @return array
-   *   The array of values.
+   * @return array|string
+   *   The array of values or single value.
    */
-  public static function explode($value);
+  public static function explode(string $value);
 
   /**
    * Wrapper for serialize to prevent errors.
@@ -99,9 +99,8 @@ interface SchemaMetatagManagerInterface {
    *
    * @return string
    *   The serialized value.
-   * Wrapper for serialize to prevent errors.
    */
-  public static function serialize($value);
+  public static function serialize(array $value): string;
 
   /**
    * Wrapper for unserialize to prevent errors.
@@ -109,10 +108,10 @@ interface SchemaMetatagManagerInterface {
    * @param string $value
    *   The value to unserialize.
    *
-   * @return array
+   * @return array|string
    *   The unserialized array.
    */
-  public static function unserialize($value);
+  public static function unserialize(string $value);
 
   /**
    * Check if a value looks like a serialized array.
@@ -123,7 +122,7 @@ interface SchemaMetatagManagerInterface {
    * @return bool
    *   TRUE/FALSE.
    */
-  public static function isSerialized($value);
+  public static function isSerialized(string $value): bool;
 
   /**
    * Remove empty values from a nested array.
@@ -136,7 +135,7 @@ interface SchemaMetatagManagerInterface {
    * @return array
    *   The original array with empty values removed.
    */
-  public static function arrayTrim($array);
+  public static function arrayTrim(array $array):array;
 
   /**
    * Is object?
@@ -152,18 +151,21 @@ interface SchemaMetatagManagerInterface {
    * @return bool
    *   TRUE/FALSE.
    */
-  public static function isObject($array);
+  public static function isObject(array $array): bool;
 
   /**
-   * Check if a value looks like a serialized array.
+   * Re-writes a serialized string.
+   *
+   * Fixes problems created if token replacements are of a different size than
+   *  the original tokens.
    *
    * @param string $value
-   *   The string value to assess.
+   *   The serialized string.
    *
-   * @return bool
-   *   TRUE/FALSE.
+   * @return string
+   *   The re-written serialized string.
    */
-  public static function recomputeSerializedLength($value);
+  public static function recomputeSerializedLength(string $value): string;
 
   /**
    * Generates a pseudo-random string of ASCII characters of codes 32 to 126.
@@ -174,7 +176,7 @@ interface SchemaMetatagManagerInterface {
    * @return string
    *   Pseudo-randomly generated unique string including special characters.
    */
-  public static function randomString($length = 8);
+  public static function randomString(int $length = 8): string;
 
   /**
    * Generates a unique random string containing letters and numbers.
@@ -185,7 +187,7 @@ interface SchemaMetatagManagerInterface {
    * @return string
    *   Randomly generated unique string.
    */
-  public static function randomMachineName($length = 8);
+  public static function randomMachineName(int $length = 8): string;
 
   /**
    * Default values for input into nested base elements.
@@ -193,7 +195,7 @@ interface SchemaMetatagManagerInterface {
    * @return array
    *   An array of default values.
    */
-  public static function defaultInputValues();
+  public static function defaultInputValues(): array;
 
   /**
    * Alternate visibility selector for the field element.
@@ -210,6 +212,6 @@ interface SchemaMetatagManagerInterface {
    * @return string
    *   A rewritten selector that will work in the field form.
    */
-  public static function altSelector($selector);
+  public static function altSelector(string $selector): string;
 
 }
diff --git a/src/SchemaMetatagTag.php b/src/SchemaMetatagTag.php
index 426b3a6..6c71040 100644
--- a/src/SchemaMetatagTag.php
+++ b/src/SchemaMetatagTag.php
@@ -13,22 +13,22 @@ class SchemaMetaTagTag extends DrupalTextMetaTag {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = array()) {
-    $options += array(
-      'token types' => array(),
-    );
+  public function getForm(array $options = []): array {
+    $options += [
+      'token types' => [],
+    ];
 
-    $form['value'] = isset($this->info['form']) ? $this->info['form'] : array();
+    $form['value'] = isset($this->info['form']) ? $this->info['form'] : [];
 
-    $form['value'] += array(
+    $form['value'] += [
       '#type' => 'textfield',
       '#title' => $this->info['label'],
       '#description' => !empty($this->info['description']) ? $this->info['description'] : '',
       '#default_value' => isset($this->data['value']) ? $this->data['value'] : '',
-      '#element_validate' => array('token_element_validate'),
+      '#element_validate' => ['token_element_validate'],
       '#token_types' => $options['token types'],
       '#maxlength' => 1024,
-    );
+    ];
 
     // Optional handling for items that allow multiple values.
     if (!empty($this->info['multiple'])) {
@@ -54,7 +54,7 @@ class SchemaMetaTagTag extends DrupalTextMetaTag {
       $form['value']['#other_delimiter'] = FALSE;
       $form['value']['#theme'] = 'select_or_other';
       $form['value']['#select_type'] = 'select';
-      $form['value']['#element_validate'] = array('select_or_other_element_validate');
+      $form['value']['#element_validate'] = ['select_or_other_element_validate'];
     }
 
     // Support for dependencies, using Form API's #states system.
@@ -62,9 +62,9 @@ class SchemaMetaTagTag extends DrupalTextMetaTag {
     // @see https://api.drupal.org/drupal_process_states
     if (!empty($this->info['dependencies'])) {
       foreach ($this->info['dependencies'] as $specs) {
-        $form['value']['#states']['visible'][':input[name*="[' . $specs['dependency'] . '][' . $specs['attribute'] . ']"]'] = array(
+        $form['value']['#states']['visible'][':input[name*="[' . $specs['dependency'] . '][' . $specs['attribute'] . ']"]'] = [
           $specs['condition'] => $specs['value'],
-        );
+        ];
       }
     }
     return $form;
@@ -73,15 +73,15 @@ class SchemaMetaTagTag extends DrupalTextMetaTag {
   /**
    * {@inheritdoc}
    */
-  public function getValue(array $options = array()) {
-    $options += array(
+  public function getValue(array $options = []): string {
+    $options += [
       'instance' => '',
-      'token data' => array(),
+      'token data' => [],
       // Remove any remaining token after the string is parsed.
       'clear' => TRUE,
       'sanitize' => variable_get('metatag_token_sanitize', FALSE),
       'raw' => FALSE,
-    );
+    ];
 
     $value = $this->data['value'];
 
@@ -110,7 +110,7 @@ class SchemaMetaTagTag extends DrupalTextMetaTag {
       // If this meta tag does *not* allow multiple items, only keep the first
       // one.
       if (empty($this->info['multiple']) && !empty($values[0])) {
-        $values = array($values[0]);
+        $values = [$values[0]];
       }
 
       foreach ($values as $key => &$image_value) {
@@ -119,7 +119,7 @@ class SchemaMetaTagTag extends DrupalTextMetaTag {
 
         // If this contains embedded image tags, extract the image URLs.
         if (!empty($this->info['image']) && strip_tags($image_value) != $image_value) {
-          $matches = array();
+          $matches = [];
           preg_match('/src="([^"]*)"/', $image_value, $matches);
           if (!empty($matches[1])) {
             $image_value = $matches[1];
@@ -132,6 +132,7 @@ class SchemaMetaTagTag extends DrupalTextMetaTag {
         // Replace spaces the URL encoded entity to avoid validation problems.
         $image_value = str_replace(' ', '%20', $image_value);
       }
+      unset($key);
 
       // Combine the multiple values into a single string.
       $value = implode(',', $values);
@@ -150,24 +151,24 @@ class SchemaMetaTagTag extends DrupalTextMetaTag {
   /**
    * Get the HTML tag for this meta tag.
    *
-   * @return array
-   *   A render array for this meta tag.
+   * @return array|string
+   *   A render array for this meta tag or empty string when value is empty.
    */
-  public function getElement(array $options = array()) {
+  public function getElement(array $options = []) {
     $value = $this->getValue($options);
     if (strlen($value) === 0) {
-      return array();
+      return [];
     }
 
     // The stack of elements that will be output.
-    $elements = array();
+    $elements = [];
 
     // Dynamically add each option to this setting.
-    $base_element = isset($this->info['element']) ? $this->info['element'] : array();
+    $base_element = isset($this->info['element']) ? $this->info['element'] : [];
 
     // Single item.
     if (empty($this->info['multiple'])) {
-      $values = array($value);
+      $values = [$value];
     }
 
     // Multiple items.
@@ -189,7 +190,7 @@ class SchemaMetaTagTag extends DrupalTextMetaTag {
         $id = 'schema_metatag_' . $this->info['name'] . '_' . $ctr;
 
         $parts = explode('.', $this->info['name']);
-        $element = $base_element + array(
+        $element = $base_element + [
           '#type' => 'html_tag',
           '#tag' => 'meta',
           '#id' => $id,
@@ -200,15 +201,15 @@ class SchemaMetaTagTag extends DrupalTextMetaTag {
             'content' => $value,
           ],
           '#weight' => $this->info['weight'],
-        );
+        ];
 
-        $elements[] = array($element, $id);
+        $elements[] = [$element, $id];
       }
     }
     if (!empty($elements)) {
-      return array(
-        '#attached' => array('drupal_add_html_head' => $elements),
-      );
+      return [
+        '#attached' => ['drupal_add_html_head' => $elements],
+      ];
     }
   }
 
diff --git a/src/SchemaMetatagTestTagInterface.php b/src/SchemaMetatagTestTagInterface.php
index 7dabfb6..ad8c599 100644
--- a/src/SchemaMetatagTestTagInterface.php
+++ b/src/SchemaMetatagTestTagInterface.php
@@ -1,7 +1,7 @@
 <?php
 
 /**
- * Interface SchemaMetatagTestTagInterface.
+ * Interface for SchemaMetatag Testing Tag.
  *
  * Methods that provide test values for SchemaNameBase and its derivatives.
  *
@@ -84,16 +84,16 @@ interface SchemaMetatagTestTagInterface {
    * Value must be static so the test can retrieve the value without
    * instantiating the class.
    *
-   * @param int $count
+   * @param int|null $count
    *   Number of "words".
-   * @param int $delimiter
+   * @param string|null $delimiter
    *   Delimiter used to connect "words".
    *
    * @return mixed
    *   Return the test value, either a string or array, depending on the
    *   property.
    */
-  public static function testDefaultValue($count = NULL, $delimiter = NULL);
+  public static function testDefaultValue(?int $count = NULL, ?string $delimiter = NULL);
 
   /**
    * Random absolute url for testing.
@@ -101,6 +101,6 @@ interface SchemaMetatagTestTagInterface {
    * @return string
    *   A random absolute url.
    */
-  public static function randomUrl();
+  public static function randomUrl(): string;
 
 }
diff --git a/src/SchemaMonetaryAmountBase.php b/src/SchemaMonetaryAmountBase.php
index 964fb14..fec97a1 100644
--- a/src/SchemaMonetaryAmountBase.php
+++ b/src/SchemaMonetaryAmountBase.php
@@ -10,7 +10,7 @@ class SchemaMonetaryAmountBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
 
     $value = $this->schemaMetatagManager()->unserialize($this->value());
 
@@ -37,7 +37,7 @@ class SchemaMonetaryAmountBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function testValue() {
+  public static function testValue(): array {
     $items = [];
     $keys = [
       '@type',
diff --git a/src/SchemaMonetaryAmountTrait.php b/src/SchemaMonetaryAmountTrait.php
index dbef89a..af6dfc1 100644
--- a/src/SchemaMonetaryAmountTrait.php
+++ b/src/SchemaMonetaryAmountTrait.php
@@ -18,7 +18,7 @@ trait SchemaMonetaryAmountTrait {
   /**
    * Form.
    */
-  public function monetaryAmountForm($input_values) {
+  public function monetaryAmountForm(array $input_values): array {
 
     $input_values += $this->schemaMetatagManager()->defaultInputValues();
     $value = $input_values['value'];
@@ -28,7 +28,10 @@ trait SchemaMonetaryAmountTrait {
     $visibility = ['invisible' => [$selector => ['value' => '']]];
     $selector2 = $this->schemaMetatagManager()->altSelector($selector);
     $visibility2 = ['invisible' => [$selector2 => ['value' => '']]];
-    $visibility['invisible'] = [$visibility['invisible'], $visibility2['invisible']];
+    $visibility['invisible'] = [
+      $visibility['invisible'],
+      $visibility2['invisible'],
+    ];
 
     $form['#type'] = 'fieldset';
     $form['#title'] = $input_values['title'];
diff --git a/src/SchemaNameBase.php b/src/SchemaNameBase.php
index c291d06..dc64eae 100644
--- a/src/SchemaNameBase.php
+++ b/src/SchemaNameBase.php
@@ -15,7 +15,7 @@ class SchemaNameBase extends DrupalTextMetaTag implements SchemaMetatagTestTagIn
   /**
    * Constructor.
    */
-  function __construct(array $info, array $data = NULL) {
+  public function __construct(array $info, ?array $data = NULL) {
     parent::__construct($info, $data);
     $this->schemaMetatagManager = new SchemaMetatagManager();
   }
@@ -39,35 +39,35 @@ class SchemaNameBase extends DrupalTextMetaTag implements SchemaMetatagTestTagIn
   /**
    * {@inheritdoc}
    */
-  public function t($str, $args = []) {
+  public function t(string $str, array $args = []) {
     return t($str, $args);
   }
 
   /**
    * {@inheritdoc}
    */
-  public function getPluginId() {
+  public function getPluginId(): string {
     return $this->info['name'];
   }
 
   /**
    * {@inheritdoc}
    */
-  public function label() {
+  public function label(): string {
     return $this->info['label'];
   }
 
   /**
    * {@inheritdoc}
    */
-  public function description() {
+  public function description(): string {
     return $this->info['description'];
   }
 
   /**
    * {@inheritdoc}
    */
-  public function multiple() {
+  public function multiple(): bool {
     return !empty($this->info['multiple']);
   }
 
@@ -81,14 +81,14 @@ class SchemaNameBase extends DrupalTextMetaTag implements SchemaMetatagTestTagIn
   /**
    * The #states visibility selector for this element.
    */
-  protected function visibilitySelector() {
+  protected function visibilitySelector(): string {
     return 'metatags[und][' . $this->info['name'] . '][value]';
   }
 
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = array()) {
+  public function getForm(array $options = []): array {
 
     $form = parent::getForm($options);
 
@@ -101,7 +101,7 @@ class SchemaNameBase extends DrupalTextMetaTag implements SchemaMetatagTestTagIn
   /**
    * {@inheritdoc}
    */
-  public function getElement(array $options = array()) {
+  public function getElement(array $options = []) {
     $this->options = $options;
     $value = $this->schemaMetatagManager()->unserialize($this->value());
 
@@ -142,15 +142,15 @@ class SchemaNameBase extends DrupalTextMetaTag implements SchemaMetatagTestTagIn
         'content' => static::outputValue($value),
       ],
     ];
-    return array(
-      '#attached' => array('drupal_add_html_head' => array(array($element, $id))),
-    );
+    return [
+      '#attached' => ['drupal_add_html_head' => [[$element, $id]]],
+    ];
   }
 
   /**
    * {@inheritdoc}
    */
-  public static function pivotItem($array) {
+  public static function pivotItem(array $array): array {
     // See if any nested items need to be pivoted.
     // If pivot is set to 0, it would have been removed as an empty value.
     if (array_key_exists('pivot', $array)) {
@@ -162,6 +162,7 @@ class SchemaNameBase extends DrupalTextMetaTag implements SchemaMetatagTestTagIn
         $value = static::pivotItem($value);
       }
     }
+    unset($key);
     return $array;
   }
 
@@ -171,7 +172,7 @@ class SchemaNameBase extends DrupalTextMetaTag implements SchemaMetatagTestTagIn
    * @return array
    *   Array of keys that might contain commas, or otherwise cannot be exploded.
    */
-  public static function neverExplode() {
+  public static function neverExplode(): array {
     return [
       'streetAddress',
       'reviewBody',
@@ -179,14 +180,13 @@ class SchemaNameBase extends DrupalTextMetaTag implements SchemaMetatagTestTagIn
     ];
   }
 
-
   /**
    * Process an individual item.
    *
    * This is a copy of the original processing done by Metatag module,
    * but applied to every item on the array of values.
    */
-  protected function processItem(&$value, $key = 0) {
+  protected function processItem(&$value, $key = 0): void {
 
     $explode = $key === 0 ? $this->multiple() : !in_array($key, static::neverExplode());
 
@@ -199,7 +199,10 @@ class SchemaNameBase extends DrupalTextMetaTag implements SchemaMetatagTestTagIn
 
     $this->data['value'] = $value;
     if (!empty($this->info['url'])) {
-      $this->info['url'] = $this->info['url'] && in_array($key, ['url', 'sameAs']);
+      $this->info['url'] = $this->info['url'] && in_array($key, [
+        'url',
+        'sameAs',
+      ]);
     }
     if (!empty($this->info['image'])) {
       $this->info['image'] = $this->info['image'] && in_array($key, ['url']);
@@ -259,14 +262,14 @@ class SchemaNameBase extends DrupalTextMetaTag implements SchemaMetatagTestTagIn
   /**
    * {@inheritdoc}
    */
-  public static function randomUrl() {
+  public static function randomUrl(): string {
     return 'http://google.com/' . static::testDefaultValue(1, '');
   }
 
   /**
    * {@inheritdoc}
    */
-  public static function testDefaultValue($count = NULL, $delimiter = NULL) {
+  public static function testDefaultValue(?int $count = NULL, ?string $delimiter = NULL) {
     $items = [];
     $min = 1;
     $max = isset($count) ? $count : 2;
diff --git a/src/SchemaNutritionInformationBase.php b/src/SchemaNutritionInformationBase.php
index 68ee257..f5e5708 100644
--- a/src/SchemaNutritionInformationBase.php
+++ b/src/SchemaNutritionInformationBase.php
@@ -10,7 +10,7 @@ class SchemaNutritionInformationBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
 
     $value = $this->schemaMetatagManager()->unserialize($this->value());
 
@@ -37,7 +37,7 @@ class SchemaNutritionInformationBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function testValue() {
+  public static function testValue(): array {
     $items = [];
     $keys = [
       '@type',
diff --git a/src/SchemaNutritionInformationTrait.php b/src/SchemaNutritionInformationTrait.php
index 42177cc..80a925e 100644
--- a/src/SchemaNutritionInformationTrait.php
+++ b/src/SchemaNutritionInformationTrait.php
@@ -19,7 +19,7 @@ trait SchemaNutritionInformationTrait {
   /**
    * The form element.
    */
-  public function nutritionInformationForm($input_values) {
+  public function nutritionInformationForm(array $input_values): array {
 
     $input_values += $this->schemaMetatagManager()->defaultInputValues();
     $value = $input_values['value'];
@@ -30,7 +30,10 @@ trait SchemaNutritionInformationTrait {
     $visibility = ['invisible' => [$selector => ['value' => '']]];
     $selector2 = $this->schemaMetatagManager()->altSelector($selector);
     $visibility2 = ['invisible' => [$selector2 => ['value' => '']]];
-    $visibility['invisible'] = [$visibility['invisible'], $visibility2['invisible']];
+    $visibility['invisible'] = [
+      $visibility['invisible'],
+      $visibility2['invisible'],
+    ];
 
     $form['#type'] = 'fieldset';
     $form['#title'] = $input_values['title'];
diff --git a/src/SchemaOfferBase.php b/src/SchemaOfferBase.php
index 3f94866..f5d5a0d 100644
--- a/src/SchemaOfferBase.php
+++ b/src/SchemaOfferBase.php
@@ -10,7 +10,7 @@ class SchemaOfferBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
     $value = $this->schemaMetatagManager()->unserialize($this->value());
 
     $input_values = [
@@ -36,7 +36,7 @@ class SchemaOfferBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function testValue() {
+  public static function testValue(): array {
     $items = [];
     $keys = [
       '@type',
@@ -93,5 +93,4 @@ class SchemaOfferBase extends SchemaNameBase {
     return $items;
   }
 
-
 }
diff --git a/src/SchemaOfferTrait.php b/src/SchemaOfferTrait.php
index dbf7f3d..00f1860 100644
--- a/src/SchemaOfferTrait.php
+++ b/src/SchemaOfferTrait.php
@@ -20,7 +20,7 @@ trait SchemaOfferTrait {
   /**
    * The form element.
    */
-  public function offerForm($input_values) {
+  public function offerForm(array $input_values): array {
 
     $input_values += $this->schemaMetatagManager()->defaultInputValues();
     $value = $input_values['value'];
@@ -31,7 +31,10 @@ trait SchemaOfferTrait {
     $visibility = ['invisible' => [$selector => ['value' => '']]];
     $selector2 = $this->schemaMetatagManager()->altSelector($selector);
     $visibility2 = ['invisible' => [$selector2 => ['value' => '']]];
-    $visibility['invisible'] = [$visibility['invisible'], $visibility2['invisible']];
+    $visibility['invisible'] = [
+      $visibility['invisible'],
+      $visibility2['invisible'],
+    ];
 
     $form['#type'] = 'fieldset';
     $form['#title'] = $input_values['title'];
diff --git a/src/SchemaOpeningHoursSpecificationBase.php b/src/SchemaOpeningHoursSpecificationBase.php
index ff9da04..efd069f 100644
--- a/src/SchemaOpeningHoursSpecificationBase.php
+++ b/src/SchemaOpeningHoursSpecificationBase.php
@@ -10,7 +10,7 @@ class SchemaOpeningHoursSpecificationBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
 
     $value = $this->schemaMetatagManager()->unserialize($this->value());
 
@@ -37,7 +37,7 @@ class SchemaOpeningHoursSpecificationBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function testValue() {
+  public static function testValue(): array {
     $items = [];
     $keys = [
       '@type',
diff --git a/src/SchemaOpeningHoursSpecificationTrait.php b/src/SchemaOpeningHoursSpecificationTrait.php
index a78b64b..09948b9 100644
--- a/src/SchemaOpeningHoursSpecificationTrait.php
+++ b/src/SchemaOpeningHoursSpecificationTrait.php
@@ -19,7 +19,7 @@ trait SchemaOpeningHoursSpecificationTrait {
   /**
    * The form element.
    */
-  public function openingHoursSpecificationForm($input_values) {
+  public function openingHoursSpecificationForm(array $input_values): array {
 
     $input_values += $this->schemaMetatagManager()->defaultInputValues();
     $value = $input_values['value'];
@@ -30,7 +30,10 @@ trait SchemaOpeningHoursSpecificationTrait {
     $visibility = ['invisible' => [$selector => ['value' => '']]];
     $selector2 = $this->schemaMetatagManager()->altSelector($selector);
     $visibility2 = ['invisible' => [$selector2 => ['value' => '']]];
-    $visibility['invisible'] = [$visibility['invisible'], $visibility2['invisible']];
+    $visibility['invisible'] = [
+      $visibility['invisible'],
+      $visibility2['invisible'],
+    ];
 
     $form['#type'] = 'fieldset';
     $form['#title'] = $input_values['title'];
diff --git a/src/SchemaPersonOrgBase.php b/src/SchemaPersonOrgBase.php
index 739fe01..aa44c9a 100644
--- a/src/SchemaPersonOrgBase.php
+++ b/src/SchemaPersonOrgBase.php
@@ -10,7 +10,7 @@ class SchemaPersonOrgBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
 
     $value = $this->schemaMetatagManager()->unserialize($this->value());
 
@@ -37,7 +37,7 @@ class SchemaPersonOrgBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function testValue() {
+  public static function testValue(): array {
     $items = [];
     $keys = [
       '@type',
diff --git a/src/SchemaPersonOrgTrait.php b/src/SchemaPersonOrgTrait.php
index beec5d2..7256280 100644
--- a/src/SchemaPersonOrgTrait.php
+++ b/src/SchemaPersonOrgTrait.php
@@ -20,7 +20,7 @@ trait SchemaPersonOrgTrait {
   /**
    * The form element.
    */
-  public function personOrgForm($input_values) {
+  public function personOrgForm(array $input_values): array {
 
     $input_values += $this->schemaMetatagManager()->defaultInputValues();
     $value = $input_values['value'];
@@ -30,11 +30,17 @@ trait SchemaPersonOrgTrait {
     $visibility = ['invisible' => [$selector => ['value' => '']]];
     $selector2 = $this->schemaMetatagManager()->altSelector($selector);
     $visibility2 = ['invisible' => [$selector2 => ['value' => '']]];
-    $visibility['invisible'] = [$visibility['invisible'], $visibility2['invisible']];
+    $visibility['invisible'] = [
+      $visibility['invisible'],
+      $visibility2['invisible'],
+    ];
 
     $org_visibility = ['invisible' => [$selector => ['value' => 'Person']]];
     $org_visibility2 = ['invisible' => [$selector2 => ['value' => 'Person']]];
-    $org_visibility['invisible'] = [$org_visibility['invisible'], $org_visibility2['invisible']];
+    $org_visibility['invisible'] = [
+      $org_visibility['invisible'],
+      $org_visibility2['invisible'],
+    ];
 
     $form['#type'] = 'fieldset';
     $form['#title'] = $input_values['title'];
diff --git a/src/SchemaPivotTrait.php b/src/SchemaPivotTrait.php
index faff586..9a16d77 100644
--- a/src/SchemaPivotTrait.php
+++ b/src/SchemaPivotTrait.php
@@ -8,7 +8,7 @@ trait SchemaPivotTrait {
   /**
    * The form element.
    */
-  public function pivotForm($value) {
+  public function pivotForm($value): array {
 
     $form = [
       '#type' => 'select',
diff --git a/src/SchemaPlaceBase.php b/src/SchemaPlaceBase.php
index ef07a53..5969baf 100644
--- a/src/SchemaPlaceBase.php
+++ b/src/SchemaPlaceBase.php
@@ -10,7 +10,7 @@ class SchemaPlaceBase extends SchemaAddressBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
 
     $value = $this->schemaMetatagManager()->unserialize($this->value());
 
@@ -37,7 +37,7 @@ class SchemaPlaceBase extends SchemaAddressBase {
   /**
    * {@inheritdoc}
    */
-  public static function testValue() {
+  public static function testValue(): array {
     $items = [];
     $keys = [
       '@type',
diff --git a/src/SchemaPlaceTrait.php b/src/SchemaPlaceTrait.php
index 63f2940..dbf418c 100644
--- a/src/SchemaPlaceTrait.php
+++ b/src/SchemaPlaceTrait.php
@@ -21,7 +21,7 @@ trait SchemaPlaceTrait {
   /**
    * {@inheritdoc}
    */
-  public function placeForm($input_values) {
+  public function placeForm(array $input_values): array {
 
     $input_values += $this->schemaMetatagManager()->defaultInputValues();
     $value = $input_values['value'];
@@ -32,7 +32,10 @@ trait SchemaPlaceTrait {
     $visibility = ['invisible' => [$selector => ['value' => '']]];
     $selector2 = $this->schemaMetatagManager()->altSelector($selector);
     $visibility2 = ['invisible' => [$selector2 => ['value' => '']]];
-    $visibility['invisible'] = [$visibility['invisible'], $visibility2['invisible']];
+    $visibility['invisible'] = [
+      $visibility['invisible'],
+      $visibility2['invisible'],
+    ];
 
     $form['#type'] = 'fieldset';
     $form['#title'] = $input_values['title'];
diff --git a/src/SchemaProgramMembershipBase.php b/src/SchemaProgramMembershipBase.php
index 547867f..b8219a1 100644
--- a/src/SchemaProgramMembershipBase.php
+++ b/src/SchemaProgramMembershipBase.php
@@ -10,7 +10,7 @@ class SchemaProgramMembershipBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
 
     $value = $this->schemaMetatagManager()->unserialize($this->value());
 
@@ -37,7 +37,7 @@ class SchemaProgramMembershipBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function testValue() {
+  public static function testValue(): array {
     $items = [];
     $keys = [
       '@type',
diff --git a/src/SchemaProgramMembershipTrait.php b/src/SchemaProgramMembershipTrait.php
index b6dc186..ed3bcc0 100644
--- a/src/SchemaProgramMembershipTrait.php
+++ b/src/SchemaProgramMembershipTrait.php
@@ -20,7 +20,7 @@ trait SchemaProgramMembershipTrait {
   /**
    * The form element.
    */
-  public function programMembershipForm($input_values) {
+  public function programMembershipForm(array $input_values): array {
 
     $input_values += $this->schemaMetatagManager()->defaultInputValues();
     $value = $input_values['value'];
@@ -31,7 +31,10 @@ trait SchemaProgramMembershipTrait {
     $visibility = ['invisible' => [$selector => ['value' => '']]];
     $selector2 = $this->schemaMetatagManager()->altSelector($selector);
     $visibility2 = ['invisible' => [$selector2 => ['value' => '']]];
-    $visibility['invisible'] = [$visibility['invisible'], $visibility2['invisible']];
+    $visibility['invisible'] = [
+      $visibility['invisible'],
+      $visibility2['invisible'],
+    ];
 
     $form['#type'] = 'fieldset';
     $form['#title'] = $input_values['title'];
diff --git a/src/SchemaQuestionBase.php b/src/SchemaQuestionBase.php
index d81a119..b1f52f5 100644
--- a/src/SchemaQuestionBase.php
+++ b/src/SchemaQuestionBase.php
@@ -10,7 +10,7 @@ class SchemaQuestionBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
 
     $value = $this->schemaMetatagManager()->unserialize($this->value());
 
@@ -37,7 +37,7 @@ class SchemaQuestionBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function testValue() {
+  public static function testValue(): array {
     $items = [];
     $keys = [
       '@type',
diff --git a/src/SchemaQuestionTrait.php b/src/SchemaQuestionTrait.php
index 5bfedb9..2ae2416 100644
--- a/src/SchemaQuestionTrait.php
+++ b/src/SchemaQuestionTrait.php
@@ -23,7 +23,7 @@ trait SchemaQuestionTrait {
   /**
    * The form element.
    */
-  public function questionForm($input_values) {
+  public function questionForm(array $input_values): array {
 
     $input_values += $this->schemaMetatagManager()->defaultInputValues();
     $value = $input_values['value'];
@@ -34,7 +34,10 @@ trait SchemaQuestionTrait {
     $visibility = ['invisible' => [$selector => ['value' => '']]];
     $selector2 = $this->schemaMetatagManager()->altSelector($selector);
     $visibility2 = ['invisible' => [$selector2 => ['value' => '']]];
-    $visibility['invisible'] = [$visibility['invisible'], $visibility2['invisible']];
+    $visibility['invisible'] = [
+      $visibility['invisible'],
+      $visibility2['invisible'],
+    ];
 
     $form['#type'] = 'fieldset';
     $form['#title'] = $input_values['title'];
diff --git a/src/SchemaRatingBase.php b/src/SchemaRatingBase.php
index 9250b6d..3ea32a8 100644
--- a/src/SchemaRatingBase.php
+++ b/src/SchemaRatingBase.php
@@ -10,7 +10,7 @@ class SchemaRatingBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
     $value = $this->schemaMetatagManager()->unserialize($this->value());
     $input_values = [
       'title' => $this->label(),
@@ -36,7 +36,7 @@ class SchemaRatingBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function testValue() {
+  public static function testValue(): array {
     $items = [];
     $keys = [
       '@type',
diff --git a/src/SchemaRatingTrait.php b/src/SchemaRatingTrait.php
index f8714b1..dfdb24c 100644
--- a/src/SchemaRatingTrait.php
+++ b/src/SchemaRatingTrait.php
@@ -18,7 +18,7 @@ trait SchemaRatingTrait {
   /**
    * The form element.
    */
-  public function ratingForm($input_values) {
+  public function ratingForm(array $input_values): array {
 
     $input_values += $this->schemaMetatagManager()->defaultInputValues();
     $value = $input_values['value'];
@@ -28,7 +28,10 @@ trait SchemaRatingTrait {
     $visibility = ['invisible' => [$selector => ['value' => '']]];
     $selector2 = $this->schemaMetatagManager()->altSelector($selector);
     $visibility2 = ['invisible' => [$selector2 => ['value' => '']]];
-    $visibility['invisible'] = [$visibility['invisible'], $visibility2['invisible']];
+    $visibility['invisible'] = [
+      $visibility['invisible'],
+      $visibility2['invisible'],
+    ];
 
     $form['#type'] = 'fieldset';
     $form['#title'] = $input_values['title'];
diff --git a/src/SchemaReviewBase.php b/src/SchemaReviewBase.php
index 1bffe15..630fc63 100644
--- a/src/SchemaReviewBase.php
+++ b/src/SchemaReviewBase.php
@@ -10,7 +10,7 @@ class SchemaReviewBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
     $value = $this->schemaMetatagManager()->unserialize($this->value());
     $input_values = [
       'title' => $this->label(),
@@ -36,7 +36,7 @@ class SchemaReviewBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function testValue() {
+  public static function testValue(): array {
     $items = [];
     $keys = [
       '@type',
diff --git a/src/SchemaReviewTrait.php b/src/SchemaReviewTrait.php
index d1c08fc..ec5eadd 100644
--- a/src/SchemaReviewTrait.php
+++ b/src/SchemaReviewTrait.php
@@ -21,7 +21,7 @@ trait SchemaReviewTrait {
   /**
    * The form element.
    */
-  public function reviewForm($input_values) {
+  public function reviewForm(array $input_values): array {
 
     $input_values += $this->schemaMetatagManager()->defaultInputValues();
     $value = $input_values['value'];
@@ -32,7 +32,10 @@ trait SchemaReviewTrait {
     $visibility = ['invisible' => [$selector => ['value' => '']]];
     $selector2 = $this->schemaMetatagManager()->altSelector($selector);
     $visibility2 = ['invisible' => [$selector2 => ['value' => '']]];
-    $visibility['invisible'] = [$visibility['invisible'], $visibility2['invisible']];
+    $visibility['invisible'] = [
+      $visibility['invisible'],
+      $visibility2['invisible'],
+    ];
 
     $form['#type'] = 'fieldset';
     $form['#title'] = $input_values['title'];
diff --git a/src/SchemaSpeakableBase.php b/src/SchemaSpeakableBase.php
index 58624b6..40138e4 100644
--- a/src/SchemaSpeakableBase.php
+++ b/src/SchemaSpeakableBase.php
@@ -10,7 +10,7 @@ class SchemaSpeakableBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
     $value = $this->schemaMetatagManager()->unserialize($this->value());
     $input_values = [
       'title' => $this->label(),
@@ -36,7 +36,7 @@ class SchemaSpeakableBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function testValue() {
+  public static function testValue(): array {
     $items = [];
     $keys = [
       '@type',
diff --git a/src/SchemaSpeakableTrait.php b/src/SchemaSpeakableTrait.php
index 36c0eab..bf32155 100644
--- a/src/SchemaSpeakableTrait.php
+++ b/src/SchemaSpeakableTrait.php
@@ -16,7 +16,7 @@ trait SchemaSpeakableTrait {
   /**
    * The form element.
    */
-  public function speakableForm($input_values) {
+  public function speakableForm(array $input_values): array {
     $input_values += $this->schemaMetatagManager()->defaultInputValues();
     $value = $input_values['value'];
 
@@ -25,7 +25,10 @@ trait SchemaSpeakableTrait {
     $visibility = ['invisible' => [$selector => ['value' => '']]];
     $selector2 = $this->schemaMetatagManager()->altSelector($selector);
     $visibility2 = ['invisible' => [$selector2 => ['value' => '']]];
-    $visibility['invisible'] = [$visibility['invisible'], $visibility2['invisible']];
+    $visibility['invisible'] = [
+      $visibility['invisible'],
+      $visibility2['invisible'],
+    ];
 
     $form['#type'] = 'fieldset';
     $form['#title'] = $input_values['title'];
diff --git a/src/SchemaThingBase.php b/src/SchemaThingBase.php
index b5c07d9..6ae2126 100644
--- a/src/SchemaThingBase.php
+++ b/src/SchemaThingBase.php
@@ -10,7 +10,7 @@ class SchemaThingBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
 
     $value = $this->schemaMetatagManager()->unserialize($this->value());
 
@@ -37,7 +37,7 @@ class SchemaThingBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function testValue() {
+  public static function testValue(): array {
     $items = [];
     $keys = [
       '@type',
diff --git a/src/SchemaThingTrait.php b/src/SchemaThingTrait.php
index e45efd3..44c7660 100644
--- a/src/SchemaThingTrait.php
+++ b/src/SchemaThingTrait.php
@@ -18,7 +18,7 @@ trait SchemaThingTrait {
   /**
    * The form element.
    */
-  public function thingForm($input_values) {
+  public function thingForm(array $input_values): array {
 
     $input_values += $this->schemaMetatagManager()->defaultInputValues();
     $value = $input_values['value'];
@@ -28,7 +28,10 @@ trait SchemaThingTrait {
     $visibility = ['invisible' => [$selector => ['value' => '']]];
     $selector2 = $this->schemaMetatagManager()->altSelector($selector);
     $visibility2 = ['invisible' => [$selector2 => ['value' => '']]];
-    $visibility['invisible'] = [$visibility['invisible'], $visibility2['invisible']];
+    $visibility['invisible'] = [
+      $visibility['invisible'],
+      $visibility2['invisible'],
+    ];
 
     $form['#type'] = 'fieldset';
     $form['#title'] = $input_values['title'];
diff --git a/src/SchemaTrueFalseBase.php b/src/SchemaTrueFalseBase.php
index 378a9c8..c64028a 100644
--- a/src/SchemaTrueFalseBase.php
+++ b/src/SchemaTrueFalseBase.php
@@ -8,12 +8,15 @@ class SchemaTrueFalseBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
     $form = parent::getForm($options);
     $form['value']['#type'] = 'select';
     $form['value']['#empty_option'] = $this->t('- None -');
     $form['value']['#empty_value'] = '';
-    $form['value']['#options'] = ['False' => $this->t('False'), 'True' => $this->t('True')];
+    $form['value']['#options'] = [
+      'False' => $this->t('False'),
+      'True' => $this->t('True'),
+    ];
     return $form;
   }
 
diff --git a/src/SchemaTypeBase.php b/src/SchemaTypeBase.php
index cca05c2..6112521 100644
--- a/src/SchemaTypeBase.php
+++ b/src/SchemaTypeBase.php
@@ -15,14 +15,14 @@ class SchemaTypeBase extends SchemaNameBase {
    *
    * @see SchemaOrganizationType::labels()
    */
-  public static function labels() {
+  public static function labels(): array {
     return ['Organization'];
   }
 
   /**
    * Generate a form element for this meta tag.
    */
-  public function getForm(array $options = []) {
+  public function getForm(array $options = []): array {
     $form['value'] = [
       '#type' => 'select',
       '#title' => $this->label(),
diff --git a/src/SchemaUrlBase.php b/src/SchemaUrlBase.php
index 6664a2a..fb5656b 100644
--- a/src/SchemaUrlBase.php
+++ b/src/SchemaUrlBase.php
@@ -8,7 +8,7 @@ class SchemaUrlBase extends SchemaNameBase {
   /**
    * {@inheritdoc}
    */
-  public static function testValue() {
+  public static function testValue(): string {
     return static::randomUrl();
   }
 
diff --git a/tests/schema_metatag.base.test b/tests/schema_metatag.base.test
index 5c25ee7..ad66521 100644
--- a/tests/schema_metatag.base.test
+++ b/tests/schema_metatag.base.test
@@ -29,7 +29,7 @@ abstract class SchemaMetatagTagsTestBase extends SchemaMetatagTestHelper {
    * @return string
    *   The key used in the JSON array for this tag.
    */
-  public function getKey($tag_name) {
+  public function getKey(string $tag_name): string {
     $key = str_replace($this->moduleName . '.', '', $tag_name);
     $parts = explode('_', $key);
     foreach ($parts as $i => $part) {
@@ -45,7 +45,7 @@ abstract class SchemaMetatagTagsTestBase extends SchemaMetatagTestHelper {
   /**
    * {@inheritdoc}
    */
-  public function setUp(array $modules = array()) {
+  public function setUp(array $modules = []): void {
     parent::setUp($modules);
 
     // Create an admin user that can manage meta tags.
@@ -57,7 +57,7 @@ abstract class SchemaMetatagTagsTestBase extends SchemaMetatagTestHelper {
   /**
    * Confirm that tags can be saved and that the output of each tag is correct.
    */
-  public function testTagsInputOutput() {
+  public function testTagsInputOutput(): void {
 
     if (empty($this->schemaTags)) {
       return;
@@ -92,10 +92,9 @@ abstract class SchemaMetatagTagsTestBase extends SchemaMetatagTestHelper {
 
         // Rewrite the test values to match the way the form elements are
         // structured.
-        // @TODO There is probably some way to write this as a recursive
+        // @todo There is probably some way to write this as a recursive
         // function that will go more than three levels deep, but for now this
         // is enough.
-        $buffer = '][';
         $prefix = 'metatags[und][';
         $suffix = '][value]';
         $start = '[';
@@ -184,7 +183,7 @@ abstract class SchemaMetatagTagsTestBase extends SchemaMetatagTestHelper {
    *   'Saved the Front page Metatag defaults.',
    * ],
    */
-  public function getPaths() {
+  public function getPaths(): array {
     return [
       [
         'admin/config/search/metatags/config/global',
diff --git a/tests/schema_metatag.helper.test b/tests/schema_metatag.helper.test
index 9324727..32a6d68 100644
--- a/tests/schema_metatag.helper.test
+++ b/tests/schema_metatag.helper.test
@@ -15,7 +15,7 @@ abstract class SchemaMetatagTestHelper extends DrupalWebTestCase {
   /**
    * {@inheritdoc}
    */
-  function setUp(array $modules = array()) {
+  public function setUp(array $modules = []): void {
 
     // Requirements.
     $modules[] = 'ctools';
@@ -35,12 +35,12 @@ abstract class SchemaMetatagTestHelper extends DrupalWebTestCase {
   /**
    * Create a content type for the tests.
    */
-  function createContentType($machine_name, $label) {
+  public function createContentType(string $machine_name, string $label): object {
     // Create a content type.
-    $content_type = $this->drupalCreateContentType(array(
+    $content_type = $this->drupalCreateContentType([
       'type' => $machine_name,
       'name' => $label,
-    ));
+    ]);
 
     // Enable meta tags for this new content type.
     metatag_entity_type_enable('node', $machine_name, TRUE);
@@ -57,7 +57,7 @@ abstract class SchemaMetatagTestHelper extends DrupalWebTestCase {
    * @return object
    *   A user object.
    */
-  function createAdminUser($extra_permissions = array()) {
+  public function createAdminUser(array $extra_permissions = []): ?object {
     $permissions = array(
       // Basic permissions for the module.
       'administer meta tags',
@@ -84,7 +84,7 @@ abstract class SchemaMetatagTestHelper extends DrupalWebTestCase {
    * @return object
    *   A user object.
    */
-  function createUser($extra_permissions) {
+  public function createUser(array $extra_permissions): ?object {
     // Basic permissions for the module.
     $permissions = array(
       'edit meta tags',
@@ -101,16 +101,16 @@ abstract class SchemaMetatagTestHelper extends DrupalWebTestCase {
   /**
    * Returns a new vocabulary with random properties.
    *
-   * @param $vocab_name
+   * @param string|null $vocab_name
    *   If empty a random string will be used.
-   * @param $content_type
+   * @param string|null $content_type
    *   Any content types listed will have a Taxonomy Term reference field added
    *   that points to the new vocabulary.
    *
    * @return object
    *   A vocabulary object.
    */
-  function createVocabulary($vocab_name = NULL, $content_type = NULL) {
+  public function createVocabulary(?string $vocab_name = NULL, ?string $content_type = NULL): object {
     if (empty($vocab_name)) {
       $vocab_name = $this->randomName();
     }
@@ -123,7 +123,7 @@ abstract class SchemaMetatagTestHelper extends DrupalWebTestCase {
     $vocabulary->help = '';
     $vocabulary->weight = mt_rand(0, 10);
     if (!empty($content_type)) {
-      $vocabulary->nodes = array($content_type => $content_type);
+      $vocabulary->nodes = [$content_type => $content_type];
     }
     taxonomy_vocabulary_save($vocabulary);
 
@@ -138,14 +138,14 @@ abstract class SchemaMetatagTestHelper extends DrupalWebTestCase {
    *
    * @param object $vocabulary
    *   The vocabulary to add the term to.
-   * @param string $term_name
+   * @param string|null $term_name
    *   The name to use for the new vocabulary. If none is provided one will be
    *   generated randomly.
    *
    * @return object
    *   A taxonomy term object.
    */
-  function createTerm($vocabulary, $term_name = NULL) {
+  public function createTerm(object $vocabulary, ?string $term_name = NULL): object {
     if (empty($term_name)) {
       $term_name = $this->randomName();
     }
diff --git a/tests/schema_metatag.tags.test b/tests/schema_metatag.tags.test
index 39c97a4..cd3a05f 100644
--- a/tests/schema_metatag.tags.test
+++ b/tests/schema_metatag.tags.test
@@ -8,8 +8,8 @@ class SchemaMetatagTagsTest extends SchemaMetatagTagsTestBase {
   /**
    * {@inheritdoc}
    */
-  public static function getInfo() {
-    return array(
+  public static function getInfo(): array {
+    return [
       'name' => 'Schema Metatag: Base tags',
       'description' => 'Test the base meta tags.',
       'group' => 'Schema Metatag',
@@ -20,13 +20,13 @@ class SchemaMetatagTagsTest extends SchemaMetatagTagsTestBase {
         'schema_metatag',
         'schema_article',
       ],
-    );
+    ];
   }
 
   /**
    * {@inheritdoc}
    */
-  public function setUp(array $modules = array()) {
+  public function setUp(array $modules = []): void {
     $modules[] = 'schema_metatag_test';
     $modules[] = 'schema_web_site';
     parent::setUp($modules);
diff --git a/tests/schema_metatag_test.metatag.inc b/tests/schema_metatag_test.metatag.inc
index 8b8ceb7..cfc0083 100644
--- a/tests/schema_metatag_test.metatag.inc
+++ b/tests/schema_metatag_test.metatag.inc
@@ -8,259 +8,260 @@
 /**
  * Implements hook_metatag_info().
  */
-function schema_metatag_test_metatag_info() {
-  $info['groups']['testing'] = array(
+function schema_metatag_test_metatag_info(): array {
+  $info['groups']['testing'] = [
     'label' => t('Testing'),
-    'form' => array(
+    'form' => [
       '#weight' => 100,
-    ),
-  );
+    ],
+  ];
 
   $weight = 10;
 
   // Basic tags.
-  $defaults = array(
+  $defaults = [
     'class' => 'SchemaNameBase',
     'group' => 'testing',
-    'form' => array(
+    'form' => [
       '#type' => 'textfield',
-    ),
-  );
+    ],
+  ];
 
-  $info['tags']['schema_metatag_test.@type'] = array(
+  $info['tags']['schema_metatag_test.@type'] = [
     'class' => 'SchemaWebSiteType',
     'label' => t('@type'),
     'description' => t('The type of article.'),
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_metatag_test.address'] = array(
+  $info['tags']['schema_metatag_test.address'] = [
     'class' => 'SchemaAddressBase',
     'label' => t('address'),
     'description' => '',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_metatag_test.rating'] = array(
+  $info['tags']['schema_metatag_test.rating'] = [
     'class' => 'SchemaRatingBase',
     'label' => t('rating'),
     'description' => '',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_metatag_test.review'] = array(
+  $info['tags']['schema_metatag_test.review'] = [
     'class' => 'SchemaReviewBase',
     'label' => t('review'),
     'description' => '',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_metatag_test.date'] = array(
+  $info['tags']['schema_metatag_test.date'] = [
     'class' => 'SchemaDateBase',
     'label' => t('date'),
     'description' => '',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_metatag_test.duration'] = array(
+  $info['tags']['schema_metatag_test.duration'] = [
     'class' => 'SchemaDurationBase',
     'label' => t('duration'),
     'description' => '',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_metatag_test.geo'] = array(
+  $info['tags']['schema_metatag_test.geo'] = [
     'class' => 'SchemaGeoBase',
     'label' => t('geo'),
     'description' => '',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_metatag_test.image'] = array(
+  $info['tags']['schema_metatag_test.image'] = [
     'class' => 'SchemaImageBase',
     'label' => t('image'),
     'description' => '',
     'image' => TRUE,
     'url' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_metatag_test.mainEntityOfPage'] = array(
+  $info['tags']['schema_metatag_test.mainEntityOfPage'] = [
     'class' => 'SchemaMainEntityOfPageBase',
     'label' => t('mainEntityOfPage'),
     'description' => '',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_metatag_test.name'] = array(
+  $info['tags']['schema_metatag_test.name'] = [
     'class' => 'SchemaNameBase',
     'label' => t('name'),
     'description' => '',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_metatag_test.offer'] = array(
+  $info['tags']['schema_metatag_test.offer'] = [
     'class' => 'SchemaOfferBase',
     'label' => t('offer'),
     'description' => '',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_metatag_test.organization'] = array(
+  $info['tags']['schema_metatag_test.organization'] = [
     'class' => 'SchemaPersonOrgBase',
     'label' => t('organization'),
     'description' => '',
     'multiple' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_metatag_test.place'] = array(
+  $info['tags']['schema_metatag_test.place'] = [
     'class' => 'SchemaPlaceBase',
     'label' => t('place'),
     'description' => '',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_metatag_test.url'] = array(
+  $info['tags']['schema_metatag_test.url'] = [
     'class' => 'SchemaUrlBase',
     'label' => t('url'),
     'description' => '',
     'url' => TRUE,
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_metatag_test.action'] = array(
+  $info['tags']['schema_metatag_test.action'] = [
     'class' => 'SchemaWebSitePotentialAction',
     'label' => t('action'),
     'description' => '',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_metatag_test.country'] = array(
+  $info['tags']['schema_metatag_test.country'] = [
     'class' => 'SchemaCountryBase',
     'label' => t('country'),
     'description' => '',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_metatag_test.creativeWork'] = array(
+  $info['tags']['schema_metatag_test.creativeWork'] = [
     'class' => 'SchemaCreativeWorkBase',
     'label' => t('creativeWork'),
     'description' => '',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_metatag_test.entryPoint'] = array(
+  $info['tags']['schema_metatag_test.entryPoint'] = [
     'class' => 'SchemaEntryPointBase',
     'label' => t('entryPoint'),
     'description' => '',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_metatag_test.event'] = array(
+  $info['tags']['schema_metatag_test.event'] = [
     'class' => 'SchemaEventBase',
     'label' => t('event'),
     'description' => '',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_metatag_test.hasPart'] = array(
+  $info['tags']['schema_metatag_test.hasPart'] = [
     'class' => 'SchemaHasPartBase',
     'label' => t('hasPart'),
     'description' => '',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_metatag_test.nutritionInformation'] = array(
+  $info['tags']['schema_metatag_test.nutritionInformation'] = [
     'class' => 'SchemaNutritionInformationBase',
     'label' => t('nutritionInformation'),
     'description' => '',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_metatag_test.openingHoursSpecification'] = array(
+  $info['tags']['schema_metatag_test.openingHoursSpecification'] = [
     'class' => 'SchemaOpeningHoursSpecificationBase',
     'label' => t('openingHoursSpecification'),
     'description' => '',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_metatag_test.programMembership'] = array(
+  $info['tags']['schema_metatag_test.programMembership'] = [
     'class' => 'SchemaProgramMembershipBase',
     'label' => t('programMembership'),
     'description' => '',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_metatag_test.thing'] = array(
+  $info['tags']['schema_metatag_test.thing'] = [
     'class' => 'SchemaThingBase',
     'label' => t('thing'),
     'description' => '',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_metatag_test.trueFalse'] = array(
+  $info['tags']['schema_metatag_test.trueFalse'] = [
     'class' => 'SchemaTrueFalseBase',
     'label' => t('trueFalse'),
     'description' => '',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_metatag_test.monetaryAmount'] = array(
+  $info['tags']['schema_metatag_test.monetaryAmount'] = [
     'class' => 'SchemaMonetaryAmountBase',
     'label' => t('monetaryAmount'),
     'description' => '',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_metatag_test.contactPoint'] = array(
+  $info['tags']['schema_metatag_test.contactPoint'] = [
     'class' => 'SchemaContactPointBase',
     'label' => t('contactPoint'),
     'description' => '',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_metatag_test.speakable'] = array(
+  $info['tags']['schema_metatag_test.speakable'] = [
     'class' => 'SchemaSpeakableBase',
     'label' => t('speakable'),
     'description' => '',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_metatag_test.idReference'] = array(
+  $info['tags']['schema_metatag_test.idReference'] = [
     'class' => 'SchemaIdReferenceBase',
     'label' => t('idReference'),
     'description' => '',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_metatag_test.step'] = array(
+  $info['tags']['schema_metatag_test.step'] = [
     'class' => 'SchemaHowToStepBase',
     'label' => t('step'),
     'description' => '',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_metatag_test.question'] = array(
+  $info['tags']['schema_metatag_test.question'] = [
     'class' => 'SchemaQuestionBase',
     'label' => t('question'),
     'description' => '',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_metatag_test.answer'] = array(
+  $info['tags']['schema_metatag_test.answer'] = [
     'class' => 'SchemaAnswerBase',
     'label' => t('answer'),
     'description' => '',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
-  $info['tags']['schema_metatag_test.governmentService'] = array(
+  $info['tags']['schema_metatag_test.governmentService'] = [
     'class' => 'SchemaGovernmentServiceBase',
     'label' => t('governmentService'),
     'description' => '',
     'weight' => ++$weight,
-  ) + $defaults;
+  ] + $defaults;
 
   return $info;
+
 }
diff --git a/tests/schema_metatag_test.module b/tests/schema_metatag_test.module
index 26f03c7..fcd4cf6 100644
--- a/tests/schema_metatag_test.module
+++ b/tests/schema_metatag_test.module
@@ -1,11 +1,16 @@
 <?php
 
+/**
+ * @file
+ * Pages and callbacks for tests.
+ */
+
 /**
  * Implements hook_ctools_plugin_api().
  */
-function schema_metatag_test_ctools_plugin_api($owner, $api) {
+function schema_metatag_test_ctools_plugin_api(string $owner, string $api): ?array {
   if ($owner == 'metatag' && $api == 'metatag') {
-    return array('version' => 1);
+    return ['version' => 1];
   }
 }
 
@@ -14,33 +19,35 @@ function schema_metatag_test_ctools_plugin_api($owner, $api) {
  *
  * Provides simple pages to test against.
  */
-function schema_metatag_test_menu() {
+function schema_metatag_test_menu(): array {
   $string = 'moosqueakoinkmeow';
-  $defaults = array(
+  $defaults = [
     'page callback' => 'schema_metatag_test_page_callback',
+    // Page callback without restriction for testing purposes.
     'access callback' => TRUE,
     'type' => MENU_NORMAL_ITEM,
-  );
+  ];
 
-  $items[$string] = array(
+  $items[$string] = [
     'title' => 'Test page',
     'description' => 'An average page.',
-  ) + $defaults;
+  ] + $defaults;
 
   // 255 / 19 chars = 13.
-  $long_path = implode('/', array_pad(array(), 13, $string));
-  $items[$long_path . '/%'] = array(
+  $long_path = implode('/', array_pad([], 13, $string));
+  $items[$long_path . '/%'] = [
     'title' => 'Test page with really long URL',
     'description' => 'The URL is really, really, really long.',
-    'page arguments' => array(13),
-  ) + $defaults;
+    'page arguments' => [13],
+  ] + $defaults;
 
   // User-specific meta tags.
-  $items['account-test-page'] = array(
+  $items['account-test-page'] = [
     'title' => 'User test page',
     'description' => 'Test how user tokens are handled.',
+    // Page callback without restriction for testing purposes.
     'page callback' => 'schema_metatag_test_user_page_callback',
-  ) + $defaults;
+  ] + $defaults;
 
   return $items;
 }
@@ -48,14 +55,14 @@ function schema_metatag_test_menu() {
 /**
  * Simple page callback for test pages.
  */
-function schema_metatag_test_page_callback() {
+function schema_metatag_test_page_callback(): string {
   return t('Test page.');
 }
 
 /**
  * Simple page callback for the user test page.
  */
-function schema_metatag_test_user_page_callback() {
+function schema_metatag_test_user_page_callback(): string {
   global $user;
 
   $username = 'Anonymous visitor';
