@@ -178,12 +178,12 @@ discard block |
||
| 178 | 178 | $title = $title['title']; |
| 179 | 179 | $model = $title['dataClass'] ?? $model; |
| 180 | 180 | } |
| 181 | - if (! class_exists($model)) { |
|
| 181 | + if (!class_exists($model)) { |
|
| 182 | 182 | continue; |
| 183 | 183 | } |
| 184 | 184 | $obj = Injector::inst()->get($model); |
| 185 | 185 | if ($obj && $obj->canView()) { |
| 186 | - if (! $groupAdded) { |
|
| 186 | + if (!$groupAdded) { |
|
| 187 | 187 | DashboardWelcomeQuicklinks::add_group($groupCode, $ma->menu_title(), 100); |
| 188 | 188 | $groupAdded = true; |
| 189 | 189 | } |
@@ -191,14 +191,14 @@ discard block |
||
| 191 | 191 | $ma = ReflectionHelper::allowAccessToProperty(get_class($ma), 'modelClass'); |
| 192 | 192 | $ma->modelClass = $model; |
| 193 | 193 | $list = $ma->getList(); |
| 194 | - if (! $list) { |
|
| 194 | + if (!$list) { |
|
| 195 | 195 | $list = $model::get(); |
| 196 | 196 | } |
| 197 | 197 | $objectCount = $list->count(); |
| 198 | 198 | if ($objectCount === 1) { |
| 199 | 199 | $baseTable = Injector::inst()->get($model)->baseTable(); |
| 200 | 200 | $obj = DataObject::get_one($model, [$baseTable . '.ClassName' => $model]); |
| 201 | - if (! $obj) { |
|
| 201 | + if (!$obj) { |
|
| 202 | 202 | $obj = DataObject::get_one($model); |
| 203 | 203 | } |
| 204 | 204 | if ($obj && $obj->hasMethod('CMSEditLink')) { |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | $link = ''; |
| 214 | 214 | if ($obj->hasMethod('CMSListLink')) { |
| 215 | 215 | $link = $obj->CMSListLink(); |
| 216 | - } if (! $link) { |
|
| 216 | + } if (!$link) { |
|
| 217 | 217 | $link = $ma->getLinkForModelTab($model); |
| 218 | 218 | } |
| 219 | 219 | $titleContainsObjectCount = strpos($title, ' (' . $objectCount . ')'); |