Completed
Push — master ( 7464ba...bae15a )
by
unknown
02:18
created
src/ConstraintCheck/Context/ContextCursorSerializer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 			}
Please login to merge, or discard this patch.
src/ConstraintCheck/Context/ContextCursorDeserializer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.