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