Passed
Push — main ( e50f3d...ae15e8 )
by Slawomir
04:37
created
tests/TestUtils/Events/InMemoryEventPublisher.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,10 +38,10 @@
 block discarded – undo
38 38
     {
39 39
         $result = [];
40 40
         foreach (InMemoryEventPublisher::$publishedEvents
41
-                     ->filter(function ($event) use ($eventClass) {
42
-                         return $event::class == $eventClass;
43
-                     })
44
-                     ->toArray() as $event) {
41
+                        ->filter(function ($event) use ($eventClass) {
42
+                            return $event::class == $eventClass;
43
+                        })
44
+                        ->toArray() as $event) {
45 45
             array_push($result, $event);
46 46
         }
47 47
         return $result;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     {
39 39
         $result = [];
40 40
         foreach (InMemoryEventPublisher::$publishedEvents
41
-                     ->filter(function ($event) use ($eventClass) {
41
+                     ->filter(function($event) use ($eventClass) {
42 42
                          return $event::class == $eventClass;
43 43
                      })
44 44
                      ->toArray() as $event) {
Please login to merge, or discard this patch.
tests/TestUtils/Contracts/ApplicationEventContractLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,6 +31,6 @@
 block discarded – undo
31 31
 
32 32
     protected function getContractsPath(): string
33 33
     {
34
-        return dirname(__FILE__) . '/../../../contracts';
34
+        return dirname(__FILE__).'/../../../contracts';
35 35
     }
36 36
 }
37 37
\ No newline at end of file
Please login to merge, or discard this patch.
tests/Infrastructure/Events/ApplicationInboundEventSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
             [null, 'int', true, null],
57 57
 
58 58
             [$ulid, 'ulid', false, $ulid],
59
-            [(string)$ulid, 'ulid', false, $ulid],
59
+            [(string) $ulid, 'ulid', false, $ulid],
60 60
             [null, 'ulid', false, $ulid],
61 61
             [null, 'ulid', true, null],
62 62
 
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
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     public function findPostHeaders(FindTagsPostHeadersQuery $query): array
29 29
     {
30 30
         return Collection::from($this->headersFindingRepository->findPostHeaders())
31
-            ->map(function ($header) {
31
+            ->map(function($header) {
32 32
                 return new FindTagsPostHeadersQueryResponse(
33 33
                     $header->getId(),
34 34
                     $header->getTitle(),
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     {
52 52
         $page = $this->headersFindingRepository->findPostHeadersByTag($query->getTag(), $query->getPageNo());
53 53
         $data = Collection::from($page->getData())
54
-            ->map(function ($header) {
54
+            ->map(function($header) {
55 55
                 return new FindPostsByTagQueryResponse(
56 56
                     $header->getId(),
57 57
                     $header->getTitle(),
Please login to merge, or discard this patch.
src/Modules/Tags/Domain/Logic/SecurityEventsHandler.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 onUserRenamed(UserRenamedTagsIEvent $event): void
24 24
     {
25 25
         $this->transactionFactory
26
-            ->createTransaction(function () use ($event) {
26
+            ->createTransaction(function() use ($event) {
27 27
                 $this->securityEventsHandlingRepository->updateUserName(
28 28
                     new UpdatedTagsPostHeadersUserNameDto(
29 29
                         $event->getOldLogin(),
Please login to merge, or discard this patch.
src/Modules/Tags/Domain/Logic/TagsFinder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     {
27 27
         return
28 28
             Collection::from($this->tagsFindingRepository->findTags())
29
-                ->map(function ($tag) {
29
+                ->map(function($tag) {
30 30
                     return new FindTagsQueryResponse($tag->getTag(), $tag->getPostsCount());
31 31
                 })
32 32
                 ->toArray();
Please login to merge, or discard this patch.
src/Modules/Tags/Domain/Logic/CommentsEventsHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     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/PostsEventsHandler.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function onPostCreated(PostCreatedTagsIEvent $event): void
33 33
     {
34
-        $this->transactionFactory->createTransaction(function () use ($event) {
34
+        $this->transactionFactory->createTransaction(function() use ($event) {
35 35
             $this->postEventsTagsRepository->createPostHeader(
36 36
                 new CreateNewTagsPostHeaderDto(
37 37
                     $event->getId(),
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function onPostUpdated(PostUpdatedTagsIEvent $event): void
56 56
     {
57
-        $this->transactionFactory->createTransaction(function () use ($event) {
57
+        $this->transactionFactory->createTransaction(function() use ($event) {
58 58
             $this->postEventsTagsRepository->updatePostHeader(
59 59
                 new UpdateExistingTagsPostHeaderDto(
60 60
                     $event->getId(),
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public function onPostDeleted(PostDeletedTagsIEvent $event): void
76 76
     {
77
-        $this->transactionFactory->createTransaction(function () use ($event) {
77
+        $this->transactionFactory->createTransaction(function() use ($event) {
78 78
             $this->postEventsTagsRepository->deletePostHeader(
79 79
                 new DeleteExistingTagsPostHeaderDto($event->getId())
80 80
             );
Please login to merge, or discard this patch.
Posts/Persistence/Doctrine/Repository/DoctrinePostsFindingRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
                     p.id, p.title, p.body, p.summary, p.tags, p.updatedAt, p.version
82 82
              ) from $postClass p where p.deletedAt is null";
83 83
         if ($from != null) {
84
-            $dql = $dql . " and p.createdAt >= :from";
84
+            $dql = $dql." and p.createdAt >= :from";
85 85
         }
86 86
         $query = $this->getEntityManager()->createQuery(
87 87
             $dql
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         $postClass = Post::class;
102 102
         $dql = "select p.id from $postClass p where p.deletedAt is not null";
103 103
         if ($from != null) {
104
-            $dql = $dql . " and p.deletedAt >= :from";
104
+            $dql = $dql." and p.deletedAt >= :from";
105 105
         }
106 106
         $query = $this->getEntityManager()->createQuery(
107 107
             $dql
Please login to merge, or discard this patch.