| Conditions | 3 |
| Paths | 4 |
| Total Lines | 10 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare( strict_types=1 ); |
||
| 24 | private function run( string $mode = TaskManager::MODE_COMPLETE, string $name = null ) { |
||
| 25 | $activity = $mode === TaskManager::MODE_COMPLETE ? TaskManager::MODE_COMPLETE : "$mode $name"; |
||
| 26 | $this->logger->info( "Starting $activity" ); |
||
| 27 | $manager = new TaskManager; |
||
| 28 | $res = $manager->run( $mode, $name ); |
||
| 29 | $line = '---------------------------------------------------'; |
||
| 30 | if ( $res->isOK() ) { |
||
| 31 | $this->logger->info( "Execution of $activity completed successfully.\n$line\n\n" ); |
||
| 32 | } else { |
||
| 33 | $this->logger->error( "Execution of $activity failed.\n$res\n$line\n\n" ); |
||
| 34 | } |
||
| 62 |