| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 14 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | View Code Duplication | public function up() |
|
| 8 | { |
||
| 9 | $this->delete('mail_templates', ['key' => 'CHANGE_PASSWORD']); |
||
| 10 | |||
| 11 | $this->insert('mail_templates', [ |
||
| 12 | 'key' => 'RECOVERY_PASSWORD', |
||
| 13 | 'body' => '<p>Hello, {{name}}!</p>' |
||
| 14 | . '<p>To change your password, click here please {{link}}.</p>' |
||
| 15 | . '<p>After setting new password you will be automatically logged in.</p>', |
||
| 16 | 'updated_at' => date('Y-m-d H:i:s'), |
||
| 17 | 'name' => 'Password recovery', |
||
| 18 | 'subject' => 'Password recovery' |
||
| 19 | ]); |
||
| 20 | } |
||
| 21 | |||
| 37 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.