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   A

Complexity

Total Complexity 9

Size/Duplication

Total Lines 82
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 14
c 2
b 0
f 0
dl 0
loc 82
rs 10
wmc 9

9 Methods

Rating   Name   Duplication   Size   Complexity  
A getViewNamespace() 0 3 1
A getLogo() 0 3 1
A homepage() 0 3 1
A assetDir() 0 3 1
A version() 0 3 1
A name() 0 3 1
A initialize() 0 7 1
A getMenuTop() 0 3 1
A getLogoMini() 0 3 1
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