Test Failed
Push — master ( e3c39f...fe570d )
by Mihail
07:20
created

View/Install/default/_core/exceptions/default.php (1 issue)

1
<?php
2
3
$this->layout('_layouts/default', [
4
    'title' => '404 - Not found'
5
]);
6
7
/** @var string $msg */
8
/** @var \Ffcms\Templex\Template\Template $this */
9
10
if (\Ffcms\Core\Helper\Type\Str::likeEmpty($msg)) {
11
    $msg = 'No error information available yet';
12
}
13
?>
14
15
<?php $this->start('body') ?>
16
17
<?= $this->bootstrap()->alert('info', $msg); ?>
18
19
<?= $this->insert('_core/exceptions/_back') ?>
0 ignored issues
show
Are you sure the usage of $this->insert('_core/exceptions/_back') targeting League\Plates\Template\Template::insert() 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...
20
21
<?php $this->stop(); ?>
22