| Total Complexity | 2 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class Isbn implements SanitizeRuleInterface |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Forces the value to an ISBN. |
||
| 9 | * |
||
| 10 | * @param object $subject The subject to be filtered. |
||
| 11 | * @param string $field The subject field name. |
||
| 12 | * |
||
| 13 | * @return bool True if the value was sanitized, false if not. |
||
| 14 | */ |
||
| 15 | 15 | public function __invoke($subject, string $field): bool |
|
| 27 |