Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
45 | public function handle() |
||
46 | { |
||
47 | $backup_file = $this->backup->createBackup(); |
||
48 | $this->storage->uploadFile($backup_file); |
||
49 | |||
50 | // \Mail::send('emails.db_backup_email', compact('current_date'), function ($message) use ($current_date, $dumpfname) { |
||
51 | // $message->from(env('MAIL_ADDRESS'), env('MAIL_NAME')); |
||
52 | // $message->to(env('MAIL_TO'))->subject('ERP System DB Backup-'.$current_date)->attach($dumpfname); |
||
53 | // }); |
||
54 | unlink($backup_file); |
||
55 | } |
||
56 | } |
||
57 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.