Merge pull request #15412 from demeritcowboy/fly-backwards
[civicrm-core.git] / CRM / Core / Module.php
index eca6f6e38dbfe653504d69a63c3f154a9d1ced4a..3a7da7a1e1609cc212a1a9d4d69c1dad62791b3c 100644 (file)
@@ -32,8 +32,6 @@
  *
  * @package CRM
  * @copyright CiviCRM LLC (c) 2004-2019
- * $Id$
- *
  */
 class CRM_Core_Module {
 
@@ -43,13 +41,17 @@ class CRM_Core_Module {
   public $name;
 
   /**
-   * @var bool, TRUE if fully enabled; FALSE if module exists but is disabled
+   * Is the module enabled.
+   *
+   * @var bool
    */
   public $is_active;
 
   /**
+   * Class constructor.
+   *
    * @param string $name
-   * @param $is_active
+   * @param bool $is_active
    */
   public function __construct($name, $is_active) {
     $this->name = $name;
@@ -68,7 +70,8 @@ class CRM_Core_Module {
     static $result;
     if ($fresh || !is_array($result)) {
       $result = CRM_Extension_System::singleton()->getMapper()->getModules();
-      $result[] = new CRM_Core_Module('civicrm', TRUE); // pseudo-module for core
+      // pseudo-module for core
+      $result[] = new CRM_Core_Module('civicrm', TRUE);
 
       $config = CRM_Core_Config::singleton();
       $result = array_merge($result, $config->userSystem->getModules());