]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/feature/class_FrameworkFeature.php
Rewrite continued:
[core.git] / framework / main / classes / feature / class_FrameworkFeature.php
index 5ae331275f674b30f873e943b807f9d7942fb95b..09fa8263f58fab5def63b829426108fb4251edfb 100644 (file)
@@ -41,16 +41,16 @@ class FrameworkFeature extends BaseFrameworkSystem {
         * 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
         * )
         */
@@ -104,14 +104,14 @@ class FrameworkFeature extends BaseFrameworkSystem {
                // 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)
@@ -154,7 +154,7 @@ class FrameworkFeature extends BaseFrameworkSystem {
        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));