resolving phpdoc issues in the process.
/**
* Check template file exists.
*
- * @param string $suffix
+ * @param string|null $suffix
*
- * @return null|string
+ * @return string|null
+ * Template file path, else null
*/
public function checkTemplateFileExists($suffix = NULL) {
if ($this->_id) {
}
/**
- * Check if template file exists.
+ * Check template file exists.
*
- * @param string $suffix
+ * @param string|null $suffix
*
- * @return null|string
+ * @return string|null
+ * Template file path, else null
*/
- public function checkTemplateFileExists($suffix = '') {
+ public function checkTemplateFileExists($suffix = NULL) {
if ($this->_eventId) {
$templateName = $this->_name;
if (substr($templateName, 0, 12) == 'Participant_') {
}
/**
- * @param null $suffix
+ * Check template file exists.
*
- * @return null|string
+ * @param string|null $suffix
+ *
+ * @return string|null
+ * Template file path, else null
*/
public function checkTemplateFileExists($suffix = NULL) {
if ($this->_gid) {
}
/**
- * @param string $suffix
+ * Check template file exists.
*
- * @return null|string
+ * @param string|null $suffix
+ *
+ * @return string|null
+ * Template file path, else null
*/
- public function checkTemplateFileExists($suffix = '') {
+ public function checkTemplateFileExists($suffix = NULL) {
if ($this->_gid) {
$templateFile = "CRM/Profile/Page/{$this->_gid}/Dynamic.{$suffix}tpl";
$template = CRM_Core_Page::getTemplate();
}
/**
- * @param string $suffix
+ * Check template file exists.
*
- * @return null|string
+ * @param string|null $suffix
+ *
+ * @return string|null
+ * Template file path, else null
*/
- public function checkTemplateFileExists($suffix = '') {
+ public function checkTemplateFileExists($suffix = NULL) {
if ($this->_gid) {
$templateFile = "CRM/Profile/Page/{$this->_gid}/Listings.{$suffix}tpl";
$template = CRM_Core_Page::getTemplate();
}
/**
- * @param string $suffix
+ * Check template file exists.
*
- * @return null|string
+ * @param string|null $suffix
+ *
+ * @return string|null
+ * Template file path, else null
*/
- public function checkTemplateFileExists($suffix = '') {
+ public function checkTemplateFileExists($suffix = NULL) {
if ($this->_gid) {
$templateFile = "CRM/Profile/Page/{$this->_gid}/View.{$suffix}tpl";
$template = CRM_Core_Page::getTemplate();