@@ -19,44 +19,44 @@ |
||
| 19 | 19 | */ |
| 20 | 20 | |
| 21 | 21 | return [ |
| 22 | - MetaTagContainer::CONTAINER_TYPE . TagService::GENERAL_HANDLE => [ |
|
| 22 | + MetaTagContainer::CONTAINER_TYPE.TagService::GENERAL_HANDLE => [ |
|
| 23 | 23 | 'name' => 'General', |
| 24 | 24 | 'description' => 'General Meta Tags', |
| 25 | 25 | 'handle' => TagService::GENERAL_HANDLE, |
| 26 | - 'class' => (string)MetaTagContainer::class, |
|
| 26 | + 'class' => (string) MetaTagContainer::class, |
|
| 27 | 27 | 'include' => true, |
| 28 | 28 | 'dependencies' => [ |
| 29 | 29 | ], |
| 30 | 30 | 'data' => [ |
| 31 | 31 | ], |
| 32 | 32 | ], |
| 33 | - MetaTagContainer::CONTAINER_TYPE . TagService::FACEBOOK_HANDLE => [ |
|
| 33 | + MetaTagContainer::CONTAINER_TYPE.TagService::FACEBOOK_HANDLE => [ |
|
| 34 | 34 | 'name' => 'Facebook', |
| 35 | 35 | 'description' => 'Facebook OpenGraph Meta Tags', |
| 36 | 36 | 'handle' => TagService::FACEBOOK_HANDLE, |
| 37 | - 'class' => (string)MetaTagContainer::class, |
|
| 37 | + 'class' => (string) MetaTagContainer::class, |
|
| 38 | 38 | 'include' => true, |
| 39 | 39 | 'dependencies' => [ |
| 40 | 40 | ], |
| 41 | 41 | 'data' => [ |
| 42 | 42 | ], |
| 43 | 43 | ], |
| 44 | - MetaTagContainer::CONTAINER_TYPE . TagService::TWITTER_HANDLE => [ |
|
| 44 | + MetaTagContainer::CONTAINER_TYPE.TagService::TWITTER_HANDLE => [ |
|
| 45 | 45 | 'name' => 'Twitter', |
| 46 | 46 | 'description' => 'Twitter Card Meta Tags', |
| 47 | 47 | 'handle' => TagService::TWITTER_HANDLE, |
| 48 | - 'class' => (string)MetaTagContainer::class, |
|
| 48 | + 'class' => (string) MetaTagContainer::class, |
|
| 49 | 49 | 'include' => true, |
| 50 | 50 | 'dependencies' => [ |
| 51 | 51 | ], |
| 52 | 52 | 'data' => [ |
| 53 | 53 | ], |
| 54 | 54 | ], |
| 55 | - MetaTagContainer::CONTAINER_TYPE . TagService::MISC_HANDLE => [ |
|
| 55 | + MetaTagContainer::CONTAINER_TYPE.TagService::MISC_HANDLE => [ |
|
| 56 | 56 | 'name' => 'Miscellaneous', |
| 57 | 57 | 'description' => 'Miscellaneous Meta Tags', |
| 58 | 58 | 'handle' => TagService::MISC_HANDLE, |
| 59 | - 'class' => (string)MetaTagContainer::class, |
|
| 59 | + 'class' => (string) MetaTagContainer::class, |
|
| 60 | 60 | 'include' => true, |
| 61 | 61 | 'dependencies' => [ |
| 62 | 62 | ], |
@@ -19,44 +19,44 @@ |
||
| 19 | 19 | */ |
| 20 | 20 | |
| 21 | 21 | return [ |
| 22 | - MetaTagContainer::CONTAINER_TYPE . TagService::GENERAL_HANDLE => [ |
|
| 22 | + MetaTagContainer::CONTAINER_TYPE.TagService::GENERAL_HANDLE => [ |
|
| 23 | 23 | 'name' => 'General', |
| 24 | 24 | 'description' => 'General Meta Tags', |
| 25 | 25 | 'handle' => TagService::GENERAL_HANDLE, |
| 26 | - 'class' => (string)MetaTagContainer::class, |
|
| 26 | + 'class' => (string) MetaTagContainer::class, |
|
| 27 | 27 | 'include' => true, |
| 28 | 28 | 'dependencies' => [ |
| 29 | 29 | ], |
| 30 | 30 | 'data' => [ |
| 31 | 31 | ], |
| 32 | 32 | ], |
| 33 | - MetaTagContainer::CONTAINER_TYPE . TagService::FACEBOOK_HANDLE => [ |
|
| 33 | + MetaTagContainer::CONTAINER_TYPE.TagService::FACEBOOK_HANDLE => [ |
|
| 34 | 34 | 'name' => 'Facebook', |
| 35 | 35 | 'description' => 'Facebook OpenGraph Meta Tags', |
| 36 | 36 | 'handle' => TagService::FACEBOOK_HANDLE, |
| 37 | - 'class' => (string)MetaTagContainer::class, |
|
| 37 | + 'class' => (string) MetaTagContainer::class, |
|
| 38 | 38 | 'include' => true, |
| 39 | 39 | 'dependencies' => [ |
| 40 | 40 | ], |
| 41 | 41 | 'data' => [ |
| 42 | 42 | ], |
| 43 | 43 | ], |
| 44 | - MetaTagContainer::CONTAINER_TYPE . TagService::TWITTER_HANDLE => [ |
|
| 44 | + MetaTagContainer::CONTAINER_TYPE.TagService::TWITTER_HANDLE => [ |
|
| 45 | 45 | 'name' => 'Twitter', |
| 46 | 46 | 'description' => 'Twitter Card Meta Tags', |
| 47 | 47 | 'handle' => TagService::TWITTER_HANDLE, |
| 48 | - 'class' => (string)MetaTagContainer::class, |
|
| 48 | + 'class' => (string) MetaTagContainer::class, |
|
| 49 | 49 | 'include' => true, |
| 50 | 50 | 'dependencies' => [ |
| 51 | 51 | ], |
| 52 | 52 | 'data' => [ |
| 53 | 53 | ], |
| 54 | 54 | ], |
| 55 | - MetaTagContainer::CONTAINER_TYPE . TagService::MISC_HANDLE => [ |
|
| 55 | + MetaTagContainer::CONTAINER_TYPE.TagService::MISC_HANDLE => [ |
|
| 56 | 56 | 'name' => 'Miscellaneous', |
| 57 | 57 | 'description' => 'Miscellaneous Meta Tags', |
| 58 | 58 | 'handle' => TagService::MISC_HANDLE, |
| 59 | - 'class' => (string)MetaTagContainer::class, |
|
| 59 | + 'class' => (string) MetaTagContainer::class, |
|
| 60 | 60 | 'include' => true, |
| 61 | 61 | 'dependencies' => [ |
| 62 | 62 | ], |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | // Get the page number of this request |
| 178 | 178 | $request = Craft::$app->getRequest(); |
| 179 | 179 | if (!$request->isConsoleRequest) { |
| 180 | - $this->paginationPage = (string)$request->pageNum; |
|
| 180 | + $this->paginationPage = (string) $request->pageNum; |
|
| 181 | 181 | } |
| 182 | 182 | } |
| 183 | 183 | |
@@ -253,10 +253,10 @@ discard block |
||
| 253 | 253 | $dependency = $this->containerDependency; |
| 254 | 254 | $uniqueKey = $dependency->tags[3] ?? self::GLOBALS_CACHE_KEY; |
| 255 | 255 | list($this->metaGlobalVars, $this->metaSiteVars) = Craft::$app->getCache()->getOrSet( |
| 256 | - self::GLOBALS_CACHE_KEY . $uniqueKey, |
|
| 256 | + self::GLOBALS_CACHE_KEY.$uniqueKey, |
|
| 257 | 257 | function() use ($uniqueKey) { |
| 258 | 258 | Craft::info( |
| 259 | - self::GLOBALS_CACHE_KEY . ' cache miss: ' . $uniqueKey, |
|
| 259 | + self::GLOBALS_CACHE_KEY.' cache miss: '.$uniqueKey, |
|
| 260 | 260 | __METHOD__ |
| 261 | 261 | ); |
| 262 | 262 | |
@@ -376,7 +376,7 @@ discard block |
||
| 376 | 376 | ?? 1; |
| 377 | 377 | } |
| 378 | 378 | // Handle pagination |
| 379 | - $paginationPage = 'page' . $this->paginationPage; |
|
| 379 | + $paginationPage = 'page'.$this->paginationPage; |
|
| 380 | 380 | // Get the path for the current request |
| 381 | 381 | $request = Craft::$app->getRequest(); |
| 382 | 382 | $requestPath = '/'; |
@@ -392,21 +392,21 @@ discard block |
||
| 392 | 392 | } |
| 393 | 393 | } |
| 394 | 394 | // Get our cache key |
| 395 | - $cacheKey = $uri . $siteId . $paginationPage . $requestPath . $this->getAllowedUrlParams(); |
|
| 395 | + $cacheKey = $uri.$siteId.$paginationPage.$requestPath.$this->getAllowedUrlParams(); |
|
| 396 | 396 | // For requests with a status code of >= 400, use one cache key |
| 397 | 397 | if (!$request->isConsoleRequest) { |
| 398 | 398 | $response = Craft::$app->getResponse(); |
| 399 | 399 | if ($response->statusCode >= 400) { |
| 400 | - $cacheKey = $siteId . self::INVALID_RESPONSE_CACHE_KEY . $response->statusCode; |
|
| 400 | + $cacheKey = $siteId.self::INVALID_RESPONSE_CACHE_KEY.$response->statusCode; |
|
| 401 | 401 | } |
| 402 | 402 | } |
| 403 | 403 | // Load the meta containers |
| 404 | 404 | $dependency = new TagDependency([ |
| 405 | 405 | 'tags' => [ |
| 406 | 406 | self::GLOBAL_METACONTAINER_CACHE_TAG, |
| 407 | - self::METACONTAINER_CACHE_TAG . $metaBundleSourceId . $metaBundleSourceType . $siteId, |
|
| 408 | - self::METACONTAINER_CACHE_TAG . $uri . $siteId, |
|
| 409 | - self::METACONTAINER_CACHE_TAG . $cacheKey, |
|
| 407 | + self::METACONTAINER_CACHE_TAG.$metaBundleSourceId.$metaBundleSourceType.$siteId, |
|
| 408 | + self::METACONTAINER_CACHE_TAG.$uri.$siteId, |
|
| 409 | + self::METACONTAINER_CACHE_TAG.$cacheKey, |
|
| 410 | 410 | ], |
| 411 | 411 | ]); |
| 412 | 412 | $this->containerDependency = $dependency; |
@@ -423,10 +423,10 @@ discard block |
||
| 423 | 423 | } else { |
| 424 | 424 | $cache = Craft::$app->getCache(); |
| 425 | 425 | list($this->metaGlobalVars, $this->metaSiteVars, $this->metaSitemapVars, $this->metaContainers) = $cache->getOrSet( |
| 426 | - self::CACHE_KEY . $cacheKey, |
|
| 426 | + self::CACHE_KEY.$cacheKey, |
|
| 427 | 427 | function() use ($uri, $siteId) { |
| 428 | 428 | Craft::info( |
| 429 | - 'Meta container cache miss: ' . $uri . '/' . $siteId, |
|
| 429 | + 'Meta container cache miss: '.$uri.'/'.$siteId, |
|
| 430 | 430 | __METHOD__ |
| 431 | 431 | ); |
| 432 | 432 | $this->loadGlobalMetaContainers($siteId); |
@@ -829,10 +829,10 @@ discard block |
||
| 829 | 829 | $cache = Craft::$app->getCache(); |
| 830 | 830 | TagDependency::invalidate( |
| 831 | 831 | $cache, |
| 832 | - self::METACONTAINER_CACHE_TAG . $metaBundleSourceId . $metaBundleSourceType . $siteId |
|
| 832 | + self::METACONTAINER_CACHE_TAG.$metaBundleSourceId.$metaBundleSourceType.$siteId |
|
| 833 | 833 | ); |
| 834 | 834 | Craft::info( |
| 835 | - 'Meta bundle cache cleared: ' . $metaBundleSourceId . ' / ' . $metaBundleSourceType . ' / ' . $siteId, |
|
| 835 | + 'Meta bundle cache cleared: '.$metaBundleSourceId.' / '.$metaBundleSourceType.' / '.$siteId, |
|
| 836 | 836 | __METHOD__ |
| 837 | 837 | ); |
| 838 | 838 | // Trigger an event to let other plugins/modules know we've cleared our caches |
@@ -859,9 +859,9 @@ discard block |
||
| 859 | 859 | if ($siteId === null) { |
| 860 | 860 | $siteId = Craft::$app->getSites()->currentSite->id ?? 1; |
| 861 | 861 | } |
| 862 | - TagDependency::invalidate($cache, self::METACONTAINER_CACHE_TAG . $uri . $siteId); |
|
| 862 | + TagDependency::invalidate($cache, self::METACONTAINER_CACHE_TAG.$uri.$siteId); |
|
| 863 | 863 | Craft::info( |
| 864 | - 'Meta container cache cleared: ' . $uri . ' / ' . $siteId, |
|
| 864 | + 'Meta container cache cleared: '.$uri.' / '.$siteId, |
|
| 865 | 865 | __METHOD__ |
| 866 | 866 | ); |
| 867 | 867 | // Trigger an event to let other plugins/modules know we've cleared our caches |
@@ -1002,7 +1002,7 @@ discard block |
||
| 1002 | 1002 | |
| 1003 | 1003 | // Handle re-creating the `mainEntityOfPage` so that the model injected into the |
| 1004 | 1004 | // templates has the appropriate attributes |
| 1005 | - $generalContainerKey = MetaJsonLdContainer::CONTAINER_TYPE . JsonLdService::GENERAL_HANDLE; |
|
| 1005 | + $generalContainerKey = MetaJsonLdContainer::CONTAINER_TYPE.JsonLdService::GENERAL_HANDLE; |
|
| 1006 | 1006 | $generalContainer = $this->metaContainers[$generalContainerKey]; |
| 1007 | 1007 | if (($generalContainer !== null) && !empty($generalContainer->data['mainEntityOfPage'])) { |
| 1008 | 1008 | /** @var MetaJsonLd $jsonLdModel */ |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | // Constants |
| 34 | 34 | // ========================================================================= |
| 35 | 35 | |
| 36 | - public const FRONTENDTEMPLATES_CONTAINER = Seomatic::SEOMATIC_HANDLE . EditableTemplate::TEMPLATE_TYPE; |
|
| 36 | + public const FRONTENDTEMPLATES_CONTAINER = Seomatic::SEOMATIC_HANDLE.EditableTemplate::TEMPLATE_TYPE; |
|
| 37 | 37 | |
| 38 | 38 | public const HUMANS_TXT_HANDLE = 'humans'; |
| 39 | 39 | public const ROBOTS_TXT_HANDLE = 'robots'; |
@@ -171,16 +171,16 @@ discard block |
||
| 171 | 171 | $dependency = new TagDependency([ |
| 172 | 172 | 'tags' => [ |
| 173 | 173 | self::GLOBAL_FRONTENDTEMPLATE_CACHE_TAG, |
| 174 | - self::FRONTENDTEMPLATE_CACHE_TAG . $template, |
|
| 175 | - self::FRONTENDTEMPLATE_CACHE_TAG . $template . $siteId, |
|
| 174 | + self::FRONTENDTEMPLATE_CACHE_TAG.$template, |
|
| 175 | + self::FRONTENDTEMPLATE_CACHE_TAG.$template.$siteId, |
|
| 176 | 176 | ], |
| 177 | 177 | ]); |
| 178 | 178 | $cache = Craft::$app->getCache(); |
| 179 | 179 | $html = $cache->getOrSet( |
| 180 | - self::CACHE_KEY . $template . $siteId, |
|
| 180 | + self::CACHE_KEY.$template.$siteId, |
|
| 181 | 181 | function() use ($template, $params) { |
| 182 | 182 | Craft::info( |
| 183 | - 'Frontend template cache miss: ' . $template, |
|
| 183 | + 'Frontend template cache miss: '.$template, |
|
| 184 | 184 | __METHOD__ |
| 185 | 185 | ); |
| 186 | 186 | $html = ''; |
@@ -251,9 +251,9 @@ discard block |
||
| 251 | 251 | public function invalidateFrontendTemplateCache(string $template) |
| 252 | 252 | { |
| 253 | 253 | $cache = Craft::$app->getCache(); |
| 254 | - TagDependency::invalidate($cache, self::FRONTENDTEMPLATE_CACHE_TAG . $template); |
|
| 254 | + TagDependency::invalidate($cache, self::FRONTENDTEMPLATE_CACHE_TAG.$template); |
|
| 255 | 255 | Craft::info( |
| 256 | - 'Frontend template cache cleared: ' . $template, |
|
| 256 | + 'Frontend template cache cleared: '.$template, |
|
| 257 | 257 | __METHOD__ |
| 258 | 258 | ); |
| 259 | 259 | } |
@@ -42,11 +42,11 @@ discard block |
||
| 42 | 42 | // Constants |
| 43 | 43 | // ========================================================================= |
| 44 | 44 | |
| 45 | - public const SEOMATIC_SITEMAPINDEX_CONTAINER = Seomatic::SEOMATIC_HANDLE . SitemapIndexTemplate::TEMPLATE_TYPE; |
|
| 45 | + public const SEOMATIC_SITEMAPINDEX_CONTAINER = Seomatic::SEOMATIC_HANDLE.SitemapIndexTemplate::TEMPLATE_TYPE; |
|
| 46 | 46 | |
| 47 | - public const SEOMATIC_SITEMAP_CONTAINER = Seomatic::SEOMATIC_HANDLE . SitemapTemplate::TEMPLATE_TYPE; |
|
| 47 | + public const SEOMATIC_SITEMAP_CONTAINER = Seomatic::SEOMATIC_HANDLE.SitemapTemplate::TEMPLATE_TYPE; |
|
| 48 | 48 | |
| 49 | - public const SEOMATIC_SITEMAPCUSTOM_CONTAINER = Seomatic::SEOMATIC_HANDLE . SitemapCustomTemplate::TEMPLATE_TYPE; |
|
| 49 | + public const SEOMATIC_SITEMAPCUSTOM_CONTAINER = Seomatic::SEOMATIC_HANDLE.SitemapCustomTemplate::TEMPLATE_TYPE; |
|
| 50 | 50 | |
| 51 | 51 | public const SEARCH_ENGINE_SUBMISSION_URLS = [ |
| 52 | 52 | ]; |
@@ -235,19 +235,19 @@ discard block |
||
| 235 | 235 | $siteId = $groupSiteIds[0]; |
| 236 | 236 | $sitemapIndexUrl = $this->sitemapIndexUrlForSiteId($siteId); |
| 237 | 237 | if (!empty($sitemapIndexUrl)) { |
| 238 | - $submissionUrl = $url . urlencode($sitemapIndexUrl); |
|
| 238 | + $submissionUrl = $url.urlencode($sitemapIndexUrl); |
|
| 239 | 239 | // create new guzzle client |
| 240 | 240 | $guzzleClient = Craft::createGuzzleClient(['timeout' => 5, 'connect_timeout' => 5]); |
| 241 | 241 | // Submit the sitemap index to each search engine |
| 242 | 242 | try { |
| 243 | 243 | $guzzleClient->post($submissionUrl); |
| 244 | 244 | Craft::info( |
| 245 | - 'Sitemap index submitted to: ' . $submissionUrl, |
|
| 245 | + 'Sitemap index submitted to: '.$submissionUrl, |
|
| 246 | 246 | __METHOD__ |
| 247 | 247 | ); |
| 248 | 248 | } catch (\Exception $e) { |
| 249 | 249 | Craft::error( |
| 250 | - 'Error submitting sitemap index to: ' . $submissionUrl . ' - ' . $e->getMessage(), |
|
| 250 | + 'Error submitting sitemap index to: '.$submissionUrl.' - '.$e->getMessage(), |
|
| 251 | 251 | __METHOD__ |
| 252 | 252 | ); |
| 253 | 253 | } |
@@ -307,19 +307,19 @@ discard block |
||
| 307 | 307 | foreach ($searchEngineUrls as &$url) { |
| 308 | 308 | $sitemapUrl = $this->sitemapUrlForBundle($sourceBundleType, $sourceHandle, $sourceSiteId); |
| 309 | 309 | if (!empty($sitemapUrl)) { |
| 310 | - $submissionUrl = $url . urlencode($sitemapUrl); |
|
| 310 | + $submissionUrl = $url.urlencode($sitemapUrl); |
|
| 311 | 311 | // create new guzzle client |
| 312 | 312 | $guzzleClient = Craft::createGuzzleClient(['timeout' => 5, 'connect_timeout' => 5]); |
| 313 | 313 | // Submit the sitemap index to each search engine |
| 314 | 314 | try { |
| 315 | 315 | $guzzleClient->post($submissionUrl); |
| 316 | 316 | Craft::info( |
| 317 | - 'Sitemap index submitted to: ' . $submissionUrl, |
|
| 317 | + 'Sitemap index submitted to: '.$submissionUrl, |
|
| 318 | 318 | __METHOD__ |
| 319 | 319 | ); |
| 320 | 320 | } catch (\Exception $e) { |
| 321 | 321 | Craft::error( |
| 322 | - 'Error submitting sitemap index to: ' . $submissionUrl . ' - ' . $e->getMessage(), |
|
| 322 | + 'Error submitting sitemap index to: '.$submissionUrl.' - '.$e->getMessage(), |
|
| 323 | 323 | __METHOD__ |
| 324 | 324 | ); |
| 325 | 325 | } |
@@ -385,19 +385,19 @@ discard block |
||
| 385 | 385 | foreach ($searchEngineUrls as &$url) { |
| 386 | 386 | $sitemapUrl = $this->sitemapCustomUrlForSiteId($siteId); |
| 387 | 387 | if (!empty($sitemapUrl)) { |
| 388 | - $submissionUrl = $url . urlencode($sitemapUrl); |
|
| 388 | + $submissionUrl = $url.urlencode($sitemapUrl); |
|
| 389 | 389 | // create new guzzle client |
| 390 | 390 | $guzzleClient = Craft::createGuzzleClient(['timeout' => 5, 'connect_timeout' => 5]); |
| 391 | 391 | // Submit the sitemap index to each search engine |
| 392 | 392 | try { |
| 393 | 393 | $guzzleClient->post($submissionUrl); |
| 394 | 394 | Craft::info( |
| 395 | - 'Sitemap Custom submitted to: ' . $submissionUrl, |
|
| 395 | + 'Sitemap Custom submitted to: '.$submissionUrl, |
|
| 396 | 396 | __METHOD__ |
| 397 | 397 | ); |
| 398 | 398 | } catch (\Exception $e) { |
| 399 | 399 | Craft::error( |
| 400 | - 'Error submitting sitemap index to: ' . $submissionUrl . ' - ' . $e->getMessage(), |
|
| 400 | + 'Error submitting sitemap index to: '.$submissionUrl.' - '.$e->getMessage(), |
|
| 401 | 401 | __METHOD__ |
| 402 | 402 | ); |
| 403 | 403 | } |
@@ -475,7 +475,7 @@ discard block |
||
| 475 | 475 | } |
| 476 | 476 | |
| 477 | 477 | foreach ($sites as $site) { |
| 478 | - $result .= 'sitemap: ' . $this->sitemapIndexUrlForSiteId($site->id) . PHP_EOL; |
|
| 478 | + $result .= 'sitemap: '.$this->sitemapIndexUrlForSiteId($site->id).PHP_EOL; |
|
| 479 | 479 | } |
| 480 | 480 | |
| 481 | 481 | return rtrim($result, PHP_EOL); |
@@ -507,9 +507,9 @@ discard block |
||
| 507 | 507 | // Since we want a stale-while-revalidate pattern, only invalidate the cache if we're asked to |
| 508 | 508 | if ($invalidateCache) { |
| 509 | 509 | $cache = Craft::$app->getCache(); |
| 510 | - TagDependency::invalidate($cache, SitemapTemplate::SITEMAP_CACHE_TAG . $handle . $siteId); |
|
| 510 | + TagDependency::invalidate($cache, SitemapTemplate::SITEMAP_CACHE_TAG.$handle.$siteId); |
|
| 511 | 511 | Craft::info( |
| 512 | - 'Sitemap cache cleared: ' . $handle, |
|
| 512 | + 'Sitemap cache cleared: '.$handle, |
|
| 513 | 513 | __METHOD__ |
| 514 | 514 | ); |
| 515 | 515 | } |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | ->siteId($metaBundle->sourceSiteId) |
| 224 | 224 | ->limit($metaBundle->metaSitemapVars->sitemapLimit); |
| 225 | 225 | if (!empty($metaBundle->metaSitemapVars->structureDepth)) { |
| 226 | - $query->level('<=' . $metaBundle->metaSitemapVars->structureDepth); |
|
| 226 | + $query->level('<='.$metaBundle->metaSitemapVars->structureDepth); |
|
| 227 | 227 | } |
| 228 | 228 | |
| 229 | 229 | return $query; |
@@ -379,7 +379,7 @@ discard block |
||
| 379 | 379 | ConfigHelper::getConfigFromFile(self::configFilePath()), |
| 380 | 380 | [ |
| 381 | 381 | 'sourceId' => $sourceModel->id, |
| 382 | - 'sourceName' => (string)$sourceModel->name, |
|
| 382 | + 'sourceName' => (string) $sourceModel->name, |
|
| 383 | 383 | 'sourceHandle' => $sourceModel->handle, |
| 384 | 384 | ] |
| 385 | 385 | ); |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | ->limit($metaBundle->metaSitemapVars->sitemapLimit); |
| 228 | 228 | if ($metaBundle->sourceType === 'structure' |
| 229 | 229 | && !empty($metaBundle->metaSitemapVars->structureDepth)) { |
| 230 | - $query->level('<=' . $metaBundle->metaSitemapVars->structureDepth); |
|
| 230 | + $query->level('<='.$metaBundle->metaSitemapVars->structureDepth); |
|
| 231 | 231 | } |
| 232 | 232 | |
| 233 | 233 | return $query; |
@@ -394,7 +394,7 @@ discard block |
||
| 394 | 394 | ConfigHelper::getConfigFromFile(self::configFilePath()), |
| 395 | 395 | [ |
| 396 | 396 | 'sourceId' => $sourceModel->id, |
| 397 | - 'sourceName' => (string)$sourceModel->name, |
|
| 397 | + 'sourceName' => (string) $sourceModel->name, |
|
| 398 | 398 | 'sourceHandle' => $sourceModel->handle, |
| 399 | 399 | 'sourceType' => $sourceModel->type, |
| 400 | 400 | ] |
@@ -388,7 +388,7 @@ |
||
| 388 | 388 | ConfigHelper::getConfigFromFile(self::configFilePath()), |
| 389 | 389 | [ |
| 390 | 390 | 'sourceId' => $sourceModel->id, |
| 391 | - 'sourceName' => (string)$sourceModel->name, |
|
| 391 | + 'sourceName' => (string) $sourceModel->name, |
|
| 392 | 392 | 'sourceHandle' => $sourceModel->handle, |
| 393 | 393 | ] |
| 394 | 394 | ); |
@@ -388,7 +388,7 @@ |
||
| 388 | 388 | ConfigHelper::getConfigFromFile(self::configFilePath()), |
| 389 | 389 | [ |
| 390 | 390 | 'sourceId' => $sourceModel->id, |
| 391 | - 'sourceName' => (string)$sourceModel->name, |
|
| 391 | + 'sourceName' => (string) $sourceModel->name, |
|
| 392 | 392 | 'sourceHandle' => $sourceModel->handle, |
| 393 | 393 | ] |
| 394 | 394 | ); |