Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
53 | 1 | public function doChangeRevision( Title $title, &$revision ) { |
|
54 | |||
55 | // Forcibly change the revision to match what ApprovedRevs sees as |
||
56 | // approved |
||
57 | 1 | if ( ( $approvedRevID = $this->approvedRevsFacade->getApprovedRevID( $title ) ) !== null ) { |
|
58 | 1 | $revision = Revision::newFromId( $approvedRevID ); |
|
59 | } |
||
60 | 1 | } |
|
61 | |||
76 |