Upgraded to PHP-CS-Fixer v3

This commit is contained in:
Bernd Bestel
2021-07-03 17:46:47 +02:00
parent 766eae5a7a
commit 0f88eed08c
21 changed files with 267 additions and 211 deletions

View File

@@ -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')
));
]);