From 8dfeb798590fc874e43d9c781324b2f4055136b6 Mon Sep 17 00:00:00 2001 From: Sean Madsen Date: Thu, 15 Mar 2018 10:45:53 -0400 Subject: [PATCH] CRM-21264 - Minor refactoring * Improve docblock * Get rid of "dontCare" since that argument is optional as of PHP 5.4 http://php.net/manual/en/function.preg-match-all.php#refsect1-function.preg-match-all-changelog * Move regex to its own line to improve readability --- CRM/Contribute/Form/Task/PDFLetterCommon.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CRM/Contribute/Form/Task/PDFLetterCommon.php b/CRM/Contribute/Form/Task/PDFLetterCommon.php index 98cba059ed..321ef46086 100644 --- a/CRM/Contribute/Form/Task/PDFLetterCommon.php +++ b/CRM/Contribute/Form/Task/PDFLetterCommon.php @@ -188,17 +188,17 @@ class CRM_Contribute_Form_Task_PDFLetterCommon extends CRM_Contact_Form_Task_PDF * Check that the token only appears in a table cell. The '' separator cannot otherwise work * Calculate the number of times it appears IN the cell & the number of times it appears - should be the same! * - * @param $token - * @param $entity - * @param $textToSearch + * @param string $token + * @param string $entity + * @param string $textToSearch * * @return bool */ public static function isHtmlTokenInTableCell($token, $entity, $textToSearch) { $tokenToMatch = $entity . '.' . $token; - $dontCare = array(); - $within = preg_match_all("|