Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
38 | private function getRollbackParams( Revision $revision, $title ) { |
||
39 | $params = []; |
||
40 | if ( $title !== null ) { |
||
41 | // This is needed prior to https://gerrit.wikimedia.org/r/#/c/133063/ |
||
42 | $params['title'] = $title->getTitle(); |
||
|
|||
43 | } else { |
||
44 | // This will work after https://gerrit.wikimedia.org/r/#/c/133063/ |
||
45 | $params['pageid'] = $revision->getPageId(); |
||
46 | } |
||
47 | $params['user'] = $revision->getUser(); |
||
48 | $params['token'] = $this->getTokenForRevision( $revision ); |
||
49 | |||
50 | return $params; |
||
51 | } |
||
52 | |||
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.