| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare( strict_types=1 ); |
||
| 50 | public function edit( array $params ) { |
||
| 51 | $params = [ |
||
| 52 | 'title' => $this->getTitle() |
||
| 53 | ] + $params; |
||
| 54 | |||
| 55 | $this->controller->editPage( $params ); |
||
| 56 | if ( isset( $params['text'] ) ) { |
||
| 57 | $this->content = $params['text']; |
||
| 58 | } elseif ( isset( $params['appendtext'] ) ) { |
||
| 59 | $this->content .= $params['appendtext']; |
||
| 60 | } else { |
||
| 61 | // Clear the cache anyway |
||
| 62 | ( new Logger )->warning( 'Resetting content cache. Params: ' . var_export( $params, true ) ); |
||
| 63 | $this->content = null; |
||
| 64 | } |
||
| 76 |