| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | public function passes($attribute, $value) |
||
| 26 | { |
||
| 27 | $passesRegex = preg_match('/' . self::PATTERN . '/', $value, $matches); |
||
| 28 | if (!$passesRegex) { |
||
| 29 | return false; |
||
| 30 | } |
||
| 31 | $classificationCode = strToUpper($matches[1]); |
||
| 32 | return Classification::where('key', $classificationCode)->exists(); |
||
| 33 | } |
||
| 45 |