for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace App\Http\Controllers\Api;
use App\Image\ImageSection;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
/**
* Class BaseApiController.
*/
class SkinFrontController extends BaseApiController
{
* Serve Avatar.
*
* @param \Illuminate\Http\Request
* @param string $uuid User UUID or Username
* @param int $size
* @throws \Throwable
* @return \Illuminate\Http\Response
public function serveUuid(Request $request, $uuid, $size = 0): Response
$size = (int) $size;
$this->minepic->initialize($uuid);
$this->minepic->updateStats();
return $this->pngResponse(
(string) $this->minepic->renderSkinCurrentUser($size, ImageSection::FRONT)
);
}