Passed
Push — main ( 56e558...7a7f73 )
by Slawomir
03:59
created
src/Modules/Comments/Domain/Logic/PostHeadersFinder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     public function findPostHeaders(): array
24 24
     {
25 25
         return Collection::from($this->headersFindingRepository->findPostHeaders())
26
-            ->map(function ($header) {
26
+            ->map(function($header) {
27 27
                 return new FindCommentsPostHeadersQueryResponse(
28 28
                     $header->getId(),
29 29
                     $header->getTitle(),
Please login to merge, or discard this patch.
Security/Persistence/Doctrine/Repository/DoctrineUserCreationRepository.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      * @param CreateNewUserDto $newUser
14 14
      * @return Ulid
15 15
      */
16
-   public function createUser(CreateNewUserDto $newUser): Ulid
16
+    public function createUser(CreateNewUserDto $newUser): Ulid
17 17
     {
18 18
         $user = new User();
19 19
         $user->setEmail($newUser->getLogin());
Please login to merge, or discard this patch.
src/Modules/Security/Domain/Logic/PostHeadersFinder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     public function findPostHeaders(): array
28 28
     {
29 29
         return Collection::from($this->headersFindingRepository->findPostHeaders())
30
-            ->map(function ($header) {
30
+            ->map(function($header) {
31 31
                 return new FindUserPostHeadersQueryResponse(
32 32
                     $header->getId(),
33 33
                     $header->getTitle(),
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     {
51 51
         $page = $this->headersFindingRepository->findPostsByUserId($query->getUserId(), $query->getPageNo());
52 52
         $data = Collection::from($page->getData())
53
-            ->map(function ($header) {
53
+            ->map(function($header) {
54 54
                 return new FindPostsByUserIdQueryResponse(
55 55
                     $header->getId(),
56 56
                     $header->getTitle(),
Please login to merge, or discard this patch.
src/Modules/Security/Api/SecurityApiInterface.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,27 +21,27 @@
 block discarded – undo
21 21
      * @param CreateUserCommand $command
22 22
      * @return CreateUserCommandResponse
23 23
      */
24
-   public function createUser(CreateUserCommand $command): CreateUserCommandResponse;
24
+    public function createUser(CreateUserCommand $command): CreateUserCommandResponse;
25 25
 
26 26
     /**
27 27
      * @param PostCreatedSecurityIEvent $event
28 28
      */
29
-   public function onPostCreated(PostCreatedSecurityIEvent $event): void;
29
+    public function onPostCreated(PostCreatedSecurityIEvent $event): void;
30 30
 
31 31
     /**
32 32
      * @param PostUpdatedSecurityIEvent $event
33 33
      */
34
-   public function onPostUpdated(PostUpdatedSecurityIEvent $event): void;
34
+    public function onPostUpdated(PostUpdatedSecurityIEvent $event): void;
35 35
 
36 36
     /**
37 37
      * @param PostDeletedSecurityIEvent $event
38 38
      */
39
-   public function onPostDeleted(PostDeletedSecurityIEvent $event): void;
39
+    public function onPostDeleted(PostDeletedSecurityIEvent $event): void;
40 40
 
41 41
     /**
42 42
      * @param CommentsCountUpdatedSecurityIEvent $event
43 43
      */
44
-   public function onCommentsCountUpdated(CommentsCountUpdatedSecurityIEvent $event): void;
44
+    public function onCommentsCountUpdated(CommentsCountUpdatedSecurityIEvent $event): void;
45 45
 
46 46
     /**
47 47
      * @return array<FindUserPostHeadersQueryResponse>
Please login to merge, or discard this patch.
src/Modules/Tags/Domain/Logic/TagsUpdater.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      * @param Ulid $postId
25 25
      * @param array $tags
26 26
      */
27
-   public function createUpdateTags(Ulid $postId, array $tags): void
27
+    public function createUpdateTags(Ulid $postId, array $tags): void
28 28
     {
29 29
         $this->tagsUpdatingRepository->removePostFromTags($postId);
30 30
         foreach ($tags as $tag) {
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     }
35 35
 
36 36
 
37
-   public function deleteEmptyTags(): void
37
+    public function deleteEmptyTags(): void
38 38
     {
39 39
         $this->tagsDeletingRepository->deleteEmptyTags();
40 40
     }
Please login to merge, or discard this patch.
src/Modules/Tags/Domain/Logic/CommentsEventsHandler.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     /**
25 25
      * @param CommentsCountUpdatedTagsIEvent $event
26 26
      */
27
-   public function onCommentsCountUpdated(CommentsCountUpdatedTagsIEvent $event): void
27
+    public function onCommentsCountUpdated(CommentsCountUpdatedTagsIEvent $event): void
28 28
     {
29 29
         $this->transactionFactory
30 30
             ->createTransaction(function () use ($event) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
    public function onCommentsCountUpdated(CommentsCountUpdatedTagsIEvent $event): void
28 28
     {
29 29
         $this->transactionFactory
30
-            ->createTransaction(function () use ($event) {
30
+            ->createTransaction(function() use ($event) {
31 31
                 $this->commentsEventHandlingRepository->updatePostCommentsCount(
32 32
                     new UpdatePostsCommentsCountDto($event->getPostId(), $event->getCommentsCount())
33 33
                 );
Please login to merge, or discard this patch.
src/Modules/Tags/Domain/Logic/PostHeadersFinder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     public function findPostHeaders(): array
27 27
     {
28 28
         return Collection::from($this->headersFindingRepository->findPostHeaders())
29
-            ->map(function ($header) {
29
+            ->map(function($header) {
30 30
                 return new FindTagsPostHeadersQueryResponse(
31 31
                     $header->getId(),
32 32
                     $header->getTitle(),
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     {
50 50
         $page = $this->headersFindingRepository->findPostHeadersByTag($query->getTag(), $query->getPageNo());
51 51
         $data = Collection::from($page->getData())
52
-            ->map(function ($header) {
52
+            ->map(function($header) {
53 53
                 return new FindPostsByTagQueryResponse(
54 54
                     $header->getId(),
55 55
                     $header->getTitle(),
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.