Passed
Branch v4 (2d2527)
by Andrew
09:42 queued 15s
created
src/seomatic-config/productmeta/TitleContainer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@
 block discarded – undo
19 19
  */
20 20
 
21 21
 return [
22
-    MetaTitleContainer::CONTAINER_TYPE . TitleService::GENERAL_HANDLE => [
22
+    MetaTitleContainer::CONTAINER_TYPE.TitleService::GENERAL_HANDLE => [
23 23
         'name' => 'General',
24 24
         'description' => 'Meta Title Tag',
25 25
         'handle' => TitleService::GENERAL_HANDLE,
26
-        'class' => (string)MetaTitleContainer::class,
26
+        'class' => (string) MetaTitleContainer::class,
27 27
         'include' => true,
28 28
         'dependencies' => [
29 29
         ],
Please login to merge, or discard this patch.
src/seomatic-config/productmeta/JsonLdContainer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@
 block discarded – undo
19 19
  */
20 20
 
21 21
 return [
22
-    MetaJsonLdContainer::CONTAINER_TYPE . JsonLdService::GENERAL_HANDLE => [
22
+    MetaJsonLdContainer::CONTAINER_TYPE.JsonLdService::GENERAL_HANDLE => [
23 23
         'name' => 'General',
24 24
         'description' => 'JsonLd Tags',
25 25
         'handle' => JsonLdService::GENERAL_HANDLE,
26
-        'class' => (string)MetaJsonLdContainer::class,
26
+        'class' => (string) MetaJsonLdContainer::class,
27 27
         'include' => true,
28 28
         'dependencies' => [
29 29
         ],
Please login to merge, or discard this patch.
src/seomatic-config/eventmeta/TitleContainer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@
 block discarded – undo
19 19
  */
20 20
 
21 21
 return [
22
-    MetaTitleContainer::CONTAINER_TYPE . TitleService::GENERAL_HANDLE => [
22
+    MetaTitleContainer::CONTAINER_TYPE.TitleService::GENERAL_HANDLE => [
23 23
         'name' => 'General',
24 24
         'description' => 'Meta Title Tag',
25 25
         'handle' => TitleService::GENERAL_HANDLE,
26
-        'class' => (string)MetaTitleContainer::class,
26
+        'class' => (string) MetaTitleContainer::class,
27 27
         'include' => true,
28 28
         'dependencies' => [
29 29
         ],
Please login to merge, or discard this patch.
src/seomatic-config/eventmeta/JsonLdContainer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@
 block discarded – undo
19 19
  */
20 20
 
21 21
 return [
22
-    MetaJsonLdContainer::CONTAINER_TYPE . JsonLdService::GENERAL_HANDLE => [
22
+    MetaJsonLdContainer::CONTAINER_TYPE.JsonLdService::GENERAL_HANDLE => [
23 23
         'name' => 'General',
24 24
         'description' => 'JsonLd Tags',
25 25
         'handle' => JsonLdService::GENERAL_HANDLE,
26
-        'class' => (string)MetaJsonLdContainer::class,
26
+        'class' => (string) MetaJsonLdContainer::class,
27 27
         'include' => true,
28 28
         'dependencies' => [
29 29
         ],
Please login to merge, or discard this patch.
src/controllers/SitemapController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     /**
32 32
      * @inheritdoc
33 33
      */
34
-    protected array|bool|int $allowAnonymous = [
34
+    protected array | bool | int $allowAnonymous = [
35 35
         'sitemap-index',
36 36
         'sitemap-index-redirect',
37 37
         'sitemap',
Please login to merge, or discard this patch.
src/controllers/MetaContainerController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     /**
37 37
      * @inheritdoc
38 38
      */
39
-    protected array|bool|int $allowAnonymous = [
39
+    protected array | bool | int $allowAnonymous = [
40 40
         'all-meta-containers',
41 41
         'meta-title-container',
42 42
         'meta-tag-container',
Please login to merge, or discard this patch.
src/controllers/FrontendTemplateController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     /**
31 31
      * @inheritdoc
32 32
      */
33
-    protected array|bool|int $allowAnonymous = [
33
+    protected array | bool | int $allowAnonymous = [
34 34
         'humans',
35 35
         'robots',
36 36
         'ads',
Please login to merge, or discard this patch.
src/controllers/ContentSeoController.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     /**
47 47
      * @var    bool|array
48 48
      */
49
-    protected array|bool|int $allowAnonymous = [
49
+    protected array | bool | int $allowAnonymous = [
50 50
     ];
51 51
 
52 52
     // Public Methods
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         // Query the db table
101 101
         $offset = ($page - 1) * $per_page;
102 102
         $currentSiteHandle = '';
103
-        if ((int)$siteId !== 0) {
103
+        if ((int) $siteId !== 0) {
104 104
             $site = Craft::$app->getSites()->getSiteById($siteId);
105 105
             if ($site !== null) {
106 106
                 $currentSiteHandle = $site->handle;
@@ -155,11 +155,11 @@  discard block
 block discarded – undo
155 155
                     $numGrades = \count(SettingsController::SETUP_GRADES);
156 156
                     $numFields = \count(SettingsController::SEO_SETUP_FIELDS);
157 157
                     foreach (SettingsController::SEO_SETUP_FIELDS as $setupField => $setupLabel) {
158
-                        $stat += (int)!empty($metaBundle->metaGlobalVars[$setupField]);
158
+                        $stat += (int) !empty($metaBundle->metaGlobalVars[$setupField]);
159 159
                         $value = $variables['contentSetupChecklist'][$setupField]['value'] ?? 0;
160 160
                         $variables['contentSetupChecklist'][$setupField] = [
161 161
                             'label' => $setupLabel,
162
-                            'value' => $value + (int)!empty($metaBundle->metaGlobalVars[$setupField]),
162
+                            'value' => $value + (int) !empty($metaBundle->metaGlobalVars[$setupField]),
163 163
                         ];
164 164
                     }
165 165
                     $stat = round($numGrades - (($stat * $numGrades) / $numFields));
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,8 +66,8 @@
 block discarded – undo
66 66
         string $sort = 'sourceName|asc',
67 67
         int    $page = 1,
68 68
         int    $per_page = 20,
69
-               $filter = '',
70
-               $siteId = 0
69
+                $filter = '',
70
+                $siteId = 0
71 71
     ): Response
72 72
     {
73 73
         $data = [];
Please login to merge, or discard this patch.
src/controllers/JsonLdController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     /**
31 31
      * @inheritdoc
32 32
      */
33
-    protected array|bool|int $allowAnonymous = [
33
+    protected array | bool | int $allowAnonymous = [
34 34
         'get-type',
35 35
         'get-decomposed-type',
36 36
         'get-type-array',
Please login to merge, or discard this patch.