Shorten overly long line in RoutingCacheBuilder
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 27 May 2022 11:58:08 +0000 (13:58 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 27 May 2022 11:58:08 +0000 (13:58 +0200)
wcfsetup/install/files/lib/system/cache/builder/RoutingCacheBuilder.class.php

index 6070287a7078f3d56ad2f36aa2c0e5fd7d4f4a47..9dce4d89730329e6b8cb8f65def6c632880ecd47 100644 (file)
@@ -297,7 +297,11 @@ class RoutingCacheBuilder extends AbstractCacheBuilder
                 $cmsIdentifier = '__WCF_CMS__' . $row['pageID'] . '-' . ($row['languageID'] ?: 0);
 
                 // Discard the custom url if this CMS page is the landing page of its associated app.
-                if (!empty($landingPages[$abbreviations[$packageID]]) && $landingPages[$abbreviations[$packageID]][0] === '__WCF_CMS__' . $row['pageID'] && !$row['languageID']) {
+                if (
+                    !empty($landingPages[$abbreviations[$packageID]])
+                    && $landingPages[$abbreviations[$packageID]][0] === '__WCF_CMS__' . $row['pageID']
+                    && !$row['languageID']
+                ) {
                     $customUrl = '';
                 }
                 $data['reverse'][$abbreviations[$packageID]][$cmsIdentifier] = $customUrl;