Passed
Push — main ( 7a7f73...e090ab )
by Slawomir
04:55
created
Posts/Persistence/Doctrine/Repository/DoctrinePostsCreationRepository.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      * @param CreateNewPostDto $newPost
16 16
      * @return Ulid
17 17
      */
18
-   public function createPost(CreateNewPostDto $newPost): Ulid
18
+    public function createPost(CreateNewPostDto $newPost): Ulid
19 19
     {
20 20
 
21 21
         $id = new Ulid();
Please login to merge, or discard this patch.
Posts/Persistence/Doctrine/Repository/DoctrinePostsUpdatingRepository.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     /**
13 13
      * @param UpdateExistingPostDto $dto
14 14
      */
15
-   public function updatePost(UpdateExistingPostDto $dto): void
15
+    public function updatePost(UpdateExistingPostDto $dto): void
16 16
     {
17 17
 
18 18
         $this->getEntityManager()
Please login to merge, or discard this patch.
src/Modules/Posts/Domain/Logic/PostsRemover.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     /**
30 30
      * @param DeletePostCommand $command
31 31
      */
32
-   public function deletePost(DeletePostCommand $command): void
32
+    public function deletePost(DeletePostCommand $command): void
33 33
     {
34 34
         $this->validator->preDelete($command);
35 35
         $deletedPost = $this->fromDeleteCommand($command);
Please login to merge, or discard this patch.
src/Modules/Posts/Domain/Logic/CommentsEventsHandler.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     /**
28 28
      * @param CommentCreatedPostsIEvent $event
29 29
      */
30
-   public function onCommentCreated(CommentCreatedPostsIEvent $event): void
30
+    public function onCommentCreated(CommentCreatedPostsIEvent $event): void
31 31
     {
32 32
         $this->postValidator->preHandleCommentCreated($event);
33 33
         $this->transactionFactory
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
             ->execute();
43 43
     }
44 44
 
45
-   public function onCommentsBaselined(CommentsBaselinedPostsIEvent $event): void
45
+    public function onCommentsBaselined(CommentsBaselinedPostsIEvent $event): void
46 46
     {
47 47
         $this->postValidator->preHandleCommentsBaselined($event);
48 48
         $this->transactionFactory
Please login to merge, or discard this patch.
src/Modules/Posts/Domain/Logic/PostsValidator.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     /**
29 29
      * @param CreatePostCommand $command
30 30
      */
31
-   public function preCreate(CreatePostCommand $command): void
31
+    public function preCreate(CreatePostCommand $command): void
32 32
     {
33 33
         $this->validatePostBody($command->getBody());
34 34
         $this->validatePostTitle($command->getTitle());
Please login to merge, or discard this patch.
src/Modules/Posts/Domain/Logic/PostUpdater.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     /**
31 31
      * @param UpdatePostCommand $command
32 32
      */
33
-   public function updatePost(UpdatePostCommand $command): void
33
+    public function updatePost(UpdatePostCommand $command): void
34 34
     {
35 35
         $post = $this->validator->preUpdate($command);
36 36
         $updatedPost = $this->fromUpdateCommand($command);
Please login to merge, or discard this patch.
src/Modules/Posts/Domain/Logic/PostsFinder.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      * @param FindAllPostsQuery $query
29 29
      * @return Page<FindPostHeaderQueryResponse>
30 30
      */
31
-   public function findAllPosts(FindAllPostsQuery $query): Page
31
+    public function findAllPosts(FindAllPostsQuery $query): Page
32 32
     {
33 33
         $page = $this->findingRepository->findPosts($query->getPageNo());
34 34
         return new Page(Collection::from(
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      * @param FindPostByIdQuery $query
49 49
      * @return FindPostQueryResponse|null
50 50
      */
51
-   public function findPostById(FindPostByIdQuery $query): ?FindPostQueryResponse
51
+    public function findPostById(FindPostByIdQuery $query): ?FindPostQueryResponse
52 52
     {
53 53
         return $this->toSinglePostResponse(
54 54
             $this->findingRepository->findPost($query->getId())
Please login to merge, or discard this patch.
src/Modules/Posts/Domain/Logic/PostsCreator.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      * @param CreatePostCommand $command
37 37
      * @return CreatePostCommandResponse
38 38
      */
39
-   public function createPost(CreatePostCommand $command): CreatePostCommandResponse
39
+    public function createPost(CreatePostCommand $command): CreatePostCommandResponse
40 40
     {
41 41
         $this->validator->preCreate($command);
42 42
         $newPost = $this->fromCreateCommand($command);
Please login to merge, or discard this patch.
src/Modules/Posts/Domain/Repository/PostsCreationRepositoryInterface.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,5 +11,5 @@
 block discarded – undo
11 11
      * @param CreateNewPostDto $newPost
12 12
      * @return Ulid - id of the new Post
13 13
      */
14
-   public function createPost(CreateNewPostDto $newPost): Ulid;
14
+    public function createPost(CreateNewPostDto $newPost): Ulid;
15 15
 }
16 16
\ No newline at end of file
Please login to merge, or discard this patch.