INFRA-132 - s/true/TRUE/
[civicrm-core.git] / CRM / Contact / Form / Search / Builder.php
index 92fafd0fb9f5af808764ab210a8486843fd1be62..e9850f164c32298d5094d39d2a0d10d9c0c0de32 100644 (file)
@@ -42,7 +42,6 @@ class CRM_Contact_Form_Search_Builder extends CRM_Contact_Form_Search {
    * Number of columns in where
    *
    * @var int
-   * @access public
    */
   public $_columnCount;
 
@@ -50,7 +49,6 @@ class CRM_Contact_Form_Search_Builder extends CRM_Contact_Form_Search {
    * Number of blocks to be shown
    *
    * @var int
-   * @access public
    */
   public $_blockCount;
 
@@ -58,7 +56,6 @@ class CRM_Contact_Form_Search_Builder extends CRM_Contact_Form_Search {
    * Build the form object
    *
    * @return void
-   * @access public
    */
   public function preProcess() {
     $this->set('searchFormName', 'Builder');
@@ -128,7 +125,6 @@ class CRM_Contact_Form_Search_Builder extends CRM_Contact_Form_Search {
   /**
    * Add local and global form rules
    *
-   * @access protected
    *
    * @return void
    */
@@ -145,7 +141,6 @@ class CRM_Contact_Form_Search_Builder extends CRM_Contact_Form_Search {
    *
    * @return array list of errors to be posted back to the form
    * @static
-   * @access public
    */
   public static function formRule($values, $files, $self) {
     if (!empty($values['addMore']) || !empty($values['addBlock'])) {
@@ -322,7 +317,6 @@ class CRM_Contact_Form_Search_Builder extends CRM_Contact_Form_Search {
    * Process the uploaded file
    *
    * @return void
-   * @access public
    */
   public function postProcess() {
     $this->set('isAdvanced', '2');
@@ -474,21 +468,20 @@ class CRM_Contact_Form_Search_Builder extends CRM_Contact_Form_Search {
    * CRM-10338
    * tags and groups use array keys for selection list.
    * if using IS NULL/NOT NULL, an array with no array key is created
-   * convert that to simple null so processing can proceed
+   * convert that to simple NULL so processing can proceed
    */
   public static function checkArrayKeyEmpty($val) {
     if (is_array($val)) {
-      $v2empty = true;
+      $v2empty = TRUE;
       foreach ($val as $vk => $vv) {
         if (!empty($vk)) {
           $v2empty = false;
         }
       }
       if ($v2empty) {
-        $val = null;
+        $val = NULL;
       }
     }
     return $val;
   }
 }
-