for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Selami\Authentication\Controller\Authentication;
use Selami\Interfaces\Application;
class NotFound extends AuthenticationController implements Application
{
public function __invoke() : array
var_dump('df');exit;
var_dump('df');
return [
return array('status' => 404, 'data' => array());
This check looks for unreachable code. It uses sophisticated control flow analysis techniques to find statements which will never be executed.
Unreachable code is most often the result of return, die or exit statements that have been added for debug purposes.
return
die
exit
function fx() { try { doSomething(); return true; } catch (\Exception $e) { return false; } return false; }
In the above example, the last return false will never be executed, because a return statement has already been met in every possible execution path.
return false
'status' => 404, 'data' => []
];
}