| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 11 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | View Code Duplication | public function publish() { |
|
| 24 | try { |
||
| 25 | $publish = 'vendor:publish'; |
||
| 26 | $provider = 'App\Itil\ItilServiceProvider'; |
||
| 27 | $tag = "migrations"; |
||
| 28 | $r = Artisan::call($publish, ['--provider' => $provider, '--tag' => [$tag]]); |
||
| 29 | //dd($r); |
||
| 30 | } catch (Exception $ex) { |
||
| 31 | dd($ex); |
||
| 32 | } |
||
| 33 | } |
||
| 34 | |||
| 60 |
When comparing two booleans, it is generally considered safer to use the strict comparison operator.