Remove the unnecessary return statements from setters
parent
f535542fca
commit
956035e641
|
@ -116,7 +116,7 @@ class Rule
|
||||||
|
|
||||||
public function setType($type)
|
public function setType($type)
|
||||||
{
|
{
|
||||||
return $this->setBitfield(self::BITFIELD_TYPE, $type);
|
$this->setBitfield(self::BITFIELD_TYPE, $type);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getType()
|
public function getType()
|
||||||
|
@ -126,12 +126,12 @@ class Rule
|
||||||
|
|
||||||
public function disable()
|
public function disable()
|
||||||
{
|
{
|
||||||
return $this->setBitfield(self::BITFIELD_DISABLED, 1);
|
$this->setBitfield(self::BITFIELD_DISABLED, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function enable()
|
public function enable()
|
||||||
{
|
{
|
||||||
return $this->setBitfield(self::BITFIELD_DISABLED, 0);
|
$this->setBitfield(self::BITFIELD_DISABLED, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isDisabled()
|
public function isDisabled()
|
||||||
|
|
Loading…
Reference in New Issue