@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | |
138 | 138 | usort( |
139 | 139 | $shortcuts, |
140 | - function ($a, $b) { |
|
140 | + function($a, $b) { |
|
141 | 141 | ($a['SortOrder'] ?? 0) <=> ($b['SortOrder'] ?? 0); |
142 | 142 | } |
143 | 143 | ); |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | $entry['IconClass'] ?? '', |
179 | 179 | $entry['Target'] ?? '', |
180 | 180 | )->Field(); |
181 | - if($count > $max && count($items) == $count + 1) { |
|
181 | + if ($count > $max && count($items) == $count + 1) { |
|
182 | 182 | $html .= $this->makeShortCut( |
183 | 183 | $this->Config()->get('more_phrase'), |
184 | 184 | '#', // link |
@@ -192,13 +192,13 @@ discard block |
||
192 | 192 | } |
193 | 193 | } |
194 | 194 | $kc = (array) $this->Config()->get('colour_options'); |
195 | - if(empty($kc)) { |
|
195 | + if (empty($kc)) { |
|
196 | 196 | $kc = $this->Config()->get('default_colour_options'); |
197 | 197 | } |
198 | 198 | $kcCount = count($kc); |
199 | 199 | $colours = ''; |
200 | 200 | foreach ($kc as $key => $colour) { |
201 | - $colours .= ' .grid-wrapper .grid-cell:nth-child(' . $kcCount . 'n+' . ($key + 1) . ') div.header {background-color: ' . $colour . '; color: '.$this->getFontColor($colour).'!important;}'; |
|
201 | + $colours .= ' .grid-wrapper .grid-cell:nth-child(' . $kcCount . 'n+' . ($key + 1) . ') div.header {background-color: ' . $colour . '; color: ' . $this->getFontColor($colour) . '!important;}'; |
|
202 | 202 | } |
203 | 203 | $html .= '</div>'; |
204 | 204 | $html .= '<script>window.setTimeout(dashboardWelcomeQuickLinksSetupInputAndFilter, 500)</script>'; |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | $useDefaultDashboard = (bool) $this->config()->get('use_default_dashboard_provider'); |
213 | 213 | $classNames = ClassInfo::implementorsOf(DashboardWelcomeQuickLinksProvider::class); |
214 | 214 | foreach ($classNames as $className) { |
215 | - if($useDefaultDashboard === false && (string) $className === DefaultDashboardProvider::class) { |
|
215 | + if ($useDefaultDashboard === false && (string) $className === DefaultDashboardProvider::class) { |
|
216 | 216 | continue; |
217 | 217 | } |
218 | 218 | $array += Injector::inst()->get($className)->provideDashboardWelcomeQuickLinks(); |
@@ -234,10 +234,10 @@ discard block |
||
234 | 234 | if (!empty($iconClass)) { |
235 | 235 | $icon = '<i class="' . $iconClass . '"></i> '; |
236 | 236 | } |
237 | - if(!$target) { |
|
237 | + if (!$target) { |
|
238 | 238 | $target = '_self'; |
239 | 239 | } |
240 | - $target = ' target="'.$target.'"'; |
|
240 | + $target = ' target="' . $target . '"'; |
|
241 | 241 | if ($link) { |
242 | 242 | $html = ' |
243 | 243 | ' . $script . ' |
@@ -265,8 +265,8 @@ discard block |
||
265 | 265 | { |
266 | 266 | $app = $this->getApplicationName(); |
267 | 267 | $siteConfigTitle = SiteConfig::current_site_config()->Title; |
268 | - if($siteConfigTitle) { |
|
269 | - $app = $siteConfigTitle . ' ('.$app.')'; |
|
268 | + if ($siteConfigTitle) { |
|
269 | + $app = $siteConfigTitle . ' (' . $app . ')'; |
|
270 | 270 | } |
271 | 271 | return ($section = $this->SectionTitle()) ? sprintf('%s for %s', $section, $app) : $app; |
272 | 272 | } |