Issues (39)

view/guess/debug.php (6 issues)

Labels
Severity
1
<?php
2
3
namespace Anax\View;
4
5
/**
6
 * Render content within an article.
7
 */
8
9
// Show incoming variables and view helper functions
10
//echo showEnvironment(get_defined_vars(), get_defined_functions());
11
12
13
?><div class="left">
14
<hr>
15
<pre>
16
SESSION
17
<?= var_dump($_SESSION) ?>
0 ignored issues
show
Are you sure var_dump($_SESSION) of type void can be used in echo? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

17
<?= /** @scrutinizer ignore-type */ var_dump($_SESSION) ?>
Loading history...
Are you sure the usage of var_dump($_SESSION) 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...
18
POST
19
<?= var_dump($_POST) ?>
0 ignored issues
show
Are you sure the usage of var_dump($_POST) 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...
Are you sure var_dump($_POST) of type void can be used in echo? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

19
<?= /** @scrutinizer ignore-type */ var_dump($_POST) ?>
Loading history...
20
GET
21
<?= var_dump($_GET) ?>
0 ignored issues
show
Are you sure var_dump($_GET) of type void can be used in echo? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

21
<?= /** @scrutinizer ignore-type */ var_dump($_GET) ?>
Loading history...
Are you sure the usage of var_dump($_GET) 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...
22
</pre>
23
<hr>
24
</div>
25