Passed
Push — v3 ( f0e099...2662c8 )
by Andrew
28:59 queued 08:38
created
src/base/FluentModel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         // Set the property
68 68
         $value = $args[0];
69 69
         if (is_object($value) && $value instanceof Markup) {
70
-            $value = (string)$value;
70
+            $value = (string) $value;
71 71
         }
72 72
         $property->setValue($this, $value);
73 73
 
Please login to merge, or discard this patch.
src/base/MetaItem.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
                 // Add a URL to the schema.org type if this is a MetaJsonLD object
163 163
                 if ($isMetaJsonLdModel) {
164 164
                     /** @var MetaJsonLd $this */
165
-                    $extraInfo = ' for http://schema.org/' . $this->type;
165
+                    $extraInfo = ' for http://schema.org/'.$this->type;
166 166
                 }
167 167
                 $errorMsg =
168 168
                     Craft::t('seomatic', 'Scenario: "')
@@ -173,10 +173,10 @@  discard block
 block discarded – undo
173 173
                     . print_r($this->render(), true);
174 174
                 Craft::info($errorMsg, __METHOD__);
175 175
                 foreach ($this->errors as $param => $errors) {
176
-                    $errorMsg = Craft::t('seomatic', $errorLabel) . $param;
176
+                    $errorMsg = Craft::t('seomatic', $errorLabel).$param;
177 177
                     /** @var array $errors */
178 178
                     foreach ($errors as $error) {
179
-                        $errorMsg .= ' -> ' . $error;
179
+                        $errorMsg .= ' -> '.$error;
180 180
                         // Change the error level depending on the error message if this is a MetaJsonLD object
181 181
                         if ($isMetaJsonLdModel) {
182 182
                             if (strpos($error, 'recommended') !== false) {
@@ -189,14 +189,14 @@  discard block
 block discarded – undo
189 189
                             }
190 190
                         }
191 191
                     }
192
-                    Craft::info(strtoupper($logLevel) . ' - ' . $errorMsg, __METHOD__);
192
+                    Craft::info(strtoupper($logLevel).' - '.$errorMsg, __METHOD__);
193 193
                     // Extra debugging info for MetaJsonLd objects
194 194
                     if ($isMetaJsonLdModel) {
195 195
                         /** @var MetaJsonLd $className */
196 196
                         $className = get_class($this);
197 197
                         if (!empty($className->schemaPropertyDescriptions[$param])) {
198
-                            $errorMsg = Craft::t('seomatic', $errorLabel) . $param;
199
-                            $errorMsg .= ' -> ' . $className->schemaPropertyDescriptions[$param];
198
+                            $errorMsg = Craft::t('seomatic', $errorLabel).$param;
199
+                            $errorMsg .= ' -> '.$className->schemaPropertyDescriptions[$param];
200 200
                             Craft::info($errorMsg, __METHOD__);
201 201
                         }
202 202
                     }
Please login to merge, or discard this patch.
src/models/MetaSiteVars.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -238,10 +238,10 @@
 block discarded – undo
238 238
         }
239 239
         // Make sure these are strings
240 240
         if (!empty($this->facebookProfileId)) {
241
-            $this->facebookProfileId = (string)$this->facebookProfileId;
241
+            $this->facebookProfileId = (string) $this->facebookProfileId;
242 242
         }
243 243
         if (!empty($this->facebookAppId)) {
244
-            $this->facebookAppId = (string)$this->facebookAppId;
244
+            $this->facebookAppId = (string) $this->facebookAppId;
245 245
         }
246 246
         // Identity
247 247
         if (is_array($this->identity)) {
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
@@ -43,11 +43,11 @@  discard block
 block discarded – undo
43 43
     // Constants
44 44
     // =========================================================================
45 45
 
46
-    const SEOMATIC_SITEMAPINDEX_CONTAINER = Seomatic::SEOMATIC_HANDLE . SitemapIndexTemplate::TEMPLATE_TYPE;
46
+    const SEOMATIC_SITEMAPINDEX_CONTAINER = Seomatic::SEOMATIC_HANDLE.SitemapIndexTemplate::TEMPLATE_TYPE;
47 47
 
48
-    const SEOMATIC_SITEMAP_CONTAINER = Seomatic::SEOMATIC_HANDLE . SitemapTemplate::TEMPLATE_TYPE;
48
+    const SEOMATIC_SITEMAP_CONTAINER = Seomatic::SEOMATIC_HANDLE.SitemapTemplate::TEMPLATE_TYPE;
49 49
 
50
-    const SEOMATIC_SITEMAPCUSTOM_CONTAINER = Seomatic::SEOMATIC_HANDLE . SitemapCustomTemplate::TEMPLATE_TYPE;
50
+    const SEOMATIC_SITEMAPCUSTOM_CONTAINER = Seomatic::SEOMATIC_HANDLE.SitemapCustomTemplate::TEMPLATE_TYPE;
51 51
 
52 52
     const SEARCH_ENGINE_SUBMISSION_URLS = [
53 53
     ];
@@ -247,19 +247,19 @@  discard block
 block discarded – undo
247 247
                         $siteId = $groupSiteIds[0];
248 248
                         $sitemapIndexUrl = $this->sitemapIndexUrlForSiteId($siteId);
249 249
                         if (!empty($sitemapIndexUrl)) {
250
-                            $submissionUrl = $url . urlencode($sitemapIndexUrl);
250
+                            $submissionUrl = $url.urlencode($sitemapIndexUrl);
251 251
                             // create new guzzle client
252 252
                             $guzzleClient = Craft::createGuzzleClient(['timeout' => 5, 'connect_timeout' => 5]);
253 253
                             // Submit the sitemap index to each search engine
254 254
                             try {
255 255
                                 $guzzleClient->post($submissionUrl);
256 256
                                 Craft::info(
257
-                                    'Sitemap index submitted to: ' . $submissionUrl,
257
+                                    'Sitemap index submitted to: '.$submissionUrl,
258 258
                                     __METHOD__
259 259
                                 );
260 260
                             } catch (\Exception $e) {
261 261
                                 Craft::error(
262
-                                    'Error submitting sitemap index to: ' . $submissionUrl . ' - ' . $e->getMessage(),
262
+                                    'Error submitting sitemap index to: '.$submissionUrl.' - '.$e->getMessage(),
263 263
                                     __METHOD__
264 264
                                 );
265 265
                             }
@@ -321,19 +321,19 @@  discard block
 block discarded – undo
321 321
             foreach ($searchEngineUrls as &$url) {
322 322
                 $sitemapUrl = $this->sitemapUrlForBundle($sourceBundleType, $sourceHandle, $sourceSiteId);
323 323
                 if (!empty($sitemapUrl)) {
324
-                    $submissionUrl = $url . urlencode($sitemapUrl);
324
+                    $submissionUrl = $url.urlencode($sitemapUrl);
325 325
                     // create new guzzle client
326 326
                     $guzzleClient = Craft::createGuzzleClient(['timeout' => 5, 'connect_timeout' => 5]);
327 327
                     // Submit the sitemap index to each search engine
328 328
                     try {
329 329
                         $guzzleClient->post($submissionUrl);
330 330
                         Craft::info(
331
-                            'Sitemap index submitted to: ' . $submissionUrl,
331
+                            'Sitemap index submitted to: '.$submissionUrl,
332 332
                             __METHOD__
333 333
                         );
334 334
                     } catch (\Exception $e) {
335 335
                         Craft::error(
336
-                            'Error submitting sitemap index to: ' . $submissionUrl . ' - ' . $e->getMessage(),
336
+                            'Error submitting sitemap index to: '.$submissionUrl.' - '.$e->getMessage(),
337 337
                             __METHOD__
338 338
                         );
339 339
                     }
@@ -374,7 +374,7 @@  discard block
 block discarded – undo
374 374
                     . '-'
375 375
                     . $metaBundle->sourceSiteId
376 376
                     . '-sitemap'
377
-                    . (!empty($page) ? '-p' . $page : '')
377
+                    . (!empty($page) ? '-p'.$page : '')
378 378
                     . '.xml',
379 379
                     null,
380 380
                     null,
@@ -403,19 +403,19 @@  discard block
 block discarded – undo
403 403
             foreach ($searchEngineUrls as &$url) {
404 404
                 $sitemapUrl = $this->sitemapCustomUrlForSiteId($siteId);
405 405
                 if (!empty($sitemapUrl)) {
406
-                    $submissionUrl = $url . urlencode($sitemapUrl);
406
+                    $submissionUrl = $url.urlencode($sitemapUrl);
407 407
                     // create new guzzle client
408 408
                     $guzzleClient = Craft::createGuzzleClient(['timeout' => 5, 'connect_timeout' => 5]);
409 409
                     // Submit the sitemap index to each search engine
410 410
                     try {
411 411
                         $guzzleClient->post($submissionUrl);
412 412
                         Craft::info(
413
-                            'Sitemap Custom submitted to: ' . $submissionUrl,
413
+                            'Sitemap Custom submitted to: '.$submissionUrl,
414 414
                             __METHOD__
415 415
                         );
416 416
                     } catch (\Exception $e) {
417 417
                         Craft::error(
418
-                            'Error submitting sitemap index to: ' . $submissionUrl . ' - ' . $e->getMessage(),
418
+                            'Error submitting sitemap index to: '.$submissionUrl.' - '.$e->getMessage(),
419 419
                             __METHOD__
420 420
                         );
421 421
                     }
@@ -493,7 +493,7 @@  discard block
 block discarded – undo
493 493
         }
494 494
 
495 495
         foreach ($sites as $site) {
496
-            $result .= 'sitemap: ' . $this->sitemapIndexUrlForSiteId($site->id) . PHP_EOL;
496
+            $result .= 'sitemap: '.$this->sitemapIndexUrlForSiteId($site->id).PHP_EOL;
497 497
         }
498 498
 
499 499
         return rtrim($result, PHP_EOL);
@@ -524,9 +524,9 @@  discard block
 block discarded – undo
524 524
     {
525 525
         // Always just invalidate the sitemap cache now, since we're doing paginated sitemaps
526 526
         $cache = Craft::$app->getCache();
527
-        TagDependency::invalidate($cache, SitemapTemplate::SITEMAP_CACHE_TAG . $handle . $siteId);
527
+        TagDependency::invalidate($cache, SitemapTemplate::SITEMAP_CACHE_TAG.$handle.$siteId);
528 528
         Craft::info(
529
-            'Sitemap cache cleared: ' . $handle,
529
+            'Sitemap cache cleared: '.$handle,
530 530
             __METHOD__
531 531
         );
532 532
     }
Please login to merge, or discard this patch.
src/models/SitemapTemplate.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -140,10 +140,10 @@  discard block
 block discarded – undo
140 140
         }
141 141
 
142 142
         $cache = Craft::$app->getCache();
143
-        $pageCacheSuffix = 's' . (int)$metaBundle->metaSitemapVars->sitemapPageSize . 'p' . $page;
143
+        $pageCacheSuffix = 's'.(int) $metaBundle->metaSitemapVars->sitemapPageSize.'p'.$page;
144 144
 
145
-        $uniqueKey = $groupId . $type . $handle . $siteId . $pageCacheSuffix;
146
-        $cacheKey = self::CACHE_KEY . $uniqueKey;
145
+        $uniqueKey = $groupId.$type.$handle.$siteId.$pageCacheSuffix;
146
+        $cacheKey = self::CACHE_KEY.$uniqueKey;
147 147
         $result = $cache->get($cacheKey);
148 148
 
149 149
         // If the sitemap isn't cached, render it immediately
@@ -160,8 +160,8 @@  discard block
 block discarded – undo
160 160
                 $dependency = new TagDependency([
161 161
                     'tags' => [
162 162
                         self::GLOBAL_SITEMAP_CACHE_TAG,
163
-                        self::SITEMAP_CACHE_TAG . $handle . $siteId,
164
-                        self::SITEMAP_CACHE_TAG . $handle . $siteId . $pageCacheSuffix,
163
+                        self::SITEMAP_CACHE_TAG.$handle.$siteId,
164
+                        self::SITEMAP_CACHE_TAG.$handle.$siteId.$pageCacheSuffix,
165 165
                     ],
166 166
                 ]);
167 167
 
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 
174 174
                 // Output some info if this is a console app
175 175
                 if (Craft::$app instanceof ConsoleApplication) {
176
-                    echo 'Sitemap cache result: ' . print_r($result, true) . ' for cache key: ' . $cacheKey . PHP_EOL;
176
+                    echo 'Sitemap cache result: '.print_r($result, true).' for cache key: '.$cacheKey.PHP_EOL;
177 177
                 }
178 178
 
179 179
                 // If the FastCGI Cache Bust plugin is installed, clear its caches too
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
             }
188 188
         } else {
189 189
             if (Craft::$app instanceof ConsoleApplication) {
190
-                echo 'Found in cache' . PHP_EOL;
190
+                echo 'Found in cache'.PHP_EOL;
191 191
             }
192 192
         }
193 193
 
@@ -203,9 +203,9 @@  discard block
 block discarded – undo
203 203
     public function invalidateCache(string $handle, int $siteId)
204 204
     {
205 205
         $cache = Craft::$app->getCache();
206
-        TagDependency::invalidate($cache, self::SITEMAP_CACHE_TAG . $handle . $siteId);
206
+        TagDependency::invalidate($cache, self::SITEMAP_CACHE_TAG.$handle.$siteId);
207 207
         Craft::info(
208
-            'Sitemap cache cleared: ' . $handle,
208
+            'Sitemap cache cleared: '.$handle,
209 209
             __METHOD__
210 210
         );
211 211
     }
Please login to merge, or discard this patch.
src/seoelements/SeoEntry.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
             ->limit($metaBundle->metaSitemapVars->sitemapLimit);
223 223
         if ($metaBundle->sourceType === 'structure'
224 224
             && !empty($metaBundle->metaSitemapVars->structureDepth)) {
225
-            $query->level($metaBundle->metaSitemapVars->structureDepth . '<=');
225
+            $query->level($metaBundle->metaSitemapVars->structureDepth.'<=');
226 226
         }
227 227
 
228 228
         return $query;
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
         if (!empty($typeId)) {
271 271
             $query
272 272
                 ->andWhere([
273
-                    'typeId' => (int)$typeId,
273
+                    'typeId' => (int) $typeId,
274 274
                 ]);
275 275
         }
276 276
         $element = $query->one();
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
             ConfigHelper::getConfigFromFile(self::configFilePath()),
398 398
             [
399 399
                 'sourceId' => $sourceModel->id,
400
-                'sourceName' => (string)$sourceModel->name,
400
+                'sourceName' => (string) $sourceModel->name,
401 401
                 'sourceHandle' => $sourceModel->handle,
402 402
                 'sourceType' => $sourceModel->type,
403 403
             ]
Please login to merge, or discard this patch.
src/console/controllers/SitemapController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
      */
65 65
     public function actionGenerate()
66 66
     {
67
-        echo 'This CLI command is no longer needed because of the paginated sitemap generation' . PHP_EOL;
67
+        echo 'This CLI command is no longer needed because of the paginated sitemap generation'.PHP_EOL;
68 68
     }
69 69
 
70 70
     // Protected Methods
Please login to merge, or discard this patch.
src/helpers/UrlHelper.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -46,12 +46,12 @@  discard block
 block discarded – undo
46 46
             $siteUrl = MetaValue::parseString($siteUrl);
47 47
             // Extract out just the path part
48 48
             $parts = self::decomposeUrl($path);
49
-            $path = $parts['path'] . $parts['suffix'];
49
+            $path = $parts['path'].$parts['suffix'];
50 50
             $url = self::mergeUrlWithPath($siteUrl, $path);
51 51
             // Handle trailing slashes properly for generated URLs
52 52
             $generalConfig = Craft::$app->getConfig()->getGeneral();
53 53
             if ($generalConfig->addTrailingSlashesToUrls && !preg_match('/(.+\?.*)|(\.[^\/]+$)/', $url)) {
54
-                $url = rtrim($url, '/') . '/';
54
+                $url = rtrim($url, '/').'/';
55 55
             }
56 56
             if (!$generalConfig->addTrailingSlashesToUrls) {
57 57
                 $url = rtrim($url, '/');
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
     public static function mergeUrlWithPath(string $url, string $path): string
74 74
     {
75 75
         $overlap = 0;
76
-        $url = rtrim($url, '/') . '/';
77
-        $path = '/' . ltrim($path, '/');
76
+        $url = rtrim($url, '/').'/';
77
+        $path = '/'.ltrim($path, '/');
78 78
         $urlOffset = strlen($url);
79 79
         $pathLength = strlen($path);
80 80
         $pathOffset = 0;
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             }
87 87
         }
88 88
 
89
-        return rtrim($url, '/') . '/' . ltrim(substr($path, $overlap), '/');
89
+        return rtrim($url, '/').'/'.ltrim(substr($path, $overlap), '/');
90 90
     }
91 91
 
92 92
     /**
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
         // Handle trailing slashes properly for generated URLs
159 159
         $generalConfig = Craft::$app->getConfig()->getGeneral();
160 160
         if ($generalConfig->addTrailingSlashesToUrls && !preg_match('/(.+\?.*)|(\.[^\/]+$)/', $url)) {
161
-            $url = rtrim($url, '/') . '/';
161
+            $url = rtrim($url, '/').'/';
162 162
         }
163 163
         if (!$generalConfig->addTrailingSlashesToUrls && (!$preserveTrailingSlash || self::urlIsSiteIndex($url))) {
164 164
             $url = rtrim($url, '/');
@@ -178,13 +178,13 @@  discard block
 block discarded – undo
178 178
         $urlParts = parse_url($url);
179 179
         $encodedUrl = "";
180 180
         if (isset($urlParts['scheme'])) {
181
-            $encodedUrl .= $urlParts['scheme'] . '://';
181
+            $encodedUrl .= $urlParts['scheme'].'://';
182 182
         }
183 183
         if (isset($urlParts['host'])) {
184 184
             $encodedUrl .= $urlParts['host'];
185 185
         }
186 186
         if (isset($urlParts['port'])) {
187
-            $encodedUrl .= ':' . $urlParts['port'];
187
+            $encodedUrl .= ':'.$urlParts['port'];
188 188
         }
189 189
         if (isset($urlParts['path'])) {
190 190
             $encodedUrl .= $urlParts['path'];
@@ -194,15 +194,15 @@  discard block
 block discarded – undo
194 194
             foreach ($query as $j => $value) {
195 195
                 $value = explode('=', $value, 2);
196 196
                 if (count($value) === 2) {
197
-                    $query[$j] = urlencode($value[0]) . '=' . urlencode($value[1]);
197
+                    $query[$j] = urlencode($value[0]).'='.urlencode($value[1]);
198 198
                 } else {
199 199
                     $query[$j] = urlencode($value[0]);
200 200
                 }
201 201
             }
202
-            $encodedUrl .= '?' . implode('&', $query);
202
+            $encodedUrl .= '?'.implode('&', $query);
203 203
         }
204 204
         if (isset($urlParts['fragment'])) {
205
-            $encodedUrl .= '#' . $urlParts['fragment'];
205
+            $encodedUrl .= '#'.$urlParts['fragment'];
206 206
         }
207 207
 
208 208
         return $encodedUrl;
@@ -234,10 +234,10 @@  discard block
 block discarded – undo
234 234
             $sitePath = parse_url(self::siteUrl('/', null, null, $site->id), PHP_URL_PATH);
235 235
             if (!empty($sitePath)) {
236 236
                 // Normalizes a URI path by trimming leading/ trailing slashes and removing double slashes
237
-                $sitePath = '/' . preg_replace('/\/\/+/', '/', trim($sitePath, '/'));
237
+                $sitePath = '/'.preg_replace('/\/\/+/', '/', trim($sitePath, '/'));
238 238
             }
239 239
             // Normalizes a URI path by trimming leading/ trailing slashes and removing double slashes
240
-            $url = '/' . preg_replace('/\/\/+/', '/', trim($url, '/'));
240
+            $url = '/'.preg_replace('/\/\/+/', '/', trim($url, '/'));
241 241
             // See if this url ends with a site prefix, and thus is a site index
242 242
             if (str_ends_with($url, $sitePath)) {
243 243
                 $result = true;
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
             if ($siteId !== null) {
271 271
                 $site = $sites->getSiteById($siteId, true);
272 272
                 if (!$site) {
273
-                    throw new Exception('Invalid site ID: ' . $siteId);
273
+                    throw new Exception('Invalid site ID: '.$siteId);
274 274
                 }
275 275
             }
276 276
 
@@ -315,11 +315,11 @@  discard block
 block discarded – undo
315 315
 
316 316
         if (filter_var($pathOrUrl, FILTER_VALIDATE_URL)) {
317 317
             $url_parts = parse_url($pathOrUrl);
318
-            $result['prefix'] = $url_parts['scheme'] . '://' . $url_parts['host'];
318
+            $result['prefix'] = $url_parts['scheme'].'://'.$url_parts['host'];
319 319
             $result['path'] = $url_parts['path'] ?? '';
320 320
             $result['suffix'] = '';
321
-            $result['suffix'] .= empty($url_parts['query']) ? '' : '?' . $url_parts['query'];
322
-            $result['suffix'] .= empty($url_parts['fragment']) ? '' : '#' . $url_parts['fragment'];
321
+            $result['suffix'] .= empty($url_parts['query']) ? '' : '?'.$url_parts['query'];
322
+            $result['suffix'] .= empty($url_parts['fragment']) ? '' : '#'.$url_parts['fragment'];
323 323
         } else {
324 324
             $result['prefix'] = '';
325 325
             $result['path'] = $pathOrUrl;
Please login to merge, or discard this patch.
src/helpers/DynamicMeta.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     {
88 88
         if ($pageInfo !== null && $pageInfo->currentPage !== null) {
89 89
             // Let the meta containers know that this page is paginated
90
-            Seomatic::$plugin->metaContainers->paginationPage = (string)$pageInfo->currentPage;
90
+            Seomatic::$plugin->metaContainers->paginationPage = (string) $pageInfo->currentPage;
91 91
             // See if we should strip the query params
92 92
             $stripQueryParams = true;
93 93
             $pageTrigger = Craft::$app->getConfig()->getGeneral()->pageTrigger;
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
                     if (is_array($content)) {
171 171
                         $headerValue = '';
172 172
                         foreach ($content as $contentVal) {
173
-                            $headerValue .= ($contentVal . ',');
173
+                            $headerValue .= ($contentVal.',');
174 174
                         }
175 175
                         $headerValue = rtrim($headerValue, ',');
176 176
                     } else {
@@ -190,12 +190,12 @@  discard block
 block discarded – undo
190 190
                         $headerValue = '';
191 191
                         foreach ($href as $hrefVal) {
192 192
                             $hrefVal = UrlHelper::encodeUrl($hrefVal);
193
-                            $headerValue .= ('<' . $hrefVal . '>' . ',');
193
+                            $headerValue .= ('<'.$hrefVal.'>'.',');
194 194
                         }
195 195
                         $headerValue = rtrim($headerValue, ',');
196 196
                     } else {
197 197
                         $href = UrlHelper::encodeUrl($href);
198
-                        $headerValue = '<' . $href . '>';
198
+                        $headerValue = '<'.$href.'>';
199 199
                     }
200 200
                     $headerValue .= "; rel='canonical'";
201 201
                     $response->headers->add('Link', $headerValue);
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
                     if (is_array($content)) {
212 212
                         $headerValue = '';
213 213
                         foreach ($content as $contentVal) {
214
-                            $headerValue .= ($contentVal . ',');
214
+                            $headerValue .= ($contentVal.',');
215 215
                         }
216 216
                         $headerValue = rtrim($headerValue, ',');
217 217
                     } else {
@@ -625,7 +625,7 @@  discard block
 block discarded – undo
625 625
                         }
626 626
                     }
627 627
                     // Never include the URL if the element isn't enabled for the site
628
-                    if (isset($element->enabledForSite) && !(bool)$element->enabledForSite) {
628
+                    if (isset($element->enabledForSite) && !(bool) $element->enabledForSite) {
629 629
                         $includeUrl = false;
630 630
                     }
631 631
                 } else {
@@ -833,7 +833,7 @@  discard block
 block discarded – undo
833 833
                 if (isset($value[$day][$time])
834 834
                     && ($date = DateTimeHelper::toDateTime($value[$day][$time])) !== false
835 835
                 ) {
836
-                    $normalized[$day][$time] = (array)($date);
836
+                    $normalized[$day][$time] = (array) ($date);
837 837
                 } else {
838 838
                     $normalized[$day][$time] = null;
839 839
                 }
Please login to merge, or discard this patch.