added return type
This commit is contained in:
parent
5ae18e92fb
commit
0d9acd7967
@ -316,20 +316,20 @@ trait Modules
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function moduleIsEnabled($alias)
|
public function moduleIsEnabled($alias): bool
|
||||||
{
|
{
|
||||||
if (!$this->moduleExists($alias)) {
|
if (! $this->moduleExists($alias)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Module::alias($alias)->enabled()->first()) {
|
if (! Module::alias($alias)->enabled()->first()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function moduleIsDisabled($alias)
|
public function moduleIsDisabled($alias): bool
|
||||||
{
|
{
|
||||||
return ! $this->moduleIsEnabled($alias);
|
return ! $this->moduleIsEnabled($alias);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user