Icon cleanup
[civicrm-core.git] / CRM / Core / BAO / Location.php
index aed679ab98c901320199ffcbc0c6ca61288af11d..3f4d3211919e981f541cf14f26e1ae04a01601ed 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_Location extends CRM_Core_DAO {
 
   /**
-   * Location block element array
+   * Location block element array.
    */
   static $blocks = array('phone', 'email', 'im', 'openid', 'address');
 
   /**
-   * Create various elements of location block
+   * Create various elements of location block.
    *
    * @param array $params
    *   (reference ) an assoc array of name/value pairs.
@@ -95,7 +95,7 @@ class CRM_Core_BAO_Location extends CRM_Core_DAO {
   }
 
   /**
-   * Creates the entry in the civicrm_loc_block
+   * Creates the entry in the civicrm_loc_block.
    */
   public static function createLocBlock(&$location, &$entityElements) {
     $locId = self::findExisting($entityElements);
@@ -109,7 +109,7 @@ class CRM_Core_BAO_Location extends CRM_Core_DAO {
                'phone',
                'email',
                'im',
-               'address'
+               'address',
              ) as $loc) {
       $locBlock["{$loc}_id"] = !empty($location["$loc"][0]) ? $location["$loc"][0]->id : NULL;
       $locBlock["{$loc}_2_id"] = !empty($location["$loc"][1]) ? $location["$loc"][1]->id : NULL;
@@ -133,7 +133,7 @@ class CRM_Core_BAO_Location extends CRM_Core_DAO {
   }
 
   /**
-   * Takes an entity array and finds the existing location block
+   * Takes an entity array and finds the existing location block.
    */
   public static function findExisting($entityElements) {
     $eid = $entityElements['entity_id'];
@@ -152,7 +152,7 @@ WHERE e.id = %1";
   }
 
   /**
-   * Takes an associative array and adds location block
+   * Takes an associative array and adds location block.
    *
    * @param array $params
    *   (reference ) an assoc array of name/value pairs.
@@ -169,7 +169,7 @@ WHERE e.id = %1";
   }
 
   /**
-   * Delete the Location Block
+   * Delete the Location Block.
    *
    * @param int $locBlockId
    *   Id of the Location Block.
@@ -211,12 +211,12 @@ WHERE e.id = %1";
   }
 
   /**
-   * Check if there is data to create the object
+   * Check if there is data to create the object.
    *
    * @param array $params
    *   (reference ) an assoc array of name/value pairs.
    *
-   * @return boolean
+   * @return bool
    */
   public static function dataExists(&$params) {
     // return if no data present
@@ -263,7 +263,7 @@ WHERE e.id = %1";
   }
 
   /**
-   * Delete all the block associated with the location
+   * Delete all the block associated with the location.
    *
    * @param int $contactId
    *   Contact id.
@@ -368,7 +368,7 @@ WHERE e.id = %1";
                'IM',
                'Phone',
                'Address',
-               'OpenID'
+               'OpenID',
              ) as $block) {
       $name = strtolower($block);
       if (array_key_exists($name, $primaryLocBlockIds) &&
@@ -440,4 +440,5 @@ WHERE e.id = %1";
     }
     return $elements;
   }
+
 }