Conditions | 5 |
Paths | 7 |
Total Lines | 21 |
Lines | 9 |
Ratio | 42.86 % |
Changes | 0 |
1 | <?php |
||
39 | $guid = $statement->getSerialization(); |
||
40 | } elseif ( $statement instanceof Statement ) { |
||
41 | $guid = $statement->getGuid(); |
||
42 | } else { |
||
43 | throw new UnexpectedValueException( 'Could not get statement guid from $statement' ); |
||
44 | } |
||
45 | if ( !is_string( $guid ) ) { |
||
46 | throw new UnexpectedValueException( 'Unexpected statement guid got from $statement' ); |
||
47 | } |
||
48 | |||
49 | $params = [ |
||
50 | 'claim' => $guid, |
||
51 | ]; |
||
52 | |||
53 | $this->api->postRequest( 'wbremoveclaims', $params, $editInfo ); |
||
54 | return true; |
||
55 | } |
||
56 | |||
57 | } |
||
58 |