]> BookStack Code Mirror - bookstack/commitdiff
PSR2 fixes after running `./vendor/bin/phpcbf` 769/head
authorAbijeet <redacted>
Tue, 27 Mar 2018 19:37:01 +0000 (01:07 +0530)
committerAbijeet <redacted>
Tue, 27 Mar 2018 19:37:01 +0000 (01:07 +0530)
Signed-off-by: Abijeet <redacted>
app/Entity.php
app/Repos/EntityRepo.php
app/Services/ImageService.php

index aeeab4960444df6682ae11fec14c4da6a271b845..67edec4e089eefe3d4eb69472da891cde409ed81 100644 (file)
@@ -201,5 +201,4 @@ class Entity extends Ownable
     {
         return '/';
     }
-
 }
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);
index ebbcd935148f7bfe0ff3682409317c65d7b6ee92..c2e915e2d91e64353bf303eb40dea4f0c83c3553 100644 (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';
     }
 
Morty Proxy This is a proxified and sanitized view of the page, visit original site.