INFRA-132 comments to end with full stops
[civicrm-core.git] / CRM / Core / BAO / Website.php
index c0c29093d0b6f550d5122f460ca0691b3c692417..090969c68a328f2e15e4eff8990604890c2066d7 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
 class CRM_Core_BAO_Website extends CRM_Core_DAO_Website {
 
   /**
-   * Takes an associative array and adds im
+   * Takes an associative array and adds im.
    *
    * @param array $params
    *   (reference ) an assoc array of name/value pairs.
    *
    * @return object
    *   CRM_Core_BAO_Website object on success, null otherwise
-   * @static
    */
   public static function add(&$params) {
     $hook = empty($params['id']) ? 'create' : 'edit';
@@ -61,17 +60,15 @@ class CRM_Core_BAO_Website extends CRM_Core_DAO_Website {
   }
 
   /**
-   * Process website
+   * Process website.
    *
    * @param array $params
-   *   Associated array.
    * @param int $contactID
    *   Contact id.
    *
    * @param $skipDelete
    *
    * @return void
-   * @static
    */
   public static function create(&$params, $contactID, $skipDelete) {
     if (empty($params)) {
@@ -113,13 +110,12 @@ class CRM_Core_BAO_Website extends CRM_Core_DAO_Website {
   }
 
   /**
-   * Delete website
+   * Delete website.
    *
    * @param array $ids
    *   Website ids.
    *
    * @return void
-   * @static
    */
   public static function del($ids) {
     $query = 'DELETE FROM civicrm_website WHERE id IN ( ' . implode(',', $ids) . ')';
@@ -135,12 +131,11 @@ class CRM_Core_BAO_Website extends CRM_Core_DAO_Website {
    * @param array $params
    * @param $values
    *
-   * @return boolean
-   * @static
+   * @return bool
    */
   public static function &getValues(&$params, &$values) {
-    $websites            = array();
-    $website             = new CRM_Core_DAO_Website();
+    $websites = array();
+    $website = new CRM_Core_DAO_Website();
     $website->contact_id = $params['contact_id'];
     $website->find();
 
@@ -157,7 +152,7 @@ class CRM_Core_BAO_Website extends CRM_Core_DAO_Website {
   }
 
   /**
-   * Get all the websites for a specified contact_id
+   * Get all the websites for a specified contact_id.
    *
    * @param int $id
    *   The contact id.
@@ -166,7 +161,6 @@ class CRM_Core_BAO_Website extends CRM_Core_DAO_Website {
    *
    * @return array
    *   the array of website details
-   * @static
    */
   public static function allWebsites($id, $updateBlankLocInfo = FALSE) {
     if (!$id) {
@@ -180,8 +174,8 @@ SELECT  id, website_type_id
     $params = array(1 => array($id, 'Integer'));
 
     $websites = $values = array();
-    $dao      = CRM_Core_DAO::executeQuery($query, $params);
-    $count    = 1;
+    $dao = CRM_Core_DAO::executeQuery($query, $params);
+    $count = 1;
     while ($dao->fetch()) {
       $values = array(
         'id' => $dao->id,
@@ -197,4 +191,5 @@ SELECT  id, website_type_id
     }
     return $websites;
   }
+
 }