Issues (6)

pin/pages/default.php (1 issue)

Labels
Severity
1
<?php
2
3
function index()
4
{
5
	$template = new Template();
6
	$template->set("saludo", "Saludo interno");
7
	$template->render("default/index");
8
}
9
10
function redirigir()
11
{
12
	return redirect_to("page/show");
0 ignored issues
show
Are you sure the usage of redirect_to('page/show') is correct as it seems to always return null.

This check looks for function or method calls that always return null and whose return value is used.

class A
{
    function getObject()
    {
        return null;
    }

}

$a = new A();
if ($a->getObject()) {

The method getObject() can return nothing but null, so it makes no sense to use the return value.

The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.

Loading history...
13
}
14