@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | |
| 80 | 80 | usort( |
| 81 | 81 | $shortcuts, |
| 82 | - function ($a, $b) { |
|
| 82 | + function($a, $b) { |
|
| 83 | 83 | ($a['SortOrder'] ?? 0) <=> ($b['SortOrder'] ?? 0); |
| 84 | 84 | } |
| 85 | 85 | ); |
@@ -123,13 +123,13 @@ discard block |
||
| 123 | 123 | } |
| 124 | 124 | } |
| 125 | 125 | $kc = (array) $this->Config()->get('colour_options'); |
| 126 | - if(empty($kc)) { |
|
| 126 | + if (empty($kc)) { |
|
| 127 | 127 | $kc = $this->Config()->get('default_colour_options'); |
| 128 | 128 | } |
| 129 | 129 | $kcCount = count($kc); |
| 130 | 130 | $colours = ''; |
| 131 | 131 | foreach ($kc as $key => $colour) { |
| 132 | - $colours .= ' .grid-wrapper .grid-cell:nth-child(' . $kcCount . 'n+' . ($key + 1) . ') div.header {background-color: ' . $colour . '; color: '.$this->getFontColor($colour).'!important;}'; |
|
| 132 | + $colours .= ' .grid-wrapper .grid-cell:nth-child(' . $kcCount . 'n+' . ($key + 1) . ') div.header {background-color: ' . $colour . '; color: ' . $this->getFontColor($colour) . '!important;}'; |
|
| 133 | 133 | } |
| 134 | 134 | $html .= '</div>'; |
| 135 | 135 | $html .= '<style> |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | $useDefaultDashboard = $this->config()->get('use_default_dashboard'); |
| 194 | 194 | $classNames = ClassInfo::implementorsOf(DashboardWelcomeQuickLinksProvider::class); |
| 195 | 195 | foreach ($classNames as $className) { |
| 196 | - if($useDefaultDashboard === false && $className === DefaultDashboardProvider::class) { |
|
| 196 | + if ($useDefaultDashboard === false && $className === DefaultDashboardProvider::class) { |
|
| 197 | 197 | continue; |
| 198 | 198 | } |
| 199 | 199 | $array += Injector::inst()->get($className)->provideDashboardWelcomeQuickLinks(); |
@@ -215,10 +215,10 @@ discard block |
||
| 215 | 215 | if (!empty($iconClass)) { |
| 216 | 216 | $icon = '<i class="' . $iconClass . '"></i> '; |
| 217 | 217 | } |
| 218 | - if(!$target) { |
|
| 218 | + if (!$target) { |
|
| 219 | 219 | $target = '_self'; |
| 220 | 220 | } |
| 221 | - $target = ' target="'.$target.'"'; |
|
| 221 | + $target = ' target="' . $target . '"'; |
|
| 222 | 222 | if ($link) { |
| 223 | 223 | $html = ' |
| 224 | 224 | ' . $script . ' |
@@ -249,8 +249,8 @@ discard block |
||
| 249 | 249 | { |
| 250 | 250 | $app = $this->getApplicationName(); |
| 251 | 251 | $siteConfigTitle = SiteConfig::current_site_config()->Title; |
| 252 | - if($siteConfigTitle) { |
|
| 253 | - $app = $siteConfigTitle . ' ('.$app.')'; |
|
| 252 | + if ($siteConfigTitle) { |
|
| 253 | + $app = $siteConfigTitle . ' (' . $app . ')'; |
|
| 254 | 254 | } |
| 255 | 255 | return ($section = $this->SectionTitle()) ? sprintf('%s for %s', $section, $app) : $app; |
| 256 | 256 | } |