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.

Issues (389)

Branch: master

src/Widgets/EnvEditor.php (2 issues)

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
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...
Bug Best Practice introduced by
The expression return view(SleepingOwl\...env_editor'))->render() also could return the type array which is incompatible with the documented return type string.
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
}
42