Passed
Push — main ( c3a0f3...6d7bd8 )
by Slawomir
05:24
created
Persistence/Doctrine/Transactions/DoctrineSecurityTransactionFactory.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     }
17 17
 
18 18
 
19
-   public function getManagerName(): string
19
+    public function getManagerName(): string
20 20
     {
21 21
         return "security";
22 22
     }
Please login to merge, or discard this patch.
Doctrine/Repository/DoctrineSecurityPostEventsHandlingRepository.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
      * @param CreateNewUserPostHeaderDto $newPostHeader
16 16
      * @throws \Doctrine\ORM\ORMException
17 17
      */
18
-   public function createPostHeader(CreateNewUserPostHeaderDto $newPostHeader): void
18
+    public function createPostHeader(CreateNewUserPostHeaderDto $newPostHeader): void
19 19
     {
20 20
         $post = new UserPostHeader();
21 21
         $post->setId($newPostHeader->getId());
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     /**
33 33
      * @param UpdateExistingUserPostHeaderDto $updatedPostHeader
34 34
      */
35
-   public function updatePostHeader(UpdateExistingUserPostHeaderDto $updatedPostHeader): void
35
+    public function updatePostHeader(UpdateExistingUserPostHeaderDto $updatedPostHeader): void
36 36
     {
37 37
         $this->getEntityManager()
38 38
             ->createQueryBuilder()
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     /**
55 55
      * @param DeleteExistingUserPostHeaderDto $deletedPostHeader
56 56
      */
57
-   public function deletePostHeader(DeleteExistingUserPostHeaderDto $deletedPostHeader): void
57
+    public function deletePostHeader(DeleteExistingUserPostHeaderDto $deletedPostHeader): void
58 58
     {
59 59
         $entityManager = $this->getEntityManager();
60 60
         $entityManager
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.
Doctrine/Repository/DoctrineUserPostHeadersFindingRepository.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     /**
15 15
      * @return array<UserPostHeaderDto>
16 16
      */
17
-   public function findPostHeaders(): array
17
+    public function findPostHeaders(): array
18 18
     {
19 19
         $headerClass = UserPostHeader::class;
20 20
         $dtoClass = UserPostHeaderDto::class;
Please login to merge, or discard this patch.
src/Modules/Security/Domain/Logic/JWTSecurityListener.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 JWTCreatedEvent $event
32 32
      */
33
-   public function onJwtCreated(JWTCreatedEvent $event): void
33
+    public function onJwtCreated(JWTCreatedEvent $event): void
34 34
     {
35 35
         $payload = $event->getData();
36 36
         $user = $this->loggedInUserProvider->getUser();
Please login to merge, or discard this patch.
src/Modules/Security/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 CommentsCountUpdatedSecurityIEvent $event
26 26
      */
27
-   public function onCommentsCountUpdated(CommentsCountUpdatedSecurityIEvent $event): void
27
+    public function onCommentsCountUpdated(CommentsCountUpdatedSecurityIEvent $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(CommentsCountUpdatedSecurityIEvent $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/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.
Security/Domain/Repository/UserPostHeadersFindingRepositoryInterface.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
     /**
14 14
      * @return array<UserPostHeaderDto>
15 15
      */
16
-   public function findPostHeaders(): array;
16
+    public function findPostHeaders(): array;
17 17
 
18 18
     /**
19 19
      * @return Page<UserPostHeaderDto>
Please login to merge, or discard this patch.
src/Modules/Security/Domain/Repository/UserCreationRepositoryInterface.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 CreateNewUserDto $newUser
12 12
      * @return Ulid
13 13
      */
14
-   public function createUser(CreateNewUserDto $newUser): Ulid;
14
+    public function createUser(CreateNewUserDto $newUser): Ulid;
15 15
 }
16 16
\ No newline at end of file
Please login to merge, or discard this patch.