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::initialize()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 0
dl 0
loc 7
ccs 6
cts 6
cp 1
crap 1
rs 10
c 0
b 0
f 0
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