From 2fc513984da49cac157ce46d33d0defa16afa165 Mon Sep 17 00:00:00 2001 From: Abijeet Date: Wed, 28 Mar 2018 01:07:01 +0530 Subject: [PATCH] PSR2 fixes after running `./vendor/bin/phpcbf` Signed-off-by: Abijeet --- app/Entity.php | 1 - app/Repos/EntityRepo.php | 4 +++- app/Services/ImageService.php | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) 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'; }