Code Duplication    Length = 3-3 lines in 3 locations

htdocs/lib2/rowEditor.class.php 3 locations

@@ 514-516 (lines=3) @@
511
     */
512
    public function setValue($sField, $sValue)
513
    {
514
        if ($this->bLoaded == false || ($this->bAddNew == false && $this->bExist == false)) {
515
            return false;
516
        }
517
518
        $sFormatedValue = $this->pFormatValue($this->fields[$sField]['type'], $sValue);
519
        if ($this->fields[$sField]['type'] == RE_TYPE_FLOAT) {
@@ 540-542 (lines=3) @@
537
     */
538
    public function save()
539
    {
540
        if ($this->bLoaded == false || ($this->bAddNew == false && $this->bExist == false)) {
541
            return false;
542
        }
543
544
        if ($this->bAddNew == true) {
545
            // INSERT
@@ 716-718 (lines=3) @@
713
     */
714
    public function saveField($field)
715
    {
716
        if ($this->bLoaded == false || $this->bExist == false || $this->bAddNew == true) {
717
            return false;
718
        }
719
720
        if ($this->fields[$field]['changed'] == false) {
721
            return true;