Issues (34)

view/weather/validationfail.php (4 issues)

Labels
Severity
1
<?php
2
3
namespace Anax\View;
4
5
/**
6
 * Render content within an article.
7
 */
8
9
?>
10
<head>
11
    <meta charset="utf-8">
12
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
13
    <title>Vädret</title>
14
</head>
15
16
<h1>Vädret - misslyckades</h1>
17
<div>
18
    <p>
19
        <?php
20
        echo $data["message"];
21
        ?>
22
    </p>
23
</div>
24
25
<!--
26
<pre>
27
    <?= var_dump($data); ?>
0 ignored issues
show
Are you sure the usage of var_dump($data) 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($data) 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

27
    <?= /** @scrutinizer ignore-type */ var_dump($data); ?>
Loading history...
28
    <?= 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

28
    <?= /** @scrutinizer ignore-type */ var_dump($_POST); ?> -->
Loading history...
29