Ignore:
Timestamp:
Apr 6, 2020, 11:56:19 PM (4 years ago)
Author:
chronos
Message:
  • Modified: Do not use parenthesis around returned value.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/Form/Types/IPv6Address.php

    r873 r874  
    88  {
    99    $Output = $Item['Value'];
    10     return ($Output);
     10    return $Output;
    1111  }
    1212
     
    1414  {
    1515    $Output = '<input type="text" name="'.$Item['Name'].'" value="'.$Item['Value'].'"/>';
    16     return ($Output);
     16    return $Output;
    1717  }
    1818
    1919  function OnLoad($Item)
    2020  {
    21     return ($_POST[$Item['Name']]);
     21    return $_POST[$Item['Name']];
    2222  }
    2323
    2424  function Validate($Item)
    2525  {
    26     if ($Item['Null'] and ($Item['Value'] == '')) return (true);
    27     return (filter_var($Item['Value'], FILTER_VALIDATE_IP, array('flags' => FILTER_FLAG_IPV6)));
     26    if ($Item['Null'] and ($Item['Value'] == '')) return true;
     27    return filter_var($Item['Value'], FILTER_VALIDATE_IP, array('flags' => FILTER_FLAG_IPV6));
    2828  }
    2929
    3030  function GetValidationFormat()
    3131  {
    32     return ('xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx kde x je hexa hodnota 0..f');
     32    return 'xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx kde x je hexa hodnota 0..f';
    3333  }
    3434}
Note: See TracChangeset for help on using the changeset viewer.