chore: phpcs

This commit is contained in:
Noah Lancien 2024-11-12 14:06:31 +01:00
parent cc7a9b54e5
commit 8f690473f8
2 changed files with 2 additions and 22 deletions

View file

@ -139,7 +139,7 @@ class TicketController extends Controller
'ticket' => $ticket,
'messages' => $messages,
'isSubscribed' => $isSubscribed
]);
]);
}
/**
@ -669,26 +669,6 @@ class TicketController extends Controller
}
}
// if (!\is_null($ticket->file2)) {
// $uploadedFile2 = GitLab::projects()->uploadFile($gitlabRepoId, $ticket->file2);
// $description .= $this->formatGitlabFiles($ticket, $uploadedFile2, 2);
// }
// if (!\is_null($ticket->file3)) {
// $uploadedFile3 = GitLab::projects()->uploadFile($gitlabRepoId, $ticket->file3);
// $description .= $this->formatGitlabFiles($ticket, $uploadedFile3, 3);
// }
// if (!\is_null($ticket->file4)) {
// $uploadedFile4 = GitLab::projects()->uploadFile($gitlabRepoId, $ticket->file4);
// $description .= $this->formatGitlabFiles($ticket, $uploadedFile4, 4);
// }
// if (!\is_null($ticket->file5)) {
// $uploadedFile5 = GitLab::projects()->uploadFile($gitlabRepoId, $ticket->file5);
// $description .= $this->formatGitlabFiles($ticket, $uploadedFile5, 5);
// }
$issue = GitLab::issues()->create($gitlabRepoId, [
'title' => 'ts-' . $ticket->id,
'description' => $description,

View file

@ -27,8 +27,8 @@ return new class extends Migration
public function down()
{
Schema::table('messages', function (Blueprint $table) {
$table->dropColumn('file2');
$table->dropColumn('file3');
$table->dropColumn('file4');
});
}
};