Merge pull request #19093 from civicrm/5.32
[civicrm-core.git] / Civi / Angular / Coder.php
index c780462c936296dc732ff0b48f62d81b63894127..a1aa0802387edd981dff30f830cc50a4bf9d0339 100644 (file)
@@ -56,8 +56,8 @@ class Coder {
   }
 
   protected function cleanup($html) {
-    $html = preg_replace_callback("/([\\-a-zA-Z0-9]+)=(')([^']*)(')/", array($this, 'cleanupAttribute'), $html);
-    $html = preg_replace_callback('/([\-a-zA-Z0-9]+)=(")([^"]*)(")/', array($this, 'cleanupAttribute'), $html);
+    $html = preg_replace_callback("/([\\-a-zA-Z0-9]+)=(')([^']*)(')/", [$this, 'cleanupAttribute'], $html);
+    $html = preg_replace_callback('/([\-a-zA-Z0-9]+)=(")([^"]*)(")/', [$this, 'cleanupAttribute'], $html);
     return $html;
   }