Issues (114)

src/Providers/LoadThemesServiceProvider.php (2 issues)

1
<?php
2
3
namespace Maestriam\Samurai\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
use Maestriam\Samurai\Support\Samurai;
7
8
class LoadThemesServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Inicia o carregamento do primeiro tema que encontrar
12
     *
13
     * @return void
14
     */
15
    public function boot()
16
    {
17
        $theme = Samurai::base()->current();
0 ignored issues
show
The method base() does not exist on Maestriam\Samurai\Support\Samurai. 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

17
        $theme = Samurai::/** @scrutinizer ignore-call */ base()->current();
Loading history...
18
19
        if ($theme == null) { return false;
0 ignored issues
show
Bug Best Practice introduced by
The expression return false returns the type false which is incompatible with the documented return type void.
Loading history...
20
        }
21
22
        return $theme->load();
23
    }
24
}
25