Passed
Push — main ( 26e7d9...b872c4 )
by Slawomir
04:27
created
src/Infrastructure/Utils/StringUtil.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
         if ($body === null) {
15 15
             return "";
16 16
         }
17
-        $short = strlen($body) - 1 < $maxLength ? $body : trim(substr($body, 0, $maxLength)). "...";
18
-        return strip_tags($short) ;;
17
+        $short = strlen($body) - 1 < $maxLength ? $body : trim(substr($body, 0, $maxLength))."...";
18
+        return strip_tags($short); ;
19 19
     }
20 20
 }
21 21
\ No newline at end of file
Please login to merge, or discard this patch.
src/Modules/Comments/Domain/Logic/CommentsValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      */
39 39
     private function validatePostExists(Ulid $postId): void
40 40
     {
41
-        if(!$this->postHeadersFindingRepository->postExists($postId)) {
41
+        if (!$this->postHeadersFindingRepository->postExists($postId)) {
42 42
             throw new BadRequestHttpException("Requested Post doesn't exist");
43 43
         }
44 44
     }
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     private function validateCommentExists(Ulid $commentId): void
50 50
     {
51
-        if(!$this->commentsFindingRepository->commentExists($commentId)) {
51
+        if (!$this->commentsFindingRepository->commentExists($commentId)) {
52 52
             throw new BadRequestHttpException("Requested Parent Comment doesn't exist");
53 53
         }
54 54
     }
Please login to merge, or discard this patch.