@@ -58,8 +58,8 @@ discard block |
||
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 |
||
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 | ], |
@@ -42,11 +42,11 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | } |
@@ -50,16 +50,16 @@ |
||
50 | 50 | public function includeMetaData($dependency) |
51 | 51 | { |
52 | 52 | Craft::beginProfile('MetaJsonLdContainer::includeMetaData', __METHOD__); |
53 | - $uniqueKey = $this->handle . $dependency->tags[3]; |
|
53 | + $uniqueKey = $this->handle.$dependency->tags[3]; |
|
54 | 54 | $cache = Craft::$app->getCache(); |
55 | 55 | if ($this->clearCache) { |
56 | 56 | TagDependency::invalidate($cache, $dependency->tags[3]); |
57 | 57 | } |
58 | 58 | $tagData = $cache->getOrSet( |
59 | - self::CONTAINER_TYPE . $uniqueKey, |
|
60 | - function () use ($uniqueKey) { |
|
59 | + self::CONTAINER_TYPE.$uniqueKey, |
|
60 | + function() use ($uniqueKey) { |
|
61 | 61 | Craft::info( |
62 | - self::CONTAINER_TYPE . ' cache miss: ' . $uniqueKey, |
|
62 | + self::CONTAINER_TYPE.' cache miss: '.$uniqueKey, |
|
63 | 63 | __METHOD__ |
64 | 64 | ); |
65 | 65 | $tagData = []; |
@@ -40,12 +40,12 @@ discard block |
||
40 | 40 | $siteUrl = MetaValue::parseString($siteUrl); |
41 | 41 | // Extract out just the path part |
42 | 42 | $parts = self::decomposeUrl($path); |
43 | - $path = $parts['path'] . $parts['suffix']; |
|
44 | - $url = rtrim($siteUrl, '/') . '/' . ltrim($path, '/'); |
|
43 | + $path = $parts['path'].$parts['suffix']; |
|
44 | + $url = rtrim($siteUrl, '/').'/'.ltrim($path, '/'); |
|
45 | 45 | // Handle trailing slashes properly for generated URLs |
46 | 46 | $generalConfig = Craft::$app->getConfig()->getGeneral(); |
47 | 47 | if ($generalConfig->addTrailingSlashesToUrls && !preg_match('/\.[^\/]+$/', $url)) { |
48 | - $url = rtrim($url, '/') . '/'; |
|
48 | + $url = rtrim($url, '/').'/'; |
|
49 | 49 | } |
50 | 50 | if (!$generalConfig->addTrailingSlashesToUrls) { |
51 | 51 | $url = rtrim($url, '/'); |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | // Handle trailing slashes properly for generated URLs |
123 | 123 | $generalConfig = Craft::$app->getConfig()->getGeneral(); |
124 | 124 | if ($generalConfig->addTrailingSlashesToUrls && !preg_match('/\.[^\/]+$/', $url)) { |
125 | - $url = rtrim($url, '/') . '/'; |
|
125 | + $url = rtrim($url, '/').'/'; |
|
126 | 126 | } |
127 | 127 | if (!$generalConfig->addTrailingSlashesToUrls) { |
128 | 128 | $url = rtrim($url, '/'); |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | $urlParts = parse_url($url); |
143 | 143 | $encodedUrl = ""; |
144 | 144 | if (isset($urlParts['scheme'])) { |
145 | - $encodedUrl .= $urlParts['scheme'] . '://'; |
|
145 | + $encodedUrl .= $urlParts['scheme'].'://'; |
|
146 | 146 | } |
147 | 147 | if (isset($urlParts['host'])) { |
148 | 148 | $encodedUrl .= $urlParts['host']; |
@@ -155,15 +155,15 @@ discard block |
||
155 | 155 | foreach ($query as $j => $value) { |
156 | 156 | $value = explode('=', $value, 2); |
157 | 157 | if (count($value) === 2) { |
158 | - $query[$j] = urlencode($value[0]) . '=' . urlencode($value[1]); |
|
158 | + $query[$j] = urlencode($value[0]).'='.urlencode($value[1]); |
|
159 | 159 | } else { |
160 | 160 | $query[$j] = urlencode($value[0]); |
161 | 161 | } |
162 | 162 | } |
163 | - $encodedUrl .= '?' . implode('&', $query); |
|
163 | + $encodedUrl .= '?'.implode('&', $query); |
|
164 | 164 | } |
165 | 165 | if (isset($urlParts['fragment'])) { |
166 | - $encodedUrl .= '#' . $urlParts['fragment']; |
|
166 | + $encodedUrl .= '#'.$urlParts['fragment']; |
|
167 | 167 | } |
168 | 168 | |
169 | 169 | return $encodedUrl; |
@@ -196,11 +196,11 @@ discard block |
||
196 | 196 | |
197 | 197 | if (filter_var($pathOrUrl, FILTER_VALIDATE_URL)) { |
198 | 198 | $url_parts = parse_url($pathOrUrl); |
199 | - $result['prefix'] = $url_parts['scheme'] . '://' . $url_parts['host']; |
|
199 | + $result['prefix'] = $url_parts['scheme'].'://'.$url_parts['host']; |
|
200 | 200 | $result['path'] = $url_parts['path'] ?? ''; |
201 | 201 | $result['suffix'] = ''; |
202 | - $result['suffix'] .= empty($url_parts['query']) ? '' : '?' . $url_parts['query']; |
|
203 | - $result['suffix'] .= empty($url_parts['fragment']) ? '' : '#' . $url_parts['fragment']; |
|
202 | + $result['suffix'] .= empty($url_parts['query']) ? '' : '?'.$url_parts['query']; |
|
203 | + $result['suffix'] .= empty($url_parts['fragment']) ? '' : '#'.$url_parts['fragment']; |
|
204 | 204 | } else { |
205 | 205 | $result['prefix'] = ''; |
206 | 206 | $result['path'] = $pathOrUrl; |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | // Go from most specific type to least specific type |
81 | 81 | foreach (self::SCHEMA_TYPES as $schemaType) { |
82 | 82 | if (!empty($settings[$schemaType]) && ($settings[$schemaType] !== 'none')) { |
83 | - $result = $settings[$schemaType] . self::SCHEMA_PATH_DELIMITER . $result; |
|
83 | + $result = $settings[$schemaType].self::SCHEMA_PATH_DELIMITER.$result; |
|
84 | 84 | } |
85 | 85 | } |
86 | 86 | } |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | { |
127 | 127 | $result = []; |
128 | 128 | while ($schemaType) { |
129 | - $className = 'nystudio107\\seomatic\\models\\jsonld\\' . $schemaType; |
|
129 | + $className = 'nystudio107\\seomatic\\models\\jsonld\\'.$schemaType; |
|
130 | 130 | if (class_exists($className)) { |
131 | 131 | try { |
132 | 132 | $classRef = new \ReflectionClass($className); |
@@ -289,11 +289,11 @@ discard block |
||
289 | 289 | foreach ($typesArray as $key => $value) { |
290 | 290 | $indent = html_entity_decode(str_repeat(' ', $indentLevel)); |
291 | 291 | if (\is_array($value)) { |
292 | - $result[$key] = $indent . $key; |
|
292 | + $result[$key] = $indent.$key; |
|
293 | 293 | $value = self::flattenSchemaArray($value, $indentLevel + self::MENU_INDENT_STEP); |
294 | 294 | $result = array_merge($result, $value); |
295 | 295 | } else { |
296 | - $result[$key] = $indent . $value; |
|
296 | + $result[$key] = $indent.$value; |
|
297 | 297 | } |
298 | 298 | } |
299 | 299 | |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | $children = []; |
392 | 392 | $name = $typesArray['name']; |
393 | 393 | // Construct a path-based $id, excluding the top-level `Thing` schema |
394 | - $id = $name === 'Thing' ? '' : $path . self::SCHEMA_PATH_DELIMITER . $name; |
|
394 | + $id = $name === 'Thing' ? '' : $path.self::SCHEMA_PATH_DELIMITER.$name; |
|
395 | 395 | $id = ltrim($id, self::SCHEMA_PATH_DELIMITER); |
396 | 396 | // Make sure we have at most 3 specifiers in the schema path |
397 | 397 | $parts = explode(self::SCHEMA_PATH_DELIMITER, $id); |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | if (!empty($string)) { |
77 | 77 | $string = HtmlPurifier::process($string, ['HTML.Allowed' => '']); |
78 | 78 | $string = html_entity_decode($string, ENT_NOQUOTES, 'UTF-8'); |
79 | - $result = (string)Stringy::create($string)->truncate($length, $substring); |
|
79 | + $result = (string) Stringy::create($string)->truncate($length, $substring); |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | return $result; |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | if (!empty($string)) { |
102 | 102 | $string = HtmlPurifier::process($string, ['HTML.Allowed' => '']); |
103 | 103 | $string = html_entity_decode($string, ENT_NOQUOTES, 'UTF-8'); |
104 | - $result = (string)Stringy::create($string)->safeTruncate($length, $substring); |
|
104 | + $result = (string) Stringy::create($string)->safeTruncate($length, $substring); |
|
105 | 105 | } |
106 | 106 | |
107 | 107 | return $result; |
@@ -135,9 +135,9 @@ discard block |
||
135 | 135 | $result = self::smartStripTags(Doxter::$plugin->getService()->parseMarkdown($field->getRaw())); |
136 | 136 | } else { |
137 | 137 | if (\is_array($field)) { |
138 | - $result = self::smartStripTags((string)$field[0]); |
|
138 | + $result = self::smartStripTags((string) $field[0]); |
|
139 | 139 | } else { |
140 | - $result = self::smartStripTags((string)$field); |
|
140 | + $result = self::smartStripTags((string) $field); |
|
141 | 141 | } |
142 | 142 | } |
143 | 143 | |
@@ -343,7 +343,7 @@ discard block |
||
343 | 343 | |
344 | 344 | $result = \is_array($keywords) |
345 | 345 | ? implode(', ', \array_slice(array_keys($keywords), 0, $limit)) |
346 | - : (string)$keywords; |
|
346 | + : (string) $keywords; |
|
347 | 347 | |
348 | 348 | return self::sanitizeUserInput($result); |
349 | 349 | } |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | |
382 | 382 | $result = \is_array($sentences) |
383 | 383 | ? implode(' ', $sentences) |
384 | - : (string)$sentences; |
|
384 | + : (string) $sentences; |
|
385 | 385 | |
386 | 386 | return self::sanitizeUserInput($result); |
387 | 387 | } |
@@ -401,7 +401,7 @@ discard block |
||
401 | 401 | $str = html_entity_decode($str, ENT_NOQUOTES, 'UTF-8'); |
402 | 402 | $str = rawurldecode($str); |
403 | 403 | // Remove any linebreaks |
404 | - $str = (string)preg_replace("/\r|\n/", "", $str); |
|
404 | + $str = (string) preg_replace("/\r|\n/", "", $str); |
|
405 | 405 | $str = HtmlPurifier::process($str, ['HTML.Allowed' => '']); |
406 | 406 | $str = html_entity_decode($str, ENT_NOQUOTES, 'UTF-8'); |
407 | 407 | // Remove any embedded Twig code |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | self::$cacheDuration = self::$devMode |
270 | 270 | ? self::DEVMODE_CACHE_DURATION |
271 | 271 | : self::$settings->metaCacheDuration ?? null; |
272 | - self::$cacheDuration = self::$cacheDuration === null ? null : (int)self::$cacheDuration; |
|
272 | + self::$cacheDuration = self::$cacheDuration === null ? null : (int) self::$cacheDuration; |
|
273 | 273 | self::$environment = EnvironmentHelper::determineEnvironment(); |
274 | 274 | MetaValueHelper::cache(); |
275 | 275 | // Version helpers |
@@ -344,7 +344,7 @@ discard block |
||
344 | 344 | Event::on( |
345 | 345 | Plugins::class, |
346 | 346 | Plugins::EVENT_AFTER_INSTALL_PLUGIN, |
347 | - function (PluginEvent $event) { |
|
347 | + function(PluginEvent $event) { |
|
348 | 348 | if ($event->plugin === $this) { |
349 | 349 | // Invalidate our caches after we've been installed |
350 | 350 | $this->clearAllCaches(); |
@@ -365,7 +365,7 @@ discard block |
||
365 | 365 | Event::on( |
366 | 366 | ClearCaches::class, |
367 | 367 | ClearCaches::EVENT_REGISTER_CACHE_OPTIONS, |
368 | - function (RegisterCacheOptionsEvent $event) { |
|
368 | + function(RegisterCacheOptionsEvent $event) { |
|
369 | 369 | Craft::debug( |
370 | 370 | 'ClearCaches::EVENT_REGISTER_CACHE_OPTIONS', |
371 | 371 | __METHOD__ |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | Event::on( |
382 | 382 | Plugins::class, |
383 | 383 | Plugins::EVENT_BEFORE_SAVE_PLUGIN_SETTINGS, |
384 | - function (PluginEvent $event) { |
|
384 | + function(PluginEvent $event) { |
|
385 | 385 | if ($event->plugin === $this && !Craft::$app->getDb()->getSupportsMb4()) { |
386 | 386 | // For all the emojis |
387 | 387 | $settingsModel = $this->getSettings(); |
@@ -434,7 +434,7 @@ discard block |
||
434 | 434 | Event::on( |
435 | 435 | Plugins::class, |
436 | 436 | Plugins::EVENT_AFTER_LOAD_PLUGINS, |
437 | - function () { |
|
437 | + function() { |
|
438 | 438 | // Delay registering SEO Elements to give other plugins a chance to load first |
439 | 439 | $this->seoElements->getAllSeoElementTypes(false); |
440 | 440 | // Delay installing GQL handlers to give other plugins a chance to register their own first |
@@ -455,7 +455,7 @@ discard block |
||
455 | 455 | Event::on( |
456 | 456 | Fields::class, |
457 | 457 | Fields::EVENT_REGISTER_FIELD_TYPES, |
458 | - function (RegisterComponentTypesEvent $event) { |
|
458 | + function(RegisterComponentTypesEvent $event) { |
|
459 | 459 | $event->types[] = SeoSettingsField::class; |
460 | 460 | $event->types[] = Seomatic_MetaField::class; |
461 | 461 | } |
@@ -464,7 +464,7 @@ discard block |
||
464 | 464 | Event::on( |
465 | 465 | Elements::class, |
466 | 466 | Elements::EVENT_AFTER_SAVE_ELEMENT, |
467 | - function (ElementEvent $event) { |
|
467 | + function(ElementEvent $event) { |
|
468 | 468 | Craft::debug( |
469 | 469 | 'Elements::EVENT_AFTER_SAVE_ELEMENT', |
470 | 470 | __METHOD__ |
@@ -484,7 +484,7 @@ discard block |
||
484 | 484 | Event::on( |
485 | 485 | Elements::class, |
486 | 486 | Elements::EVENT_AFTER_DELETE_ELEMENT, |
487 | - function (ElementEvent $event) { |
|
487 | + function(ElementEvent $event) { |
|
488 | 488 | Craft::debug( |
489 | 489 | 'Elements::EVENT_AFTER_DELETE_ELEMENT', |
490 | 490 | __METHOD__ |
@@ -503,19 +503,19 @@ discard block |
||
503 | 503 | Event::on( |
504 | 504 | Entry::class, |
505 | 505 | Entry::EVENT_REGISTER_PREVIEW_TARGETS, |
506 | - function (RegisterPreviewTargetsEvent $e) { |
|
506 | + function(RegisterPreviewTargetsEvent $e) { |
|
507 | 507 | /** @var Element $element */ |
508 | 508 | $element = $e->sender; |
509 | 509 | if ($element->uri !== null) { |
510 | 510 | $e->previewTargets[] = [ |
511 | - 'label' => ' |