Passed
Push — main ( 4383ba...3025dd )
by Slawomir
04:44
created
src/Infrastructure/Events/ApplicationInboundEvent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         if ($value == null) {
103 103
             return null;
104 104
         }
105
-        return is_string($value) ? $value : (string)$value;
105
+        return is_string($value) ? $value : (string) $value;
106 106
     }
107 107
 
108 108
     /**
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
             if ($nullable) {
117 117
                 return null;
118 118
             }
119
-            $name = call_user_func(get_called_class() . '::getName');
119
+            $name = call_user_func(get_called_class().'::getName');
120 120
             throw new RuntimeException("Event $name requires a field '$fieldName' to be present");
121 121
         }
122 122
         return $this->data[$fieldName];
Please login to merge, or discard this patch.
src/Infrastructure/Events/Api/EventHandlerReference.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 
40 40
     public function getEventName(): string
41 41
     {
42
-        return call_user_func($this->inboundEventClass . '::getName');
42
+        return call_user_func($this->inboundEventClass.'::getName');
43 43
     }
44 44
 
45 45
 
Please login to merge, or discard this patch.
src/Modules/Posts/Api/Event/Inbound/UserRenamedPostsIEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public function __construct(array $data)
19 19
     {
20
-        parent::__construct( $data);
20
+        parent::__construct($data);
21 21
         $this->oldLogin = $this->string('oldLogin');
22 22
         $this->newLogin = $this->string('newLogin');
23 23
     }
Please login to merge, or discard this patch.
src/Modules/Posts/Api/Event/Inbound/CommentCreatedPostsIEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      */
19 19
     public function __construct(array $data)
20 20
     {
21
-        parent::__construct( $data);
21
+        parent::__construct($data);
22 22
         $this->postId = $this->ulid('postId');
23 23
         $this->comments = [$this->array('comment')];
24 24
     }
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
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
                     p.id, p.title, p.body, p.summary, p.tags, p.updatedAt, p.version
84 84
              ) from $postClass p where p.deletedAt is null";
85 85
         if ($from != null) {
86
-            $dql = $dql . " and p.createdAt >= :from";
86
+            $dql = $dql." and p.createdAt >= :from";
87 87
         }
88 88
         $query = $this->getEntityManager()->createQuery(
89 89
             $dql
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         $postClass = Post::class;
104 104
         $dql = "select p.id as postId from $postClass p where p.deletedAt is not null";
105 105
         if ($from != null) {
106
-            $dql = $dql . " and p.deletedAt >= :from";
106
+            $dql = $dql." and p.deletedAt >= :from";
107 107
         }
108 108
         $query = $this->getEntityManager()->createQuery(
109 109
             $dql
Please login to merge, or discard this patch.
src/Infrastructure/Doctrine/Transactions/DoctrineTransactionFactory.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
         parent::__construct($managerRegistry);
18 18
     }
19 19
 
20
-   public function createTransaction($func): TransactionInterface
20
+    public function createTransaction($func): TransactionInterface
21 21
     {
22 22
         $em = $this->getEntityManager();
23 23
         if(!$em->isOpen()) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
    public function createTransaction($func): TransactionInterface
21 21
     {
22 22
         $em = $this->getEntityManager();
23
-        if(!$em->isOpen()) {
23
+        if (!$em->isOpen()) {
24 24
             $em = $this->managerRegistry->resetManager($this->getManagerName());
25 25
         }
26 26
         return new DoctrineTransaction($em, $func);
Please login to merge, or discard this patch.
src/Infrastructure/Events/Api/ApplicationEventSubscriber.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     )
23 23
     {
24 24
         $this->subscribedHandlers = Collection::from($this->subscribe())
25
-            ->map(function ($handlerMethodName, $eventClass) {
25
+            ->map(function($handlerMethodName, $eventClass) {
26 26
                 return EventHandlerReference::create($handlerMethodName, $eventClass);
27 27
             })
28 28
             ->realize();
@@ -58,9 +58,9 @@  discard block
 block discarded – undo
58 58
     {
59 59
         return $this
60 60
             ->subscribedHandlers
61
-            ->filter(function ($ref) use ($event) {
61
+            ->filter(function($ref) use ($event) {
62 62
                 return $ref->getEventName() == $event->getName();
63
-            })->map(function ($value) {
63
+            })->map(function($value) {
64 64
                 return $value;
65 65
             })->toArray();
66 66
     }
Please login to merge, or discard this patch.