CRM/Core - Cleanup boolean expressions
[civicrm-core.git] / CRM / Core / Permission.php
index 5c3bf571e8628ef7146c6c18a77d5df4483c69a5..3cce2d04c4f5acdf19d2a2e704796b5916aac9ca 100644 (file)
@@ -278,7 +278,7 @@ class CRM_Core_Permission {
     }
 
     $groups = self::ufGroup($type);
-    return !empty($groups) && in_array($gid, $groups) ? TRUE : FALSE;
+    return !empty($groups) && in_array($gid, $groups);
   }
 
   /**
@@ -1627,7 +1627,7 @@ class CRM_Core_Permission {
    * @return bool
    */
   public static function isMultisiteEnabled() {
-    return Civi::settings()->get('is_enabled') ? TRUE : FALSE;
+    return (bool) Civi::settings()->get('is_enabled');
   }
 
   /**