@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | * @param ContextCursor $cursor |
14 | 14 | * @return array |
15 | 15 | */ |
16 | - public function serialize( ContextCursor $cursor ) { |
|
16 | + public function serialize(ContextCursor $cursor) { |
|
17 | 17 | $type = $cursor->getType(); |
18 | 18 | $serialization = [ |
19 | 19 | 't' => $type, |
@@ -23,9 +23,9 @@ discard block |
||
23 | 23 | 'h' => $cursor->getSnakHash(), |
24 | 24 | ]; |
25 | 25 | |
26 | - if ( $type === Context::TYPE_QUALIFIER || $type === Context::TYPE_REFERENCE ) { |
|
26 | + if ($type === Context::TYPE_QUALIFIER || $type === Context::TYPE_REFERENCE) { |
|
27 | 27 | $serialization['P'] = $cursor->getSnakPropertyId(); |
28 | - if ( $type === Context::TYPE_REFERENCE ) { |
|
28 | + if ($type === Context::TYPE_REFERENCE) { |
|
29 | 29 | /** @var ReferenceContextCursor $cursor */ |
30 | 30 | $serialization['r'] = $cursor->getReferenceHash(); |
31 | 31 | } |
@@ -11,8 +11,8 @@ discard block |
||
11 | 11 | */ |
12 | 12 | class ContextCursorDeserializer { |
13 | 13 | |
14 | - public function deserialize( array $serialization ) { |
|
15 | - switch ( $serialization['t'] ) { |
|
14 | + public function deserialize(array $serialization) { |
|
15 | + switch ($serialization['t']) { |
|
16 | 16 | case Context::TYPE_STATEMENT: |
17 | 17 | return new MainSnakContextCursor( |
18 | 18 | $serialization['i'], |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | ); |
40 | 40 | default: |
41 | 41 | throw new InvalidArgumentException( |
42 | - 'Unknown serialization type ' . $serialization['t'] |
|
42 | + 'Unknown serialization type '.$serialization['t'] |
|
43 | 43 | ); |
44 | 44 | } |
45 | 45 | } |