NOW MANAGED ON CODEBERG
PSR2 fixes after running `./vendor/bin/phpcbf`
Abijeet2fc513984da4
diff --git a/app/Entity.php b/app/Entity.phpindex aeeab4960..67edec4e0 100644--- a/app/Entity.php+++ b/app/Entity.php@@ -201,5 +201,4 @@ class Entity extends Ownable{return '/';}-}diff --git a/app/Repos/EntityRepo.php b/app/Repos/EntityRepo.phpindex ece9aa305..acdda3c8d 100644--- a/app/Repos/EntityRepo.php+++ b/app/Repos/EntityRepo.php@@ -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);diff --git a/app/Services/ImageService.php b/app/Services/ImageService.phpindex ebbcd9351..c2e915e2d 100644--- a/app/Services/ImageService.php+++ b/app/Services/ImageService.php@@ -192,7 +192,8 @@ class ImageService extends UploadService* @param Image $image* @return boolean*/- protected function isGif(Image $image) {+ protected function isGif(Image $image)+ {return strtolower(pathinfo($this->getPath($image), PATHINFO_EXTENSION)) === 'gif';}