src/LdapTools/Utilities/TSProperty.php
protected function nibbleControl($nibble, $control)
    {
        // This control stays constant for the low/high nibbles, so it doesn't matter which we compare to
        if ($control == self::NIBBLE_CONTROL['X'][1]) {
            $dec = bindec($nibble);
            $dec += 9;
            $nibble = str_pad(decbin($dec), 4, '0', STR_PAD_LEFT);
        }

        return $nibble;
    }
protected function nibbleControl($nibble, $control)
    {
        // This control stays constant for the low/high nibbles, so it doesn't matter which we compare to
        if ($control == self::NIBBLE_CONTROL['X'][1]) {
            $dec = bindec($nibble);
            $dec += 9;
            $nibble = str_pad(decbin($dec), 4, '0', STR_PAD_LEFT);
        }

        return $nibble;
    }
protected function nibbleControl ( $ nibble , $ control ) { // This control stays constant for the low/high nibbles, so it doesn't matter which we compare to if ( $ control == self :: NIBBLE_CONTROL [ 'X' ] [ 1 ] ) { $ dec = bindec ( $ nibble ) ; $ dec += 9 ; $ nibble = str_pad ( decbin ( $ dec ) , 4 , '0' , STR_PAD_LEFT ) ; } return $ nibble ; }
Based on the control, adjust the nibble accordingly.

@param string $nibble
@param string $control
@return string
Based on the control adjust the nibble accordingly .