Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 8 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
56 | View Code Duplication | public function getNewCategoryAttribute() |
|
57 | { |
||
58 | if ($this->event_type !== ThreadCategoryWasChangedEvent::class) { |
||
59 | return null; |
||
60 | } |
||
61 | |||
62 | return DiscussCategory::find($this->data['new']); |
||
63 | } |
||
64 | } |
||
65 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.