Issues (46)

src/views/layouts/main.php (2 issues)

1
<?php
2
use Itstructure\MFUploader\Module;
3
use yii\helpers\{Html, BaseUrl};
4
5
/** @var $this yii\web\View */
6
/** @var $content string */
7
?>
8
<?php $this->beginPage() ?>
9
    <!DOCTYPE html>
10
    <html lang="<?php echo Yii::$app->language ?>">
11
    <head>
12
        <meta charset="<?php echo Yii::$app->charset ?>"/>
13
        <meta name="viewport" content="width=device-width, initial-scale=1">
14
        <?php echo Html::csrfMetaTags() ?>
0 ignored issues
show
The method csrfMetaTags() does not exist on yii\helpers\Html. ( Ignorable by Annotation )

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

14
        <?php echo Html::/** @scrutinizer ignore-call */ csrfMetaTags() ?>

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
15
        <title><?php echo Html::encode($this->title) ?></title>
16
        <?php $this->head() ?>
17
    </head>
18
    <body>
19
    <?php $this->beginBody() ?>
20
21
        <header id="header">
22
            <div class="left">
23
                <?php echo Html::a(
24
                    '<span class="glyphicon glyphicon-file"></span> ' . Module::t('filemanager', 'File manager'),
25
                    $this->params['manager'] == 'filemanager'
26
                        ? '#'
27
                        : (null === BaseUrl::previous(Module::BACK_URL_PARAM) ? Module::URL_FILE_MANAGER : BaseUrl::previous(Module::BACK_URL_PARAM)),
0 ignored issues
show
The condition null === yii\helpers\Bas...Module::BACK_URL_PARAM) is always false.
Loading history...
28
                    [
29
                        'class' => $this->params['manager'] == 'filemanager' ? 'btn btn-default active' : 'btn btn-success',
30
                    ])
31
                ?>
32
                <?php echo Html::a(
33
                    '<span class="glyphicon glyphicon-upload"></span> ' . Module::t('uploadmanager', 'Upload manager'),
34
                    $this->params['manager'] == 'uploadmanager' ? '#' : Module::URL_UPLOAD_MANAGER,
35
                    [
36
                        'class' => $this->params['manager'] == 'uploadmanager' ? 'btn btn-default active' : 'btn btn-success',
37
                    ])
38
                ?>
39
            </div>
40
            <div class="right" role="popup">
41
42
            </div>
43
        </header>
44
45
        <?php echo $content; ?>
46
47
    <?php $this->endBody() ?>
48
    </body>
49
    </html>
50
<?php $this->endPage() ?>