@@ -371,48 +371,26 @@ public function toArray(): array
371371 return [
372372 'version ' => Version::VERSION ,
373373 'user ' => $ this ->user ,
374- 'db ' => $ this ->db !== null ? $ this ->db ->getName () : null ,
375- 'bookmark ' => $ this ->bookmarkFeature !== null ? $ this ->bookmarkFeature ->bookmark ->getName () : null ,
376- 'central_columns ' => $ this ->centralColumnsFeature !== null
377- ? $ this ->centralColumnsFeature ->centralColumns ->getName ()
378- : null ,
374+ 'db ' => $ this ->db ?->getName(),
375+ 'bookmark ' => $ this ->bookmarkFeature ?->bookmark->getName (),
376+ 'central_columns ' => $ this ->centralColumnsFeature ?->centralColumns->getName (),
379377 'column_info ' => $ columnInfo ,
380- 'designer_settings ' => $ this ->databaseDesignerSettingsFeature !== null
381- ? $ this ->databaseDesignerSettingsFeature ->designerSettings ->getName ()
382- : null ,
383- 'export_templates ' => $ this ->exportTemplatesFeature !== null
384- ? $ this ->exportTemplatesFeature ->exportTemplates ->getName ()
385- : null ,
386- 'favorite ' => $ this ->favoriteTablesFeature !== null
387- ? $ this ->favoriteTablesFeature ->favorite ->getName ()
388- : null ,
389- 'history ' => $ this ->sqlHistoryFeature !== null ? $ this ->sqlHistoryFeature ->history ->getName () : null ,
390- 'navigationhiding ' => $ this ->navigationItemsHidingFeature !== null
391- ? $ this ->navigationItemsHidingFeature ->navigationHiding ->getName ()
392- : null ,
393- 'pdf_pages ' => $ this ->pdfFeature !== null ? $ this ->pdfFeature ->pdfPages ->getName () : null ,
394- 'recent ' => $ this ->recentlyUsedTablesFeature !== null
395- ? $ this ->recentlyUsedTablesFeature ->recent ->getName ()
396- : null ,
378+ 'designer_settings ' => $ this ->databaseDesignerSettingsFeature ?->designerSettings->getName (),
379+ 'export_templates ' => $ this ->exportTemplatesFeature ?->exportTemplates->getName (),
380+ 'favorite ' => $ this ->favoriteTablesFeature ?->favorite->getName (),
381+ 'history ' => $ this ->sqlHistoryFeature ?->history->getName (),
382+ 'navigationhiding ' => $ this ->navigationItemsHidingFeature ?->navigationHiding->getName (),
383+ 'pdf_pages ' => $ this ->pdfFeature ?->pdfPages->getName (),
384+ 'recent ' => $ this ->recentlyUsedTablesFeature ?->recent->getName (),
397385 'relation ' => $ relation ,
398- 'savedsearches ' => $ this ->savedQueryByExampleSearchesFeature !== null
399- ? $ this ->savedQueryByExampleSearchesFeature ->savedSearches ->getName ()
400- : null ,
401- 'table_coords ' => $ this ->pdfFeature !== null ? $ this ->pdfFeature ->tableCoords ->getName () : null ,
402- 'table_info ' => $ this ->displayFeature !== null ? $ this ->displayFeature ->tableInfo ->getName () : null ,
403- 'table_uiprefs ' => $ this ->uiPreferencesFeature !== null
404- ? $ this ->uiPreferencesFeature ->tableUiPrefs ->getName ()
405- : null ,
406- 'tracking ' => $ this ->trackingFeature !== null ? $ this ->trackingFeature ->tracking ->getName () : null ,
407- 'userconfig ' => $ this ->userPreferencesFeature !== null
408- ? $ this ->userPreferencesFeature ->userConfig ->getName ()
409- : null ,
410- 'usergroups ' => $ this ->configurableMenusFeature !== null
411- ? $ this ->configurableMenusFeature ->userGroups ->getName ()
412- : null ,
413- 'users ' => $ this ->configurableMenusFeature !== null
414- ? $ this ->configurableMenusFeature ->users ->getName ()
415- : null ,
386+ 'savedsearches ' => $ this ->savedQueryByExampleSearchesFeature ?->savedSearches->getName (),
387+ 'table_coords ' => $ this ->pdfFeature ?->tableCoords->getName (),
388+ 'table_info ' => $ this ->displayFeature ?->tableInfo->getName (),
389+ 'table_uiprefs ' => $ this ->uiPreferencesFeature ?->tableUiPrefs->getName (),
390+ 'tracking ' => $ this ->trackingFeature ?->tracking->getName (),
391+ 'userconfig ' => $ this ->userPreferencesFeature ?->userConfig->getName (),
392+ 'usergroups ' => $ this ->configurableMenusFeature ?->userGroups->getName (),
393+ 'users ' => $ this ->configurableMenusFeature ?->users->getName (),
416394 'bookmarkwork ' => $ this ->bookmarkFeature !== null ,
417395 'mimework ' => $ this ->browserTransformationFeature !== null ,
418396 'centralcolumnswork ' => $ this ->centralColumnsFeature !== null ,
0 commit comments