for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Controller\User;
use App\Facades\Router;
use App\Facades\Security;
use App\Facades\Session;
use App\Facades\View;
use App\Model\User;
use Exception;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Ronanchilvers\Orm\Orm;
use RuntimeException;
/**
* Controller for administering users
*
* @author Ronan Chilvers <[email protected]>
*/
class AdminController
{
* Login action for users
public function index(
ServerRequestInterface $request,
ResponseInterface $response
) {
$users = Orm::finder(User::class)->all();
return View::render(
$response,
'user/admin/index.html.twig',
[
'users' => $users,
]
);
}
* Invite a user
public function invite(
ResponseInterface $response,
$args
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
/** @scrutinizer ignore-unused */ $args
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
'user/admin/invite.html.twig',
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.