| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function getEditForm($id = null, $fields = null) |
||
| 18 | { |
||
| 19 | $form = parent::getEditForm($id, $fields); |
||
| 20 | $task = new DevTaskRunnerCronTask(); |
||
| 21 | $cron = CronExpression::factory($task->getSchedule()); |
||
| 22 | $nextRun = $cron->getNextRunDate()->format('Y-m-d H:i:s'); |
||
| 23 | $form->Fields()->unshift(LiteralField::create('NextRunMessage', '<p class="message">Next run at ' . $nextRun . '</p>')); |
||
| 24 | |||
| 25 | return $form; |
||
| 26 | } |
||
| 27 | } |
This check marks private properties in classes that are never used. Those properties can be removed.