* @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;
}
}
* @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;
}
}
}
return $this->targetOptionGroupId;
}
+
}