@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare( strict_types=1 ); |
|
| 1 | +<?php declare(strict_types=1); |
|
| 2 | 2 | |
| 3 | 3 | namespace BotRiconferme\Task; |
| 4 | 4 | |
@@ -11,13 +11,13 @@ discard block |
||
| 11 | 11 | /** |
| 12 | 12 | * @inheritDoc |
| 13 | 13 | */ |
| 14 | - public function run() : TaskResult { |
|
| 14 | + public function run () : TaskResult { |
|
| 15 | 15 | $this->getLogger()->info( 'Starting task UserNotice' ); |
| 16 | 16 | |
| 17 | 17 | $pages = $this->getDataProvider()->getCreatedPages(); |
| 18 | 18 | $users = $this->getDataProvider()->getUsersToProcess(); |
| 19 | 19 | if ( $pages && $users ) { |
| 20 | - $ricNums = []; |
|
| 20 | + $ricNums = [ ]; |
|
| 21 | 21 | foreach ( $pages as $page ) { |
| 22 | 22 | $bits = explode( '/', $page ); |
| 23 | 23 | $num = intval( array_pop( $bits ) ); |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | * @param string $user |
| 42 | 42 | * @param int $ricNum |
| 43 | 43 | */ |
| 44 | - protected function addMsg( string $user, int $ricNum ) { |
|
| 44 | + protected function addMsg ( string $user, int $ricNum ) { |
|
| 45 | 45 | $this->getLogger()->info( "Leaving msg to $user" ); |
| 46 | 46 | $msg = str_replace( '$num', "$ricNum", $this->getConfig()->get( 'user-notice-msg' ) ); |
| 47 | 47 | |