for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Minepic\Http\Controllers\Api;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Minepic\Image\ImageSection;
/**
* Class BaseApiController.
*/
class SkinBackController extends BaseApiController
{
* Serve Avatar.
*
* @param \Illuminate\Http\Request
* @param string $uuid User UUID
* @param int $size
* @throws \Throwable
* @return \Illuminate\Http\Response
public function serveUuid(Request $request, $uuid, $size = 0): Response
$this->uuidResolver->resolve($uuid);
$this->dispatchAccountImageServedEvent();
return $this->pngResponse(
(string) $this->rendering->skin($this->uuidResolver->getUuid(), (int) $size, ImageSection::BACK)
);
}
* @return Response
public function serveDefault($size = 0): Response
(string) $this->rendering->skin(
null,
(int) $size,
ImageSection::BACK
)