1 | <?php |
||||
2 | |||||
3 | namespace Rawilk\LaravelModules\Traits; |
||||
4 | |||||
5 | /** |
||||
6 | * @mixin \Illuminate\Console\Command |
||||
7 | */ |
||||
8 | trait ModuleCommands |
||||
9 | { |
||||
10 | public function getModuleName(): string |
||||
11 | { |
||||
12 | $moduleName = $this->argument('module') ?: app('modules')->getUsedNow(); |
||||
0 ignored issues
–
show
Bug
introduced
by
![]() The method
getUsedNow() does not exist on Illuminate\Contracts\Foundation\Application .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed. ![]() |
|||||
13 | |||||
14 | /** @var \Rawilk\LaravelModules\Module $module */ |
||||
15 | $module = app('modules')->findOrFail($moduleName); |
||||
0 ignored issues
–
show
The method
findOrFail() does not exist on Illuminate\Contracts\Foundation\Application .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed. ![]() |
|||||
16 | |||||
17 | return $module->getStudlyName(); |
||||
18 | } |
||||
19 | } |
||||
20 |