Test Setup Failed
Push — master ( 1b815c...014ade )
by Mohamed
13:39 queued 07:32
created

OpenTOPending::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 2
b 0
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
3
namespace App\Console\Commands;
4
5
use App\Models\Institution_student_admission;
6
use Illuminate\Console\Command;
7
8
class OpenTOPending extends Command
9
{
10
    /**
11
     * The name and signature of the console command.
12
     *
13
     * @var string
14
     */
15
    protected $signature = 'students:status_update';
16
17
    /**
18
     * The console command description.
19
     *
20
     * @var string
21
     */
22
    protected $description = 'Update open status to pending for approval';
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
        Institution_student_admission::where('status_id',121)->update([
42
            'status_id' => 122
43
        ]);
44
    }
45
    
46
}
47