INFRA-132 - CRM/Core - phpcbf
[civicrm-core.git] / CRM / Core / Component / Info.php
index d5c81e71c012539192fca2c41ae8036e47255e91..17f128817264fdc7c74190cd1681475b03605dfb 100644 (file)
@@ -98,8 +98,10 @@ abstract class CRM_Core_Component_Info {
   protected $keyword;
 
   /**
-   * @param string $name name of the component
-   * @param string $namespace namespace prefix for component's files
+   * @param string $name
+   *   Name of the component.
+   * @param string $namespace
+   *   Namespace prefix for component's files.
    * @param int $componentID
    */
   public function __construct($name, $namespace, $componentID) {
@@ -167,7 +169,8 @@ abstract class CRM_Core_Component_Info {
   /**
    * Determine how many other records refer to a given record
    *
-   * @param CRM_Core_DAO $dao the item for which we want a reference count
+   * @param CRM_Core_DAO $dao
+   *   The item for which we want a reference count.
    * @return array each item in the array is an array with keys:
    *   - name: string, eg "sql:civicrm_email:contact_id"
    *   - type: string, eg "sql"
@@ -367,8 +370,7 @@ abstract class CRM_Core_Component_Info {
    */
   private function _instantiate($cl) {
     $className = $this->namespace . '_' . $cl;
-    require_once (str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php');
+    require_once str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php';
     return new $className();
   }
 }
-