all
Some checks failed
Publish Docker Image / build-and-push (push) Failing after 2m13s

This commit is contained in:
Sam Kintop
2026-04-30 09:44:02 -05:00
parent 0a30837e3d
commit bf3870ccca
111 changed files with 8383 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<?php
namespace Aternos\Mclogs\Api\Action;
use Aternos\Mclogs\Api\LogContentParser;
use Aternos\Mclogs\Api\Response\ApiError;
use Aternos\Mclogs\Api\Response\ApiResponse;
use Aternos\Mclogs\Api\Response\CodexLogResponse;
use Aternos\Mclogs\Log;
class AnalyseLogAction extends ApiAction
{
public function runApi(): ApiResponse
{
$data = new LogContentParser()->getContent();
if ($data instanceof ApiError) {
return $data;
}
$content = $data['content'];
$log = new Log()->setContent($content);
return new CodexLogResponse($log->getCodexLog());
}
}