| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function postRequest( $action, array $params, EditInfo $editInfo = null ) { |
||
| 33 | if ( $editInfo !== null ) { |
||
| 34 | $params = array_merge( $this->getEditInfoParams( $editInfo ), $params ); |
||
| 35 | } |
||
| 36 | |||
| 37 | $params['token'] = $this->api->getToken(); |
||
| 38 | return $this->api->postRequest( new SimpleRequest( $action, $params ) ); |
||
| 39 | } |
||
| 40 | |||
| 59 |