Passed
Push — develop ( 03731b...fd148c )
by Andrew
16:09
created
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/models/MetaTagContainer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
         }
57 57
         $tagData = $cache->getOrSet(
58 58
             self::CONTAINER_TYPE.$uniqueKey,
59
-            function () use ($uniqueKey) {
59
+            function() use ($uniqueKey) {
60 60
                 Craft::info(
61 61
                     self::CONTAINER_TYPE.' cache miss: '.$uniqueKey,
62 62
                     __METHOD__
Please login to merge, or discard this patch.
src/models/SitemapCustomTemplate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
132 132
             ],
133 133
         ]);
134 134
 
135
-        return $cache->getOrSet(self::CACHE_KEY.$groupId.self::CUSTOM_SCOPE.$handle.$siteId, function () use (
135
+        return $cache->getOrSet(self::CACHE_KEY.$groupId.self::CUSTOM_SCOPE.$handle.$siteId, function() use (
136 136
             $handle,
137 137
             $siteId
138 138
         ) {
Please login to merge, or discard this patch.
src/models/MetaScriptContainer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
         }
57 57
         $tagData = $cache->getOrSet(
58 58
             self::CONTAINER_TYPE.$uniqueKey,
59
-            function () use ($uniqueKey) {
59
+            function() use ($uniqueKey) {
60 60
                 Craft::info(
61 61
                     self::CONTAINER_TYPE.' cache miss: '.$uniqueKey,
62 62
                     __METHOD__
Please login to merge, or discard this patch.
src/models/MetaTitleContainer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
         }
57 57
         $tagData = $cache->getOrSet(
58 58
             self::CONTAINER_TYPE.$uniqueKey,
59
-            function () use ($uniqueKey) {
59
+            function() use ($uniqueKey) {
60 60
                 Craft::info(
61 61
                     self::CONTAINER_TYPE.' cache miss: '.$uniqueKey,
62 62
                     __METHOD__
Please login to merge, or discard this patch.
src/models/MetaLinkContainer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
         }
57 57
         $tagData = $cache->getOrSet(
58 58
             self::CONTAINER_TYPE.$uniqueKey,
59
-            function () use ($uniqueKey) {
59
+            function() use ($uniqueKey) {
60 60
                 Craft::info(
61 61
                     self::CONTAINER_TYPE.' cache miss: '.$uniqueKey,
62 62
                     __METHOD__
Please login to merge, or discard this patch.
src/models/MetaJsonLdContainer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
         }
57 57
         $tagData = $cache->getOrSet(
58 58
             self::CONTAINER_TYPE.$uniqueKey,
59
-            function () use ($uniqueKey) {
59
+            function() use ($uniqueKey) {
60 60
                 Craft::info(
61 61
                     self::CONTAINER_TYPE.' cache miss: '.$uniqueKey,
62 62
                     __METHOD__
Please login to merge, or discard this patch.
src/services/FrontendTemplates.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     // Constants
36 36
     // =========================================================================
37 37
 
38
-    const FRONTENDTEMPLATES_CONTAINER = Seomatic::SEOMATIC_HANDLE . EditableTemplate::TEMPLATE_TYPE;
38
+    const FRONTENDTEMPLATES_CONTAINER = Seomatic::SEOMATIC_HANDLE.EditableTemplate::TEMPLATE_TYPE;
39 39
 
40 40
     const HUMANS_TXT_HANDLE = 'humans';
41 41
     const ROBOTS_TXT_HANDLE = 'robots';
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
             Event::on(
111 111
                 UrlManager::class,
112 112
                 UrlManager::EVENT_REGISTER_SITE_URL_RULES,
113
-                function (RegisterUrlRulesEvent $event) {
113
+                function(RegisterUrlRulesEvent $event) {
114 114
                     Craft::debug(
115 115
                         'UrlManager::EVENT_REGISTER_SITE_URL_RULES',
116 116
                         __METHOD__
@@ -165,16 +165,16 @@  discard block
 block discarded – undo
165 165
         $dependency = new TagDependency([
166 166
             'tags' => [
167 167
                 self::GLOBAL_FRONTENDTEMPLATE_CACHE_TAG,
168
-                self::FRONTENDTEMPLATE_CACHE_TAG . $template,
169
-                self::FRONTENDTEMPLATE_CACHE_TAG . $template . $siteId,
168
+                self::FRONTENDTEMPLATE_CACHE_TAG.$template,
169
+                self::FRONTENDTEMPLATE_CACHE_TAG.$template.$siteId,
170 170
             ],
171 171
         ]);
172 172
         $cache = Craft::$app->getCache();
173 173
         $html = $cache->getOrSet(
174
-            self::CACHE_KEY . $template . $siteId,
175
-            function () use ($template, $params) {
174
+            self::CACHE_KEY.$template.$siteId,
175
+            function() use ($template, $params) {
176 176
                 Craft::info(
177
-                    'Frontend template cache miss: ' . $template,
177
+                    'Frontend template cache miss: '.$template,
178 178
                     __METHOD__
179 179
                 );
180 180
                 $html = '';
@@ -245,9 +245,9 @@  discard block
 block discarded – undo
245 245
     public function invalidateFrontendTemplateCache(string $template)
246 246
     {
247 247
         $cache = Craft::$app->getCache();
248
-        TagDependency::invalidate($cache, self::FRONTENDTEMPLATE_CACHE_TAG . $template);
248
+        TagDependency::invalidate($cache, self::FRONTENDTEMPLATE_CACHE_TAG.$template);
249 249
         Craft::info(
250
-            'Frontend template cache cleared: ' . $template,
250
+            'Frontend template cache cleared: '.$template,
251 251
             __METHOD__
252 252
         );
253 253
     }
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.