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
Pull Request — new (#881)
by
unknown
08:38
created

EnvEditor::template()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace SleepingOwl\Admin\Widgets;
4
5
use \SleepingOwl\Admin\Facades\Template as AdminTemplate;
6
7
class EnvEditor extends Widget
8
{
9
    /**
10
     * @return bool
11
     */
12
    public function active()
13
    {
14
        return config('sleeping_owl.show_editor');
15
    }
16
17
    /**
18
     * @return string
19
     * @throws \Throwable
20
     */
21
    public function toHtml()
22
    {
23
        return view(AdminTemplate::getViewPath('_partials.env_editor'))->render();
0 ignored issues
show
Bug introduced by
The method getViewPath() does not exist on SleepingOwl\Admin\Facades\Template. Since you implemented __callStatic, consider adding a @method annotation. ( Ignorable by Annotation )

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

23
        return view(AdminTemplate::/** @scrutinizer ignore-call */ getViewPath('_partials.env_editor'))->render();
Loading history...
24
    }
25
26
    /**
27
     * @return string|array
28
     */
29
    public function template()
30
    {
31
        return AdminTemplate::getViewPath('_partials.header');
32
    }
33
34
    /**
35
     * @return string
36
     */
37
    public function block()
38
    {
39
        return 'navbar.right';
40
    }
41
}