X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCase%2FXMLRepository.php;h=25eccaee8fd7e14d213ce758f2001926668ff99f;hb=266a559f66f8242321969f8181b9c0f8c1ef5799;hp=d0c5a88ff0367ec25011eb6b8a3b97b45415d078;hpb=d44a51e500618f1d9abfad4cc6de65cf20226c10;p=civicrm-core.git diff --git a/CRM/Case/XMLRepository.php b/CRM/Case/XMLRepository.php index d0c5a88ff0..25eccaee8f 100644 --- a/CRM/Case/XMLRepository.php +++ b/CRM/Case/XMLRepository.php @@ -65,7 +65,7 @@ class CRM_Case_XMLRepository { } /** - * @param array $xml + * @param array $xml */ public function __construct($allCaseTypes = NULL, $xml = array()) { $this->allCaseTypes = $allCaseTypes; @@ -98,7 +98,8 @@ class CRM_Case_XMLRepository { $fileXml = $this->retrieveFile($caseType); if ($fileXml) { $this->xml[$caseType] = $fileXml; - } else { + } + else { return FALSE; } } @@ -137,9 +138,11 @@ class CRM_Case_XMLRepository { /** * @param string $caseType - * @return null|string file path + * @return null|string + * file path */ - public function findXmlFile($caseType) { // first check custom templates directory + public function findXmlFile($caseType) { + // first check custom templates directory $fileName = NULL; if (!$fileName || !file_exists($fileName)) { @@ -254,7 +257,8 @@ class CRM_Case_XMLRepository { * Determine the number of times a particular activity-type is * referenced in CiviCase XML. * - * @param string $activityType symbolic-name of an activity type + * @param string $activityType + * Symbolic-name of an activity type. * @return int */ public function getActivityReferenceCount($activityType) { @@ -273,7 +277,8 @@ class CRM_Case_XMLRepository { * Determine the number of times a particular activity-type is * referenced in CiviCase XML. * - * @param string $relationshipTypeName symbolic-name of a relationship-type + * @param string $relationshipTypeName + * Symbolic-name of a relationship-type. * @return int */ public function getRelationshipReferenceCount($relationshipTypeName) {