Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Dec 9, 2023
1 parent a955b94 commit 77b9a93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Rules/Isbn.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public function passes($attribute, $value)
case 10:
return $this->shortChecksumMatches($value);

case 13:
return preg_match("/^(978|979)/", $value) && parent::checksumMatches($value); // isbn-13 is a subset of ean-13
case 13: // isbn-13 is a subset of ean-13
return preg_match("/^(978|979)/", $value) && parent::checksumMatches($value);
}

return false;
Expand Down

0 comments on commit 77b9a93

Please sign in to comment.