diff --git a/app/Entity.php b/app/Entity.php index 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.php index ece9aa305..acdda3c8d 100644 --- a/app/Repos/EntityRepo.php +++ b/app/Repos/EntityRepo.php @@ -774,7 +774,9 @@ class EntityRepo $scriptSearchRegex = '/.*?<\/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.php index 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'; }