| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function run() |
||
| 32 | { |
||
| 33 | $dt = new \DateTime(); |
||
| 34 | $this->model->month = $dt->format('Y-m'); // Set default value |
||
| 35 | |||
| 36 | return $this->render('DocumentByMonthButton', [ |
||
| 37 | 'model' => $this->model, |
||
| 38 | 'action' => $this->action, |
||
| 39 | 'type' => $this->type, |
||
| 40 | 'append' => $this->append, |
||
| 41 | 'prepend' => $this->prepend, |
||
| 42 | 'modalHeader' => $this->modalHeader, |
||
| 43 | 'modalHeaderColor' => $this->modalHeaderColor, |
||
| 44 | 'buttonLabel' => $this->buttonLabel, |
||
| 45 | 'dt' => $dt, |
||
| 46 | ]); |
||
| 47 | } |
||
| 48 | } |
||
| 49 |