Passed
Push — v3 ( 655881...eec076 )
by Andrew
19:24 queued 14s
created
src/base/Container.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
     public function normalizeContainerData()
102 102
     {
103 103
         // Set the appropriate class for this container
104
-        $this->class = (string)static::class;
104
+        $this->class = (string) static::class;
105 105
     }
106 106
 
107 107
     /**
Please login to merge, or discard this patch.
src/models/MetaSiteVars.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -207,10 +207,10 @@
 block discarded – undo
207 207
         }
208 208
         // Make sure these are strings
209 209
         if (!empty($this->facebookProfileId)) {
210
-            $this->facebookProfileId = (string)$this->facebookProfileId;
210
+            $this->facebookProfileId = (string) $this->facebookProfileId;
211 211
         }
212 212
         if (!empty($this->facebookAppId)) {
213
-            $this->facebookAppId = (string)$this->facebookAppId;
213
+            $this->facebookAppId = (string) $this->facebookAppId;
214 214
         }
215 215
         // Identity
216 216
         if ($this->identity !== null && \is_array($this->identity)) {
Please login to merge, or discard this patch.
src/helpers/Config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
      */
107 107
     private static function getConfigFilePath(string $alias, string $filePath): string
108 108
     {
109
-        $path = DIRECTORY_SEPARATOR . ltrim($filePath, DIRECTORY_SEPARATOR);
109
+        $path = DIRECTORY_SEPARATOR.ltrim($filePath, DIRECTORY_SEPARATOR);
110 110
         $path = Craft::getAlias($alias)
111 111
             . DIRECTORY_SEPARATOR
112 112
             . self::LOCAL_CONFIG_DIR
Please login to merge, or discard this patch.
src/controllers/PreviewController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
         $html = '';
54 54
 
55 55
         // Don't allow the preview to be accessed publicly
56
-        $this->requireAuthorization(Seomatic::SEOMATIC_PREVIEW_AUTHORIZATION_KEY . $elementId);
56
+        $this->requireAuthorization(Seomatic::SEOMATIC_PREVIEW_AUTHORIZATION_KEY.$elementId);
57 57
 
58 58
         /** @var Element $element */
59 59
         $element = Craft::$app->getElements()->getElementById($elementId, null, $siteId);
Please login to merge, or discard this patch.
src/controllers/ContentSeoController.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         // Query the db table
104 104
         $offset = ($page - 1) * $per_page;
105 105
         $currentSiteHandle = '';
106
-        if ((int)$siteId !== 0) {
106
+        if ((int) $siteId !== 0) {
107 107
             $site = Craft::$app->getSites()->getSiteById($siteId);
108 108
             if ($site !== null) {
109 109
                 $currentSiteHandle = $site->handle;
@@ -158,11 +158,11 @@  discard block
 block discarded – undo
158 158
                     $numGrades = \count(SettingsController::SETUP_GRADES);
159 159
                     $numFields = \count(SettingsController::SEO_SETUP_FIELDS);
160 160
                     foreach (SettingsController::SEO_SETUP_FIELDS as $setupField => $setupLabel) {
161
-                        $stat += (int)!empty($metaBundle->metaGlobalVars[$setupField]);
161
+                        $stat += (int) !empty($metaBundle->metaGlobalVars[$setupField]);
162 162
                         $value = $variables['contentSetupChecklist'][$setupField]['value'] ?? 0;
163 163
                         $variables['contentSetupChecklist'][$setupField] = [
164 164
                             'label' => $setupLabel,
165
-                            'value' => $value + (int)!empty($metaBundle->metaGlobalVars[$setupField]),
165
+                            'value' => $value + (int) !empty($metaBundle->metaGlobalVars[$setupField]),
166 166
                         ];
167 167
                     }
168 168
                     $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
         $data = [];
73 73
         $sortField = 'sourceName';
Please login to merge, or discard this patch.
tests/_bootstrap.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -5,12 +5,12 @@
 block discarded – undo
5 5
 ini_set('date.timezone', 'UTC');
6 6
 
7 7
 // Use the current installation of Craft
8
-define('CRAFT_STORAGE_PATH', __DIR__ . '/_craft/storage');
9
-define('CRAFT_TEMPLATES_PATH', __DIR__ . '/_craft/templates');
10
-define('CRAFT_CONFIG_PATH', __DIR__ . '/_craft/config');
11
-define('CRAFT_MIGRATIONS_PATH', __DIR__ . '/_craft/migrations');
12
-define('CRAFT_TRANSLATIONS_PATH', __DIR__ . '/_craft/translations');
13
-define('CRAFT_VENDOR_PATH', dirname(__DIR__) . '/vendor');
8
+define('CRAFT_STORAGE_PATH', __DIR__.'/_craft/storage');
9
+define('CRAFT_TEMPLATES_PATH', __DIR__.'/_craft/templates');
10
+define('CRAFT_CONFIG_PATH', __DIR__.'/_craft/config');
11
+define('CRAFT_MIGRATIONS_PATH', __DIR__.'/_craft/migrations');
12
+define('CRAFT_TRANSLATIONS_PATH', __DIR__.'/_craft/translations');
13
+define('CRAFT_VENDOR_PATH', dirname(__DIR__).'/vendor');
14 14
 define('CRAFT_TESTS_PATH', __DIR__);
15 15
 
16 16
 $devMode = true;
Please login to merge, or discard this patch.
src/helpers/PluginTemplate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
         array $params = [],
67 67
         string $minifier = null
68 68
     ): string {
69
-        $template = 'seomatic/' . $templatePath;
69
+        $template = 'seomatic/'.$templatePath;
70 70
         $oldMode = Craft::$app->view->getTemplateMode();
71 71
         // Look for the template on the frontend first
72 72
         try {
Please login to merge, or discard this patch.
src/models/MetaSitemapVars.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -99,16 +99,16 @@
 block discarded – undo
99 99
     {
100 100
         // Enforce types
101 101
         if ($this->sitemapUrls !== null) {
102
-            $this->sitemapUrls = (bool)$this->sitemapUrls;
102
+            $this->sitemapUrls = (bool) $this->sitemapUrls;
103 103
         }
104 104
         if ($this->sitemapAssets !== null) {
105
-            $this->sitemapAssets = (bool)$this->sitemapAssets;
105
+            $this->sitemapAssets = (bool) $this->sitemapAssets;
106 106
         }
107 107
         if ($this->sitemapFiles !== null) {
108
-            $this->sitemapFiles = (bool)$this->sitemapFiles;
108
+            $this->sitemapFiles = (bool) $this->sitemapFiles;
109 109
         }
110 110
         if ($this->sitemapAltLinks !== null) {
111
-            $this->sitemapAltLinks = (bool)$this->sitemapAltLinks;
111
+            $this->sitemapAltLinks = (bool) $this->sitemapAltLinks;
112 112
         }
113 113
     }
114 114
 
Please login to merge, or discard this patch.
src/seomatic-config/globalmeta/FrontendTemplatesContainer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     'name' => 'Frontend Templates',
23 23
     'description' => 'Templates that are rendered on the frontend',
24 24
     'handle' => FrontendTemplates::FRONTENDTEMPLATES_CONTAINER,
25
-    'class' => (string)FrontendTemplateContainer::class,
25
+    'class' => (string) FrontendTemplateContainer::class,
26 26
     'include' => true,
27 27
     'data' => [
28 28
         FrontendTemplates::HUMANS_TXT_HANDLE => [
Please login to merge, or discard this patch.