Commit c882a3bf authored by Gaurav Mathur's avatar Gaurav Mathur Committed by Deepak Bhati
Browse files

Issue #3319256 by ankitv18, gaurav-mathur: Return statement of isAadharValid...

Issue #3319256 by ankitv18, gaurav-mathur: Return statement of isAadharValid method should be improved
parent 56c01266
Loading
Loading
Loading
Loading
+2 −1
Changes for src/Plugin/Field/FieldWidget/AadhaarNumberWidget.php: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -74,7 +74,8 @@ class AadhaarNumberWidget extends WidgetBase {
    settype($num, "string");
    $expectedDigit = substr($num, -1);
    $actualDigit = self::checkAadhaarDigit(substr($num, 0, -1));
    return ($expectedDigit == $actualDigit) ? $expectedDigit == $actualDigit : 0;

    return ($expectedDigit == $actualDigit) ?? 0;
  }

  /**