Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 8 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
42 | View Code Duplication | public function getOldCategoryAttribute() |
|
43 | { |
||
44 | if ($this->event_type !== ThreadCategoryWasChangedEvent::class) { |
||
45 | return null; |
||
46 | } |
||
47 | |||
48 | return DiscussCategory::find($this->data['old']); |
||
49 | } |
||
50 | |||
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.