manager->getAllFolders() as $id => $folder) { $quota = $folder->quota; $changed = false; if ($quota === 1073741274) { $quota = 1024 ** 3; $changed = true; } elseif ($quota === 10737412742) { $quota = 1024 ** 3 * 10; $changed = true; } if ($changed) { $this->manager->setFolderQuota($id, $quota); } } } }