Conditions | 5 |
Paths | 4 |
Total Lines | 17 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | public function passes($attribute, $value) |
||
31 | { |
||
32 | if ($this->typeId) { |
||
33 | $type = BlockedType::find($this->typeId); |
||
34 | |||
35 | if ($type->slug == 'email' || $type->slug == 'user') { |
||
36 | $check = $this->checkEmail($value); |
||
37 | |||
38 | if ($check) { |
||
39 | return $value; |
||
40 | } |
||
41 | |||
42 | return false; |
||
43 | } |
||
44 | } |
||
45 | |||
46 | return true; |
||
47 | } |
||
74 |