diff --git a/src/Appwrite/Platform/Modules/VCS/Http/GitHub/Authorize/External/Update.php b/src/Appwrite/Platform/Modules/VCS/Http/GitHub/Authorize/External/Update.php index 15e857d9bb..411812311a 100644 --- a/src/Appwrite/Platform/Modules/VCS/Http/GitHub/Authorize/External/Update.php +++ b/src/Appwrite/Platform/Modules/VCS/Http/GitHub/Authorize/External/Update.php @@ -77,8 +77,7 @@ class Update extends Action callable $getProjectDB, Build $queueForBuilds, array $platform - ) - { + ) { $installation = $dbForPlatform->getDocument('installations', $installationId); if ($installation->isEmpty()) { @@ -139,4 +138,4 @@ class Update extends Action $response->noContent(); } -} \ No newline at end of file +} diff --git a/src/Appwrite/Platform/Modules/VCS/Http/GitHub/Deployments.php b/src/Appwrite/Platform/Modules/VCS/Http/GitHub/Deployments.php index 7a5971051a..a72ca0f5d8 100644 --- a/src/Appwrite/Platform/Modules/VCS/Http/GitHub/Deployments.php +++ b/src/Appwrite/Platform/Modules/VCS/Http/GitHub/Deployments.php @@ -44,8 +44,7 @@ trait Deployments Build $queueForBuilds, callable $getProjectDB, array $platform, - ) - { + ) { $errors = []; foreach ($repositories as $repository) { try { @@ -483,7 +482,7 @@ trait Deployments $github->updateCommitStatus($repositoryName, $providerCommitHash, $owner, 'pending', $message, $providerTargetUrl, $name); } - $queueName = $this->getBuildQueueName( $project, $dbForPlatform, $authorization); + $queueName = $this->getBuildQueueName($project, $dbForPlatform, $authorization); $queueForBuilds ->setQueue($queueName) @@ -518,4 +517,4 @@ trait Deployments { return System::getEnv('_APP_BUILDS_QUEUE_NAME', Event::BUILDS_QUEUE_NAME); } -} \ No newline at end of file +} diff --git a/src/Appwrite/Platform/Modules/VCS/Http/GitHub/Events/Create.php b/src/Appwrite/Platform/Modules/VCS/Http/GitHub/Events/Create.php index 9abd72014f..02c1b88156 100644 --- a/src/Appwrite/Platform/Modules/VCS/Http/GitHub/Events/Create.php +++ b/src/Appwrite/Platform/Modules/VCS/Http/GitHub/Events/Create.php @@ -16,7 +16,6 @@ use Utopia\Span\Span; use Utopia\System\System; use Utopia\VCS\Adapter\Git\GitHub; - class Create extends Action { use HTTP; @@ -90,8 +89,7 @@ class Create extends Action array $parsedPayload, Database $dbForPlatform, Authorization $authorization, - ) - { + ) { if ($parsedPayload["action"] !== "deleted") { return; } @@ -128,8 +126,7 @@ class Create extends Action Build $queueForBuilds, callable $getProjectDB, array $platform, - ) - { + ) { $providerBranchCreated = $parsedPayload["branchCreated"] ?? false; $providerBranchDeleted = $parsedPayload["branchDeleted"] ?? false; $providerBranch = $parsedPayload["branch"] ?? ''; @@ -175,8 +172,7 @@ class Create extends Action Build $queueForBuilds, callable $getProjectDB, array $platform, - ) - { + ) { $action = $parsedPayload["action"] ?? ''; if ($action == "opened" || $action == "reopened" || $action == "synchronize") { @@ -240,4 +236,4 @@ class Create extends Action } } } -} \ No newline at end of file +}