| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 14 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | View Code Duplication | public function down() |
|
| 23 | { |
||
| 24 | $this->delete('mail_templates', ['key' => 'RECOVERY_PASSWORD']); |
||
| 25 | |||
| 26 | $this->insert('mail_templates', [ |
||
| 27 | 'key' => 'CHANGE_PASSWORD', |
||
| 28 | 'body' => '<p>Hello, {{name}}!</p>' |
||
| 29 | . '<p>To change your password, click here please {{link}}.</p>' |
||
| 30 | . '<p>After setting new password you will be automatically logged in.</p>', |
||
| 31 | 'updated_at' => date('Y-m-d H:i:s'), |
||
| 32 | 'name' => 'Password recovery', |
||
| 33 | 'subject' => 'Password recovery' |
||
| 34 | ]); |
||
| 35 | } |
||
| 36 | } |
||
| 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.