@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | $builder = SerializerBuilder::create(); |
37 | 37 | $builder->addMetadataDir(__DIR__.'/../metadata', 'Xabbuh\XApi\Model'); |
38 | 38 | $builder->configureListeners( |
39 | - function (EventDispatcher $dispatcher) { |
|
39 | + function(EventDispatcher $dispatcher) { |
|
40 | 40 | $dispatcher->addSubscriber(new ActorEventSubscriber()); |
41 | 41 | $dispatcher->addSubscriber(new DocumentDataWrapper()); |
42 | 42 | $dispatcher->addSubscriber(new ObjectEventSubscriber()); |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | } |
45 | 45 | ); |
46 | 46 | $builder->configureHandlers( |
47 | - function (HandlerRegistryInterface $registry) { |
|
47 | + function(HandlerRegistryInterface $registry) { |
|
48 | 48 | $registry->registerSubscribingHandler(new DocumentDataUnwrapper()); |
49 | 49 | } |
50 | 50 | ); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | public static function registerXApiEventSubscriber(SerializerBuilder $builder) |
58 | 58 | { |
59 | - $builder->configureListeners(function (EventDispatcher $dispatcher) { |
|
59 | + $builder->configureListeners(function(EventDispatcher $dispatcher) { |
|
60 | 60 | $dispatcher->addSubscriber(new ActorEventSubscriber()); |
61 | 61 | $dispatcher->addSubscriber(new DocumentDataWrapper()); |
62 | 62 | $dispatcher->addSubscriber(new ObjectEventSubscriber()); |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | */ |
72 | 72 | public static function registerXApiHandler(SerializerBuilder $builder) |
73 | 73 | { |
74 | - $builder->configureHandlers(function (HandlerRegistryInterface $handlerRegistry) { |
|
74 | + $builder->configureHandlers(function(HandlerRegistryInterface $handlerRegistry) { |
|
75 | 75 | $handlerRegistry->registerSubscribingHandler(new DocumentDataUnwrapper()); |
76 | 76 | }); |
77 | 77 | } |
@@ -83,7 +83,7 @@ |
||
83 | 83 | ->serializer |
84 | 84 | ->expects($this->any()) |
85 | 85 | ->method('serialize') |
86 | - ->will($this->returnCallback(function ($data) use ($serializerMap) { |
|
86 | + ->will($this->returnCallback(function($data) use ($serializerMap) { |
|
87 | 87 | foreach ($serializerMap as $entry) { |
88 | 88 | if ($data == $entry['data']) { |
89 | 89 | return $entry['result']; |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | ->expects($this->once()) |
77 | 77 | ->method('storeMappedStatement') |
78 | 78 | ->with( |
79 | - $this->callback(function (MappedStatement $mappedStatement) use ($self, $statement) { |
|
79 | + $this->callback(function(MappedStatement $mappedStatement) use ($self, $statement) { |
|
80 | 80 | return $self->assertMappedStatement( |
81 | 81 | MappedStatement::createFromModel($statement), |
82 | 82 | $mappedStatement |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | ->expects($this->once()) |
98 | 98 | ->method('storeMappedStatement') |
99 | 99 | ->with( |
100 | - $this->callback(function (MappedStatement $mappedStatement) use ($self, $statement) { |
|
100 | + $this->callback(function(MappedStatement $mappedStatement) use ($self, $statement) { |
|
101 | 101 | return $self->assertMappedStatement( |
102 | 102 | MappedStatement::createFromModel($statement), |
103 | 103 | $mappedStatement |