| Conditions | 4 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function getDescriptionForEvent(string $eventName): string |
||
| 19 | { |
||
| 20 | if ($eventName == 'created') { |
||
| 21 | return 'Tax Rule <strong> '.$this->name.' </strong> was created'; |
||
|
|
|||
| 22 | } |
||
| 23 | |||
| 24 | if ($eventName == 'updated') { |
||
| 25 | return 'Tax Rule<strong> '.$this->name.'</strong> was updated'; |
||
| 26 | } |
||
| 27 | |||
| 28 | if ($eventName == 'deleted') { |
||
| 29 | return 'Tax Rule<strong> '.$this->name.' </strong> was deleted'; |
||
| 30 | } |
||
| 31 | |||
| 32 | return ''; |
||
| 33 | } |
||
| 34 | } |
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.