| Total Complexity | 5 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 8 | class ExtendedDatabaseNotification extends DatabaseNotification |
||
| 9 | { |
||
| 10 | public function loan() |
||
| 14 | } |
||
| 15 | |||
| 16 | /** |
||
| 17 | * The accessors to append to the model's array form. |
||
| 18 | * |
||
| 19 | * @var array |
||
| 20 | */ |
||
| 21 | protected $appends = ['url']; |
||
| 22 | |||
| 23 | public function getUrlAttribute() |
||
| 24 | { |
||
| 25 | return action('NotificationsController@show', $this->id); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function humanReadableType() |
||
| 37 | } |
||
| 38 | } |
||
| 40 |
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.