Merge pull request #17349 from eileenmcnaughton/validate
[civicrm-core.git] / CRM / Utils / SQL / Insert.php
index c06bd601c1bf621e5b2502f2733213d8d2021671..816c89f605d0079eb949a02d1e2be230c31473f5 100644 (file)
@@ -36,6 +36,7 @@ class CRM_Utils_SQL_Insert {
 
   /**
    * Array<string> list of column names
+   * @var array
    */
   private $columns;
 
@@ -62,7 +63,8 @@ class CRM_Utils_SQL_Insert {
     $row = [];
     foreach ((array) $dao as $key => $value) {
       if ($value === 'null') {
-        $value = NULL; // Blerg!!!
+        // Blerg!!!
+        $value = NULL;
       }
       // Skip '_foobar' and '{\u00}*_options' and 'N'.
       if (preg_match('/[a-zA-Z]/', $key{0}) && $key !== 'N') {