PSR2 fixes after running ./vendor/bin/phpcbf

Signed-off-by: Abijeet <abijeetpatro@gmail.com>
This commit is contained in:
Abijeet 2018-03-28 01:07:01 +05:30
parent a8f18c0102
commit 2fc513984d
3 changed files with 5 additions and 3 deletions

View File

@ -201,5 +201,4 @@ class Entity extends Ownable
{
return '/';
}
}

View 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);

View File

@ -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';
}