@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare( strict_types=1 ); |
|
| 1 | +<?php declare(strict_types=1); |
|
| 2 | 2 | |
| 3 | 3 | namespace BotRiconferme; |
| 4 | 4 | |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | /** |
| 12 | 12 | * @inheritDoc |
| 13 | 13 | */ |
| 14 | - public function log( $level, $message, array $context = [] ) { |
|
| 14 | + public function log ( $level, $message, array $context = [ ] ) { |
|
| 15 | 15 | printf( "%s [%s] - %s\n", date( 'd M H:i:s' ), $level, $message ); |
| 16 | 16 | } |
| 17 | 17 | } |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare( strict_types=1 ); |
|
| 1 | +<?php declare(strict_types=1); |
|
| 2 | 2 | |
| 3 | 3 | namespace BotRiconferme; |
| 4 | 4 | |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | |
| 12 | 12 | const VERSION = 1.0; |
| 13 | 13 | |
| 14 | - public function __construct() { |
|
| 14 | + public function __construct () { |
|
| 15 | 15 | $this->logger = new Logger; |
| 16 | 16 | } |
| 17 | 17 | |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | * @param string $mode |
| 22 | 22 | * @param string|null $name |
| 23 | 23 | */ |
| 24 | - private function run( string $mode = TaskManager::MODE_COMPLETE, string $name = null ) { |
|
| 24 | + private function run ( string $mode = TaskManager::MODE_COMPLETE, string $name = null ) { |
|
| 25 | 25 | $activity = $mode === TaskManager::MODE_COMPLETE ? TaskManager::MODE_COMPLETE : "$mode $name"; |
| 26 | 26 | $this->logger->info( "Running $activity" ); |
| 27 | 27 | $manager = new TaskManager; |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | /** |
| 38 | 38 | * Entry point for the whole process |
| 39 | 39 | */ |
| 40 | - public function runAll() { |
|
| 40 | + public function runAll () { |
|
| 41 | 41 | $this->run(); |
| 42 | 42 | } |
| 43 | 43 | |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | * |
| 47 | 47 | * @param string $task |
| 48 | 48 | */ |
| 49 | - public function runTask( string $task ) { |
|
| 49 | + public function runTask ( string $task ) { |
|
| 50 | 50 | $this->run( TaskManager::MODE_TASK, $task ); |
| 51 | 51 | } |
| 52 | 52 | |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | * |
| 56 | 56 | * @param string $subtask |
| 57 | 57 | */ |
| 58 | - public function runSubtask( string $subtask ) { |
|
| 58 | + public function runSubtask ( string $subtask ) { |
|
| 59 | 59 | $this->run( TaskManager::MODE_SUBTASK, $subtask ); |
| 60 | 60 | } |
| 61 | 61 | } |