src/CoreBundle/Controller/Api/CLinkImageController.php
Showing 13 of 13 total issues
Missing class import via use statement (line '85', column '23'). Open
Open
throw new \RuntimeException('Invalid image file');
- Read upRead up
- Exclude checks
Remove error control operator '@' on line 61. Open
Open
public function __invoke(CLink $link, Request $request): Response { $removeImage = $request->request->getBoolean('removeImage', false); $file = $request->files->get('customImage');
- Read upRead up
- Exclude checks
Missing class import via use statement (line '99', column '27'). Open
Open
throw new \RuntimeException('Unsupported image type');
- Read upRead up
- Exclude checks
Missing blank line before return statement Open
Open
return new Response('Error creating cropped image', Response::HTTP_INTERNAL_SERVER_ERROR);
- Exclude checks
Blank line found at end of control structure Open
Open
- Exclude checks
Missing class doc comment Open
Open
class CLinkImageController
- Exclude checks
Missing function doc comment Open
Open
public function __construct(EntityManagerInterface $entityManager)
- Exclude checks
Add a single space around assignment operators Open
Open
declare(strict_types=1);
- Exclude checks
Missing function doc comment Open
Open
public function __invoke(CLink $link, Request $request): Response
- Exclude checks
Only one argument is allowed per line in a multi-line function call Open
Open
120, 120
- Exclude checks
Only one argument is allowed per line in a multi-line function call Open
Open
$cropWidth, $cropHeight,
- Exclude checks
Only one argument is allowed per line in a multi-line function call Open
Open
$srcX, $srcY,
- Exclude checks
Only one argument is allowed per line in a multi-line function call Open
Open
0, 0,
- Exclude checks