Passed
Push — master ( 0ad8dd...1ecd04 )
by Nicolaas
02:16
created
src/Admin/DashboardWelcomeQuickLinks.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
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
             );
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
                     }
168 168
                 }
169 169
                 foreach ($items as $count => $entry) {
170
-                    if($count === $max) {
170
+                    if ($count === $max) {
171 171
                         $html .= $this->makeShortCut(
172 172
                             $this->Config()->get('more_phrase'),
173 173
                             '#',
@@ -190,13 +190,13 @@  discard block
 block discarded – undo
190 190
             }
191 191
         }
192 192
         $kc = (array) $this->Config()->get('colour_options');
193
-        if(empty($kc)) {
193
+        if (empty($kc)) {
194 194
             $kc = $this->Config()->get('default_colour_options');
195 195
         }
196 196
         $kcCount = count($kc);
197 197
         $colours = '';
198 198
         foreach ($kc as $key => $colour) {
199
-            $colours .= ' .grid-wrapper .grid-cell:nth-child(' . $kcCount . 'n+' . ($key + 1) . ') div.header {background-color: ' . $colour . '; color: '.$this->getFontColor($colour).'!important;}';
199
+            $colours .= ' .grid-wrapper .grid-cell:nth-child(' . $kcCount . 'n+' . ($key + 1) . ') div.header {background-color: ' . $colour . '; color: ' . $this->getFontColor($colour) . '!important;}';
200 200
         }
201 201
         $html .= '</div>';
202 202
         $html .= '<script>window.setTimeout(dashboardWelcomeQuickLinksSetupInputAndFilter, 500)</script>';
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
         $useDefaultDashboard = (bool) $this->config()->get('use_default_dashboard_provider');
211 211
         $classNames = ClassInfo::implementorsOf(DashboardWelcomeQuickLinksProvider::class);
212 212
         foreach ($classNames as $className) {
213
-            if($useDefaultDashboard === false && (string) $className === DefaultDashboardProvider::class) {
213
+            if ($useDefaultDashboard === false && (string) $className === DefaultDashboardProvider::class) {
214 214
                 continue;
215 215
             }
216 216
             $array += Injector::inst()->get($className)->provideDashboardWelcomeQuickLinks();
@@ -232,10 +232,10 @@  discard block
 block discarded – undo
232 232
         if (!empty($iconClass)) {
233 233
             $icon = '<i class="' . $iconClass . '"></i> ';
234 234
         }
235
-        if(!$target) {
235
+        if (!$target) {
236 236
             $target = '_self';
237 237
         }
238
-        $target = ' target="'.$target.'"';
238
+        $target = ' target="' . $target . '"';
239 239
         if ($link) {
240 240
             $html = '
241 241
             ' . $script . '
@@ -263,8 +263,8 @@  discard block
 block discarded – undo
263 263
     {
264 264
         $app = $this->getApplicationName();
265 265
         $siteConfigTitle = SiteConfig::current_site_config()->Title;
266
-        if($siteConfigTitle) {
267
-            $app = $siteConfigTitle . ' ('.$app.')';
266
+        if ($siteConfigTitle) {
267
+            $app = $siteConfigTitle . ' (' . $app . ')';
268 268
         }
269 269
         return ($section = $this->SectionTitle()) ? sprintf('%s for %s', $section, $app) : $app;
270 270
     }
Please login to merge, or discard this patch.