| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare( strict_types=1 ); |
||
| 41 | protected function addMsg( User $user, int $ricNum ): void { |
||
| 42 | $this->getLogger()->info( "Leaving msg to $user" ); |
||
| 43 | $msg = $this->msg( 'user-notice-msg' )->params( [ '$num' => $ricNum ] )->text(); |
||
| 44 | |||
| 45 | $params = [ |
||
| 46 | 'section' => 'new', |
||
| 47 | 'text' => $msg, |
||
| 48 | 'sectiontitle' => $this->msg( 'user-notice-sectiontitle' )->text(), |
||
| 49 | 'summary' => $this->msg( 'user-notice-summary' )->text() |
||
| 50 | ]; |
||
| 51 | |||
| 52 | $user->getTalkPage()->edit( $params ); |
||
| 53 | } |
||
| 55 |