GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — analysis-q1VAZj ( a89c53 )
by butschster
09:43
created

TemplateDefault::getMenuTop()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace SleepingOwl\Admin\Templates;
4
5
class TemplateDefault extends Template
6
{
7
    /**
8
     * Получение названия текущего шаблона.
9
     *
10
     * @return string
11
     */
12
    public function name()
13
    {
14
        return 'AdminLTE 3 (BS4)';
15
    }
16
17
    /**
18
     * Версия темы.
19
     *
20
     * @return string
21
     */
22
    public function version()
23
    {
24
        return '3.0.0';
25
    }
26
27
    /**
28
     * URL проекта.
29
     *
30
     * @return string
31
     */
32
    public function homepage()
33
    {
34
        return 'https://adminlte.io/';
35
    }
36
37
    public function initialize()
38
    {
39
        $this->meta()
40
            ->addJs('admin-default', $this->assetPath('js/admin-app.js'))
0 ignored issues
show
Bug introduced by
The method addJs() does not exist on SleepingOwl\Admin\Contracts\Template\MetaInterface. Since it exists in all sub-types, consider adding an abstract or default implementation to SleepingOwl\Admin\Contracts\Template\MetaInterface. ( Ignorable by Annotation )

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

40
            ->/** @scrutinizer ignore-call */ addJs('admin-default', $this->assetPath('js/admin-app.js'))
Loading history...
41
            ->addJs('admin-vue-init', $this->assetPath('js/vue.js'))
42
            ->addJs('admin-modules-load', $this->assetPath('js/modules.js'))
43
            ->addCss('admin-default', $this->assetPath('css/admin-app.css'));
44
    }
45
46
    /**
47
     * @return string
48
     */
49
    public function getViewNamespace()
50
    {
51
        return 'sleeping_owl::default';
52
    }
53
54
    /**
55
     * Получение относительного пути
56
     * расположения asset файлов.
57
     *
58
     * @return string
59
     */
60
    public function assetDir()
61
    {
62
        return 'packages/sleepingowl/default';
63
    }
64
65
    /**
66
     * @return string
67
     */
68
    public function getLogo()
69
    {
70
        return config('sleeping_owl.logo');
71
    }
72
73
    /**
74
     * @return string
75
     */
76
    public function getMenuTop()
77
    {
78
        return config('sleeping_owl.menu_top');
79
    }
80
81
    /**
82
     * @return string
83
     */
84
    public function getLogoMini()
85
    {
86
        return config('sleeping_owl.logo_mini');
87
    }
88
}
89