Completed
Pull Request — master (#41)
by Gildas
02:23
created
src/Serialization/ConstructingEventSerializer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace EventSauce\EventSourcing\Serialization;
6 6
 
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function serializeEvent(object $event): array
15 15
     {
16
-        if (!$event instanceof SerializableEvent) {
16
+        if ( ! $event instanceof SerializableEvent) {
17 17
             throw new \InvalidArgumentException(
18 18
                 'Cannot serialize event that does not implement "EventSauce\EventSourcing\Serialization\SerializableEvent".'
19 19
             );
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
     public function unserializePayload(string $className, array $payload): object
26 26
     {
27
-        if (!is_subclass_of($className, SerializableEvent::class)) {
27
+        if ( ! is_subclass_of($className, SerializableEvent::class)) {
28 28
             throw new \InvalidArgumentException(
29 29
                 'Cannot unserialize payload into an event that does not implement "EventSauce\EventSourcing\Serialization\SerializableEvent".'
30 30
             );
Please login to merge, or discard this patch.