}
/**
- * @param array<String,SimpleXMLElement> $xml
+ * @param array <String,SimpleXMLElement> $xml
*/
public function __construct($allCaseTypes = NULL, $xml = array()) {
$this->allCaseTypes = $allCaseTypes;
$fileXml = $this->retrieveFile($caseType);
if ($fileXml) {
$this->xml[$caseType] = $fileXml;
- } else {
+ }
+ else {
return FALSE;
}
}
/**
* @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)) {
* 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) {
* 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) {