Code Duplication    Length = 8-8 lines in 2 locations

main/inc/lib/pear/HTML/QuickForm/checkbox.php 1 location

@@ 294-301 (lines=8) @@
291
   /**
292
    * Return true if the checkbox is checked, null if it is not checked (getValue() returns false)
293
    */
294
    function exportValue(&$submitValues, $assoc = false)
295
    {
296
        $value = $this->_findValue($submitValues);
297
        if (null === $value) {
298
            $value = $this->getChecked()? true: null;
299
        }
300
        return $this->_prepareValue($value, $assoc);
301
    }
302
}
303

main/inc/lib/pear/HTML/QuickForm/element.php 1 location

@@ 514-521 (lines=8) @@
511
    * @access public
512
    * @return mixed
513
    */
514
    function exportValue(&$submitValues, $assoc = false)
515
    {
516
        $value = $this->_findValue($submitValues);
517
        if (null === $value) {
518
            $value = $this->getValue();
519
        }
520
        return $this->_prepareValue($value, $assoc);
521
    }
522
523
    // }}}
524
    // {{{ _prepareValue()