for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Folk\Controllers;
use Psr\Http\Message\ServerRequestInterface as Request;
use Psr\Http\Message\ResponseInterface as Response;
use Folk\Admin;
use Folk\Entities\EntityInterface;
use Zend\Diactoros\Response\RedirectResponse;
class DeleteEntity extends Entity
{
public function html(Request $request, Response $response, Admin $app, EntityInterface $entity)
$response
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$entity->delete($request->getAttribute('id'));
return new RedirectResponse($app->getRoute('search', [
'entity' => $entity->getName(),
]));
}
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.