@@ -252,12 +252,12 @@ discard block |
||
252 | 252 | $title = $title['title']; |
253 | 253 | $model = $title['dataClass'] ?? $model; |
254 | 254 | } |
255 | - if (! class_exists($model)) { |
|
255 | + if (!class_exists($model)) { |
|
256 | 256 | continue; |
257 | 257 | } |
258 | 258 | $obj = Injector::inst()->get($model); |
259 | 259 | if ($obj && $obj->canView()) { |
260 | - if (! $groupAdded) { |
|
260 | + if (!$groupAdded) { |
|
261 | 261 | DashboardWelcomeQuicklinks::add_group($groupCode, $ma->menu_title(), 100); |
262 | 262 | $groupAdded = true; |
263 | 263 | } |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | $ma = ReflectionHelper::allowAccessToProperty(get_class($ma), 'modelClass'); |
266 | 266 | $ma->modelClass = $model; |
267 | 267 | $list = $ma->getList(); |
268 | - if (! $list) { |
|
268 | + if (!$list) { |
|
269 | 269 | $list = $model::get(); |
270 | 270 | } |
271 | 271 | $objectCount = $list->count(); |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | if ($obj->hasMethod('CMSListLink')) { |
278 | 278 | $link = $obj->CMSListLink(); |
279 | 279 | } |
280 | - if (! $link) { |
|
280 | + if (!$link) { |
|
281 | 281 | $link = $ma->getLinkForModelTab($model); |
282 | 282 | } |
283 | 283 | $titleContainsObjectCount = strpos($title, ' (' . $objectCount . ')'); |
@@ -316,7 +316,7 @@ discard block |
||
316 | 316 | |
317 | 317 | protected function sortByCountAndTitle(array $array): array |
318 | 318 | { |
319 | - usort($array, function ($a, $b) { |
|
319 | + usort($array, function($a, $b) { |
|
320 | 320 | $countComparison = $b['Count'] <=> $a['Count']; |
321 | 321 | if ($countComparison === 0) { |
322 | 322 | return $a['Title'] <=> $b['Title']; |