| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 40 | public function handle() |
||
| 41 | { |
||
| 42 | $output = new \Symfony\Component\Console\Output\ConsoleOutput(); |
||
| 43 | $output->writeln('###########################################------Inserting file records------###########################################'); |
||
| 44 | $this->examinationController = new ExaminationStudentsController($this->argument('year'), $this->argument('grade')); |
||
|
|
|||
| 45 | if ($this->argument('mode') == 'export') { |
||
| 46 | $output->writeln('###########################################------starting export------###########################################'); |
||
| 47 | $this->examinationController->export(); |
||
| 48 | $output->writeln('###########################################------Finished inserting file records------###########################################'); |
||
| 49 | } else { |
||
| 50 | $this->examinationController->doMatch($this->argument('offset'), $this->argument('limit'), $this->argument(('mode'))); |
||
| 51 | $this->examinationController->export(); |
||
| 52 | } |
||
| 53 | $output->writeln('###########################################------Finished inserting file records------###########################################'); |
||
| 54 | } |
||
| 56 |