Passed
Push — master ( ef57d8...aba0d0 )
by Nicolaas
02:13
created
src/Admin/DashboardWelcomeQuickLinks.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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 .= <<<JS
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
         $useDefaultDashboard = (bool) $this->config()->get('use_default_dashboard_provider');
233 233
         $classNames = ClassInfo::implementorsOf(DashboardWelcomeQuickLinksProvider::class);
234 234
         foreach ($classNames as $className) {
235
-            if($useDefaultDashboard === false && (string) $className === DefaultDashboardProvider::class && 1 === 2) {
235
+            if ($useDefaultDashboard === false && (string) $className === DefaultDashboardProvider::class && 1 === 2) {
236 236
                 continue;
237 237
             }
238 238
             $array += Injector::inst()->get($className)->provideDashboardWelcomeQuickLinks();
@@ -254,10 +254,10 @@  discard block
 block discarded – undo
254 254
         if (!empty($iconClass)) {
255 255
             $icon = '<i class="' . $iconClass . '"></i> ';
256 256
         }
257
-        if(!$target) {
257
+        if (!$target) {
258 258
             $target = '_self';
259 259
         }
260
-        $target = ' target="'.$target.'"';
260
+        $target = ' target="' . $target . '"';
261 261
         if ($link) {
262 262
             $html = '
263 263
             ' . $script . '
@@ -288,8 +288,8 @@  discard block
 block discarded – undo
288 288
     {
289 289
         $app = $this->getApplicationName();
290 290
         $siteConfigTitle = SiteConfig::current_site_config()->Title;
291
-        if($siteConfigTitle) {
292
-            $app = $siteConfigTitle . ' ('.$app.')';
291
+        if ($siteConfigTitle) {
292
+            $app = $siteConfigTitle . ' (' . $app . ')';
293 293
         }
294 294
         return ($section = $this->SectionTitle()) ? sprintf('%s for %s', $section, $app) : $app;
295 295
     }
Please login to merge, or discard this patch.