mirror of
https://github.com/grocy/grocy.git
synced 2025-10-15 01:37:13 +00:00
Upgraded to PHP-CS-Fixer v3
This commit is contained in:
@@ -2,12 +2,13 @@
|
||||
|
||||
// This is executed inside DatabaseMigrationService class/context
|
||||
|
||||
use \Grocy\Services\LocalizationService;
|
||||
use Grocy\Services\LocalizationService;
|
||||
|
||||
$localizationService = $this->getLocalizationService();
|
||||
|
||||
$db = $this->getDatabaseService()->GetDbConnection();
|
||||
|
||||
$defaultShoppingList = $db->shopping_lists()->where('id = 1')->fetch();
|
||||
$defaultShoppingList->update(array(
|
||||
$defaultShoppingList->update([
|
||||
'name' => $localizationService->__t('Shopping list')
|
||||
));
|
||||
]);
|
||||
|
Reference in New Issue
Block a user