Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 11 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
35 | View Code Duplication | public function migrate(){ |
|
36 | try{ |
||
37 | $path = "app".DIRECTORY_SEPARATOR."Itil".DIRECTORY_SEPARATOR."database".DIRECTORY_SEPARATOR."migrations"; |
||
38 | Artisan::call('migrate', [ |
||
39 | '--path' => $path, |
||
40 | '--force'=>true, |
||
41 | ]); |
||
42 | } catch (Exception $ex) { |
||
43 | dd($ex); |
||
44 | } |
||
45 | } |
||
46 | |||
60 |
When comparing two booleans, it is generally considered safer to use the strict comparison operator.