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