Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Lines | 14 |
Ratio | 100 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
58 | View Code Duplication | private function getTokenForRevision( Revision $revision ) { |
|
59 | $result = $this->api->postRequest( |
||
60 | new SimpleRequest( |
||
61 | 'query', [ |
||
62 | 'prop' => 'revisions', |
||
63 | 'revids' => $revision->getId(), |
||
64 | 'rvtoken' => 'rollback', |
||
65 | ] |
||
66 | ) |
||
67 | ); |
||
68 | $result = array_shift( $result['query']['pages'] ); |
||
69 | |||
70 | return $result['revisions'][0]['rollbacktoken']; |
||
71 | } |
||
72 | |||
74 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.