Merge pull request #13890 from aydun/joomla#6
[civicrm-core.git] / CRM / Core / Reference / OptionValue.php
index eed0b5d93c2a229f5ab2f7e205ce7a1d42a67581..94db03591258208aa3d630ebfd4632a739c2b7f8 100644 (file)
@@ -33,12 +33,13 @@ class CRM_Core_Reference_OptionValue extends CRM_Core_Reference_Basic {
    * @throws CRM_Core_Exception
    */
   public function findReferences($targetDao) {
-    if (! ($targetDao instanceof CRM_Core_DAO_OptionValue)) {
+    if (!($targetDao instanceof CRM_Core_DAO_OptionValue)) {
       throw new CRM_Core_Exception("Mismatched reference: expected OptionValue but received " . get_class($targetDao));
     }
     if ($targetDao->option_group_id == $this->getTargetOptionGroupId()) {
       return parent::findReferences($targetDao);
-    } else {
+    }
+    else {
       return NULL;
     }
   }
@@ -50,12 +51,13 @@ class CRM_Core_Reference_OptionValue extends CRM_Core_Reference_Basic {
    * @throws CRM_Core_Exception
    */
   public function getReferenceCount($targetDao) {
-    if (! ($targetDao instanceof CRM_Core_DAO_OptionValue)) {
+    if (!($targetDao instanceof CRM_Core_DAO_OptionValue)) {
       throw new CRM_Core_Exception("Mismatched reference: expected OptionValue but received " . get_class($targetDao));
     }
     if ($targetDao->option_group_id == $this->getTargetOptionGroupId()) {
       return parent::getReferenceCount($targetDao);
-    } else {
+    }
+    else {
       return NULL;
     }
   }
@@ -69,4 +71,5 @@ class CRM_Core_Reference_OptionValue extends CRM_Core_Reference_Basic {
     }
     return $this->targetOptionGroupId;
   }
+
 }