]> BookStack Code Mirror - bookstack/blobdiff - app/Repos/EntityRepo.php
PSR2 fixes after running `./vendor/bin/phpcbf`
[bookstack] / app / Repos / EntityRepo.php
index ece9aa3057572fd14f7549181eec0b94b65e7f92..acdda3c8d08a601eee67780bcb6e351a62ff5c01 100644 (file)
@@ -774,7 +774,9 @@ class EntityRepo
         $scriptSearchRegex = '/<script.*?>.*?<\/script>/ms';
         $matches = [];
         preg_match_all($scriptSearchRegex, $html, $matches);
-        if (count($matches) === 0) return $html;
+        if (count($matches) === 0) {
+            return $html;
+        }
 
         foreach ($matches[0] as $match) {
             $html = str_replace($match, htmlentities($match), $html);