| Conditions | 3 |
| Paths | 3 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function passes($attribute, $value) |
||
|
3 ignored issues
–
show
|
|||
| 36 | { |
||
| 37 | $prev_declarations_of_skill = $this->existing_declarations->where('skill_id', $value); |
||
| 38 | |||
| 39 | return $prev_declarations_of_skill->isEmpty() || |
||
| 40 | ($this->skill_declaration_id != null |
||
| 41 | && $prev_declarations_of_skill->pluck('id')->contains($this->skill_declaration_id)); |
||
| 42 | } |
||
| 49 |