Passed
Push — develop ( e888e4...569633 )
by Andrew
19:20 queued 10:31
created
src/seomatic-config/entrymeta/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/entrymeta/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/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/seoelements/SeoEvent.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         BaseEvent::on(
85 85
             CalendarsService::class,
86 86
             CalendarsService::EVENT_AFTER_SAVE,
87
-            function (SaveModelEvent $event) {
87
+            function(SaveModelEvent $event) {
88 88
                 Craft::debug(
89 89
                     'CalendarsService::EVENT_AFTER_DELETE',
90 90
                     __METHOD__
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         BaseEvent::on(
96 96
             CalendarsService::class,
97 97
             CalendarsService::EVENT_AFTER_DELETE,
98
-            function (DeleteModelEvent $event) {
98
+            function(DeleteModelEvent $event) {
99 99
                 Craft::debug(
100 100
                     'CalendarsService::EVENT_AFTER_DELETE',
101 101
                     __METHOD__
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
             BaseEvent::on(
111 111
                 CalendarsService::class,
112 112
                 CalendarsService::EVENT_AFTER_SAVE,
113
-                function (SaveModelEvent $event) {
113
+                function(SaveModelEvent $event) {
114 114
                     Craft::debug(
115 115
                         'CalendarsService::EVENT_AFTER_SAVE',
116 116
                         __METHOD__
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
             BaseEvent::on(
136 136
                 CalendarsService::class,
137 137
                 CalendarsService::EVENT_AFTER_DELETE,
138
-                function (DeleteModelEvent $event) {
138
+                function(DeleteModelEvent $event) {
139 139
                     Craft::debug(
140 140
                         'CalendarsService::EVENT_AFTER_DELETE',
141 141
                         __METHOD__
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
         // Install only for non-console Control Panel requests
166 166
         if ($request->getIsCpRequest() && !$request->getIsConsoleRequest()) {
167 167
             // Events sidebar
168
-            Seomatic::$view->hook('cp.solspace.calendar.events.edit.details', function (&$context) {
168
+            Seomatic::$view->hook('cp.solspace.calendar.events.edit.details', function(&$context) {
169 169
                 $html = '';
170 170
                 Seomatic::$view->registerAssetBundle(SeomaticAsset::class);
171 171
                 /** @var Event $event */
@@ -238,8 +238,8 @@  discard block
 block discarded – undo
238 238
         $query = Event::find()
239 239
             ->setCalendar($metaBundle->sourceHandle)
240 240
             ->setLoadOccurrences(false)
241
-            ->siteId((int)$metaBundle->sourceSiteId)
242
-            ->limit((int)$metaBundle->metaSitemapVars->sitemapLimit);
241
+            ->siteId((int) $metaBundle->sourceSiteId)
242
+            ->limit((int) $metaBundle->metaSitemapVars->sitemapLimit);
243 243
 
244 244
         return $query;
245 245
     }
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
             ConfigHelper::getConfigFromFile(self::configFilePath()),
401 401
             [
402 402
                 'sourceId' => $sourceModel->id,
403
-                'sourceName' => (string)$sourceModel->name,
403
+                'sourceName' => (string) $sourceModel->name,
404 404
                 'sourceHandle' => $sourceModel->handle,
405 405
             ]
406 406
         );
Please login to merge, or discard this patch.
src/services/ServicesTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,8 +58,8 @@  discard block
 block discarded – undo
58 58
         // Constants aren't allowed in traits until PHP >= 8.2
59 59
         $majorVersion = '3';
60 60
         // Dev server container name & port are based on the major version of this plugin
61
-        $devPort = 3000 + (int)$majorVersion;
62
-        $versionName = 'v' . $majorVersion;
61
+        $devPort = 3000 + (int) $majorVersion;
62
+        $versionName = 'v'.$majorVersion;
63 63
         // Merge in the passed config, so it our config can be overridden by Plugins::pluginConfigs['vite']
64 64
         // ref: https://github.com/craftcms/cms/issues/1989
65 65
         $config = ArrayHelper::merge([
@@ -80,8 +80,8 @@  discard block
 block discarded – undo
80 80
                     'assetClass' => SeomaticAsset::class,
81 81
                     'checkDevServer' => true,
82 82
                     'class' => VitePluginService::class,
83
-                    'devServerInternal' => 'http://craft-seomatic-' . $versionName . '-buildchain-dev:' . $devPort,
84
-                    'devServerPublic' => 'http://localhost:' . $devPort,
83
+                    'devServerInternal' => 'http://craft-seomatic-'.$versionName.'-buildchain-dev:'.$devPort,
84
+                    'devServerPublic' => 'http://localhost:'.$devPort,
85 85
                     'errorEntry' => 'src/js/seomatic.js',
86 86
                     'useDevServer' => true,
87 87
                 ],
Please login to merge, or discard this patch.
src/services/Sitemaps.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -42,11 +42,11 @@  discard block
 block discarded – undo
42 42
     // Constants
43 43
     // =========================================================================
44 44
 
45
-    const SEOMATIC_SITEMAPINDEX_CONTAINER = Seomatic::SEOMATIC_HANDLE . SitemapIndexTemplate::TEMPLATE_TYPE;
45
+    const SEOMATIC_SITEMAPINDEX_CONTAINER = Seomatic::SEOMATIC_HANDLE.SitemapIndexTemplate::TEMPLATE_TYPE;
46 46
 
47
-    const SEOMATIC_SITEMAP_CONTAINER = Seomatic::SEOMATIC_HANDLE . SitemapTemplate::TEMPLATE_TYPE;
47
+    const SEOMATIC_SITEMAP_CONTAINER = Seomatic::SEOMATIC_HANDLE.SitemapTemplate::TEMPLATE_TYPE;
48 48
 
49
-    const SEOMATIC_SITEMAPCUSTOM_CONTAINER = Seomatic::SEOMATIC_HANDLE . SitemapCustomTemplate::TEMPLATE_TYPE;
49
+    const SEOMATIC_SITEMAPCUSTOM_CONTAINER = Seomatic::SEOMATIC_HANDLE.SitemapCustomTemplate::TEMPLATE_TYPE;
50 50
 
51 51
     const SEARCH_ENGINE_SUBMISSION_URLS = [
52 52
         'google' => 'https://www.google.com/ping?sitemap=',
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
             Event::on(
92 92
                 UrlManager::class,
93 93
                 UrlManager::EVENT_REGISTER_SITE_URL_RULES,
94
-                function (RegisterUrlRulesEvent $event) {
94
+                function(RegisterUrlRulesEvent $event) {
95 95
                     Craft::debug(
96 96
                         'UrlManager::EVENT_REGISTER_SITE_URL_RULES',
97 97
                         __METHOD__
@@ -244,19 +244,19 @@  discard block
 block discarded – undo
244 244
                         $siteId = $groupSiteIds[0];
245 245
                         $sitemapIndexUrl = $this->sitemapIndexUrlForSiteId($siteId);
246 246
                         if (!empty($sitemapIndexUrl)) {
247
-                            $submissionUrl = $url . urlencode($sitemapIndexUrl);
247
+                            $submissionUrl = $url.urlencode($sitemapIndexUrl);
248 248
                             // create new guzzle client
249 249
                             $guzzleClient = Craft::createGuzzleClient(['timeout' => 5, 'connect_timeout' => 5]);
250 250
                             // Submit the sitemap index to each search engine
251 251
                             try {
252 252
                                 $guzzleClient->post($submissionUrl);
253 253
                                 Craft::info(
254
-                                    'Sitemap index submitted to: ' . $submissionUrl,
254
+                                    'Sitemap index submitted to: '.$submissionUrl,
255 255
                                     __METHOD__
256 256
                                 );
257 257
                             } catch (\Exception $e) {
258 258
                                 Craft::error(
259
-                                    'Error submitting sitemap index to: ' . $submissionUrl . ' - ' . $e->getMessage(),
259
+                                    'Error submitting sitemap index to: '.$submissionUrl.' - '.$e->getMessage(),
260 260
                                     __METHOD__
261 261
                                 );
262 262
                             }
@@ -316,19 +316,19 @@  discard block
 block discarded – undo
316 316
             foreach ($searchEngineUrls as &$url) {
317 317
                 $sitemapUrl = $this->sitemapUrlForBundle($sourceBundleType, $sourceHandle, $sourceSiteId);
318 318
                 if (!empty($sitemapUrl)) {
319
-                    $submissionUrl = $url . urlencode($sitemapUrl);
319
+                    $submissionUrl = $url.urlencode($sitemapUrl);
320 320
                     // create new guzzle client
321 321
                     $guzzleClient = Craft::createGuzzleClient(['timeout' => 5, 'connect_timeout' => 5]);
322 322
                     // Submit the sitemap index to each search engine
323 323
                     try {
324 324
                         $guzzleClient->post($submissionUrl);
325 325
                         Craft::info(
326
-                            'Sitemap index submitted to: ' . $submissionUrl,
326
+                            'Sitemap index submitted to: '.$submissionUrl,
327 327
                             __METHOD__
328 328
                         );
329 329
                     } catch (\Exception $e) {
330 330
                         Craft::error(
331
-                            'Error submitting sitemap index to: ' . $submissionUrl . ' - ' . $e->getMessage(),
331
+                            'Error submitting sitemap index to: '.$submissionUrl.' - '.$e->getMessage(),
332 332
                             __METHOD__
333 333
                         );
334 334
                     }
@@ -394,19 +394,19 @@  discard block
 block discarded – undo
394 394
             foreach ($searchEngineUrls as &$url) {
395 395
                 $sitemapUrl = $this->sitemapCustomUrlForSiteId($siteId);
396 396
                 if (!empty($sitemapUrl)) {
397
-                    $submissionUrl = $url . urlencode($sitemapUrl);
397
+                    $submissionUrl = $url.urlencode($sitemapUrl);
398 398
                     // create new guzzle client
399 399
                     $guzzleClient = Craft::createGuzzleClient(['timeout' => 5, 'connect_timeout' => 5]);
400 400
                     // Submit the sitemap index to each search engine
401 401
                     try {
402 402
                         $guzzleClient->post($submissionUrl);
403 403
                         Craft::info(
404
-                            'Sitemap Custom submitted to: ' . $submissionUrl,
404
+                            'Sitemap Custom submitted to: '.$submissionUrl,
405 405
                             __METHOD__
406 406
                         );
407 407
                     } catch (\Exception $e) {
408 408
                         Craft::error(
409
-                            'Error submitting sitemap index to: ' . $submissionUrl . ' - ' . $e->getMessage(),
409
+                            'Error submitting sitemap index to: '.$submissionUrl.' - '.$e->getMessage(),
410 410
                             __METHOD__
411 411
                         );
412 412
                     }
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
         }
485 485
 
486 486
         foreach ($sites as $site) {
487
-            $result .= 'sitemap: ' . $this->sitemapIndexUrlForSiteId($site->id) . PHP_EOL;
487
+            $result .= 'sitemap: '.$this->sitemapIndexUrlForSiteId($site->id).PHP_EOL;
488 488
         }
489 489
 
490 490
         return rtrim($result, PHP_EOL);
@@ -516,9 +516,9 @@  discard block
 block discarded – undo
516 516
         // Since we want a stale-while-revalidate pattern, only invalidate the cache if we're asked to
517 517
         if ($invalidateCache) {
518 518
             $cache = Craft::$app->getCache();
519
-            TagDependency::invalidate($cache, SitemapTemplate::SITEMAP_CACHE_TAG . $handle . $siteId);
519
+            TagDependency::invalidate($cache, SitemapTemplate::SITEMAP_CACHE_TAG.$handle.$siteId);
520 520
             Craft::info(
521
-                'Sitemap cache cleared: ' . $handle,
521
+                'Sitemap cache cleared: '.$handle,
522 522
                 __METHOD__
523 523
             );
524 524
         }
Please login to merge, or discard this patch.