Standards

Standards clean up.
This commit is contained in:
Adam Magness 2017-12-04 09:16:15 -05:00
parent b1d16fbdf7
commit 4af9616b17
1 changed files with 28 additions and 25 deletions

View File

@ -15,6 +15,8 @@ class Feature
/**
* @brief check if feature is enabled
*
* @param integer $uid user id
* @param string $feature feature
* @return boolean
*/
public static function isEnabled($uid, $feature)
@ -39,7 +41,7 @@ class Feature
/**
* @brief check if feature is enabled or disabled by default
*
* @param string $feature
* @param string $feature feature
* @return boolean
*/
private static function getDefault($feature)
@ -47,10 +49,11 @@ class Feature
$f = self::get();
foreach ($f as $cat) {
foreach ($cat as $feat) {
if (is_array($feat) && $feat[0] === $feature)
if (is_array($feat) && $feat[0] === $feature) {
return $feat[3];
}
}
}
return false;
}