| @@ -101,7 +101,7 @@ | ||
| 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 | /** | 
| @@ -106,7 +106,7 @@ | ||
| 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 | 
| @@ -5,12 +5,12 @@ | ||
| 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; | 
| @@ -99,16 +99,16 @@ | ||
| 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 | |
| @@ -22,7 +22,7 @@ | ||
| 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 => [ | 
| @@ -19,11 +19,11 @@ | ||
| 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 | ], | 
| @@ -19,11 +19,11 @@ | ||
| 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 | ], | 
| @@ -21,11 +21,11 @@ | ||
| 21 | 21 | */ | 
| 22 | 22 | |
| 23 | 23 | return [ | 
| 24 | - MetaLinkContainer::CONTAINER_TYPE . LinkService::GENERAL_HANDLE => [ | |
| 24 | + MetaLinkContainer::CONTAINER_TYPE.LinkService::GENERAL_HANDLE => [ | |
| 25 | 25 | 'name' => 'General', | 
| 26 | 26 | 'description' => 'Link Tags', | 
| 27 | 27 | 'handle' => LinkService::GENERAL_HANDLE, | 
| 28 | - 'class' => (string)MetaLinkContainer::class, | |
| 28 | + 'class' => (string) MetaLinkContainer::class, | |
| 29 | 29 | 'include' => true, | 
| 30 | 30 | 'dependencies' => [ | 
| 31 | 31 | ], | 
| @@ -64,7 +64,7 @@ discard block | ||
| 64 | 64 |      { | 
| 65 | 65 | $baseUrl = UrlHelper::hostInfo(UrlHelper::siteUrl($path)); | 
| 66 | 66 | |
| 67 | - return rtrim($baseUrl, '/') . '/' . ltrim($path, '/'); | |
| 67 | + return rtrim($baseUrl, '/').'/'.ltrim($path, '/'); | |
| 68 | 68 | } | 
| 69 | 69 | |
| 70 | 70 | /** | 
| @@ -107,7 +107,7 @@ discard block | ||
| 107 | 107 | |
| 108 | 108 | $metaSiteVars = Seomatic::$plugin->metaContainers->metaSiteVars; | 
| 109 | 109 |          if ($metaSiteVars && !empty($metaSiteVars->siteLinksQueryInput)) { | 
| 110 | - $result = 'required name=' . $metaSiteVars->siteLinksQueryInput; | |
| 110 | + $result = 'required name='.$metaSiteVars->siteLinksQueryInput; | |
| 111 | 111 | } | 
| 112 | 112 | |
| 113 | 113 | return $result; | 
| @@ -568,8 +568,8 @@ discard block | ||
| 568 | 568 | */ | 
| 569 | 569 | public function isInherited(InheritableSettingsModel $settingCollection, $settingName) | 
| 570 | 570 |      { | 
| 571 | - $explicitInherit = array_key_exists($settingName, (array)$settingCollection->inherited); | |
| 572 | - $explicitOverride = array_key_exists($settingName, (array)$settingCollection->overrides); | |
| 571 | + $explicitInherit = array_key_exists($settingName, (array) $settingCollection->inherited); | |
| 572 | + $explicitOverride = array_key_exists($settingName, (array) $settingCollection->overrides); | |
| 573 | 573 | |
| 574 | 574 |          if ($explicitInherit || $explicitOverride) { | 
| 575 | 575 | return $explicitInherit && !$explicitOverride; |