* A typical available entry looks like this:
*
* array(
- * 'is_enabled' => TRUE,
- * 'is_available' => TRUE,
+ * 'is_enabled' => true,
+ * 'is_available' => true,
* 'instance' => SomeFeature Object
* )
*
* And a typical disabled entry looks like this:
*
* array(
- * 'is_enabled' => FALSE,
- * 'is_available' => FALSE,
+ * 'is_enabled' => false,
+ * 'is_available' => false,
* 'instance' => NULL
* )
*/
// Is the cache set?
if (!isset(self::$enabledFeatures[$featureName]['is_available'])) {
// Default is not available
- self::$enabledFeatures[$featureName]['is_available'] = FALSE;
+ self::$enabledFeatures[$featureName]['is_available'] = false;
self::$enabledFeatures[$featureName]['instance'] = NULL;
// Is the feature enabled?
if (!self::isFeatureEnabled($featureName)) {
// Then it can't be available
self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('[%s:%d]: Feature "%s"is not enabled.', __METHOD__, __LINE__, $featureName));
- return FALSE;
+ return false;
} // END - if
// Create config key (for feature class lookup)
public static function callFeature ($featureName, $featureMethod, array $args = NULL) {
/*
* Please make sure that isFeatureAvailable() has been called and it has
- * returned TRUE before calling this method.
+ * returned true before calling this method.
*/
assert(self::isFeatureAvailable($featureName));