Skip to content

Commit

Permalink
fix: removed more whitespaces (#3312)
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Jan 3, 2025
1 parent 82d5c7a commit a8d698f
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public function extractPackage(): StreamedResponse

return new StreamedResponse(static function () use ($upgrade, $pathToPackage) {
$progressCallback = static function ($progress) {
echo json_encode(['progress' => $progress]) . "\n";
echo json_encode(['progress' => $progress]);
ob_flush();
flush();
};
Expand All @@ -220,7 +220,7 @@ public function createTemporaryBackup(): StreamedResponse

return new StreamedResponse(static function () use ($upgrade, $backupHash) {
$progressCallback = static function ($progress) {
echo json_encode(['progress' => $progress]) . "\n";
echo json_encode(['progress' => $progress]);
ob_flush();
flush();
};
Expand All @@ -244,7 +244,7 @@ public function installPackage(): StreamedResponse
$configurator = $this->container->get('phpmyfaq.setup.environment_configurator');
return new StreamedResponse(static function () use ($upgrade, $configurator) {
$progressCallback = static function ($progress) {
echo json_encode(['progress' => $progress]) . "\n";
echo json_encode(['progress' => $progress]);
ob_flush();
flush();
};
Expand All @@ -257,7 +257,7 @@ public function installPackage(): StreamedResponse
}

/**
* @throws Exception
* @throws Exception|\Exception
*/
#[Route('admin/api/update-database')]
public function updateDatabase(): StreamedResponse
Expand Down Expand Up @@ -293,15 +293,14 @@ public function updateDatabase(): StreamedResponse
}

/**
* @throws Exception
* @throws Exception|\Exception
*/
#[Route('admin/api/cleanup')]
public function cleanUp(): JsonResponse
{
$this->userHasPermission(PermissionType::CONFIGURATION_EDIT);

$upgrade = $this->container->get('phpmyfaq.setup.upgrade');
$upgrade->cleanUp();
$this->container->get('phpmyfaq.setup.upgrade')->cleanUp();

return $this->json(['message' => '✅ Cleanup successful.'], Response::HTTP_OK);
}
Expand Down

0 comments on commit a8d698f

Please sign in to comment.