mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-13 12:14:06 +02:00
[ticket/11981] Fix code sniffer complaints
PHPBB3-11981
This commit is contained in:
@@ -234,7 +234,9 @@ class manager
|
||||
*/
|
||||
public function enable($name)
|
||||
{
|
||||
// @codingStandardsIgnoreStart
|
||||
while ($this->enable_step($name));
|
||||
// @codingStandardsIgnoreEnd
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -311,7 +313,9 @@ class manager
|
||||
*/
|
||||
public function disable($name)
|
||||
{
|
||||
// @codingStandardsIgnoreStart
|
||||
while ($this->disable_step($name));
|
||||
// @codingStandardsIgnoreEnd
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -388,7 +392,9 @@ class manager
|
||||
*/
|
||||
public function purge($name)
|
||||
{
|
||||
// @codingStandardsIgnoreStart
|
||||
while ($this->purge_step($name));
|
||||
// @codingStandardsIgnoreEnd
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -169,7 +169,7 @@ class metadata_manager
|
||||
throw new \phpbb\extension\exception('file_get_contents failed on ' . $this->metadata_file);
|
||||
}
|
||||
|
||||
if (($metadata = json_decode($file_contents, true)) === NULL)
|
||||
if (($metadata = json_decode($file_contents, true)) === null)
|
||||
{
|
||||
throw new \phpbb\extension\exception('json_decode failed on ' . $this->metadata_file);
|
||||
}
|
||||
|
Reference in New Issue
Block a user