/** * @param string $account * @return bool */ public function isValid($account) { if (parent::isValid($account)) { return true; } $account = ltrim($account, '0') . '00'; return strlen($account) <= $this->normalizedSize && parent::isValid($account); }
public function isValid($account) { $account = ltrim($account, '0'); $length = strlen($account); if ($length < 6 || $length > 9) { return false; } if ($length == 9) { if ($account[0] == 9) { $account = substr($account, 1, 6); } else { $account = substr($account, 0, 6); } } return parent::isValid($account); }
public function isValid($account) { return ltrim($account, "0") != "" && strlen($account) < 9 || parent::isValid($account); }
public function isValid($account) { return strlen($account) !== 8 && parent::isValid($account); }