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.

TemplateDefault   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 74
Duplicated Lines 0 %

Test Coverage

Coverage 71.43%

Importance

Changes 0
Metric Value
eloc 13
dl 0
loc 74
ccs 15
cts 21
cp 0.7143
rs 10
c 0
b 0
f 0
wmc 8

8 Methods

Rating   Name   Duplication   Size   Complexity  
A homepage() 0 3 1
A version() 0 3 1
A name() 0 3 1
A getViewNamespace() 0 3 1
A getLogo() 0 3 1
A assetDir() 0 3 1
A getLogoMini() 0 3 1
A initialize() 0 7 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 2';
15
    }
16
17
    /**
18
     * Версия темы.
19
     *
20
     * @return string
21
     */
22
    public function version()
23
    {
24
        return '2.3.8';
25
    }
26
27
    /**
28
     * URL проекта.
29
     *
30
     * @return string
31
     */
32
    public function homepage()
33
    {
34
        return 'https://almsaeedstudio.com/';
35
    }
36
37 285
    public function initialize()
38
    {
39 285
        $this->meta()
40 285
            ->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 285
            ->addJs('admin-vue-init', $this->assetPath('js/vue.js'))
42 285
            ->addJs('admin-modules-load', $this->assetPath('js/modules.js'))
43 285
            ->addCss('admin-default', $this->assetPath('css/admin-app.css'));
44 285
    }
45
46
    /**
47
     * @return string
48
     */
49 285
    public function getViewNamespace()
50
    {
51 285
        return 'sleeping_owl::default';
52
    }
53
54
    /**
55
     * Получение относительного пути �
56
     * ранения asset файлов.
57
     *
58
     * @return string
59 285
     */
60
    public function assetDir()
61 285
    {
62
        return 'packages/sleepingowl/default';
63
    }
64
65
    /**
66
     * @return string
67 1
     */
68
    public function getLogo()
69 1
    {
70
        return config('sleeping_owl.logo');
71
    }
72
73
    /**
74
     * @return string
75 1
     */
76
    public function getLogoMini()
77 1
    {
78
        return config('sleeping_owl.logo_mini');
79
    }
80
}
81