Test Setup Failed
Push — master ( 93675a...ba3342 )
by Mohamed
14:07 queued 12s
created

ExaminationStudentSeed   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
eloc 8
dl 0
loc 37
rs 10
c 3
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A handle() 0 6 1
A __construct() 0 3 1
1
<?php
2
3
namespace App\Console\Commands;
4
5
use App\Http\Controllers\ExaminationStudentsController;
6
use Illuminate\Console\Command;
7
8
class ExaminationStudentSeed extends Command
9
{
10
    /**
11
     * The name and signature of the console command.
12
     *
13
     * @var string
14
     */
15
    protected $signature = 'examination:migration';
16
17
    /**
18
     * The console command description.
19
     *
20
     * @var string
21
     */
22
    protected $description = 'This command to seed from  the examination data (csv) to sis deticated examination table';
23
24
    /**
25
     * Create a new command instance.
26
     *
27
     * @return void
28
     */
29
    public function __construct()
30
    {
31
        parent::__construct();
32
    }
33
34
    /**
35
     * Execute the console command.
36
     *
37
     * @return mixed
38
     */
39
    public function handle()
40
    {
41
        $output = new \Symfony\Component\Console\Output\ConsoleOutput();
42
        $output->writeln('###########################################------Inserting file records------###########################################');
43
        ExaminationStudentsController::callOnClick();
44
        $output->writeln('###########################################------Finished inserting file records------###########################################');
45
    }
46
}
47