Code Duplication    Length = 5-5 lines in 8 locations

htdocs/modules/publisher/class/item.php 8 locations

@@ 896-900 (lines=5) @@
893
            }
894
            $this->setVar('images', implode('|', $image_item_ids));
895
        }
896
        if (isset($_REQUEST['uid'])) {
897
            $this->setVar('uid', Request::getInt('uid'));
898
        } elseif ($this->isNew()) {
899
            $this->setVar('uid', $xoops->isUser() ? $xoops->user->getVar('uid') : 0);
900
        }
901
        if (isset($_REQUEST['author_alias'])) {
902
            $this->setVar('author_alias', Request::getString('author_alias'));
903
            if ($this->getVar('author_alias') != '') {
@@ 924-928 (lines=5) @@
921
        if (isset($_REQUEST['weight'])) {
922
            $this->setVar('weight', Request::getInt('weight'));
923
        }
924
        if (isset($_REQUEST['allowcomments'])) {
925
            $this->setVar('cancomment', Request::getInt('allowcomments'));
926
        } elseif ($this->isNew()) {
927
            $this->setVar('cancoment', $this->publisher->getConfig('submit_allowcomments'));
928
        }
929
        if (isset($_REQUEST['status'])) {
930
            $this->setVar('status', Request::getInt('status'));
931
        } elseif ($this->isNew()) {
@@ 929-933 (lines=5) @@
926
        } elseif ($this->isNew()) {
927
            $this->setVar('cancoment', $this->publisher->getConfig('submit_allowcomments'));
928
        }
929
        if (isset($_REQUEST['status'])) {
930
            $this->setVar('status', Request::getInt('status'));
931
        } elseif ($this->isNew()) {
932
            $this->setVar('status', $this->publisher->getConfig('submit_status'));
933
        }
934
        if (isset($_REQUEST['dohtml'])) {
935
            $this->setVar('dohtml', Request::getInt('dohtml'));
936
        } elseif ($this->isNew()) {
@@ 934-938 (lines=5) @@
931
        } elseif ($this->isNew()) {
932
            $this->setVar('status', $this->publisher->getConfig('submit_status'));
933
        }
934
        if (isset($_REQUEST['dohtml'])) {
935
            $this->setVar('dohtml', Request::getInt('dohtml'));
936
        } elseif ($this->isNew()) {
937
            $this->setVar('dohtml', $this->publisher->getConfig('submit_dohtml'));
938
        }
939
        if (isset($_REQUEST['dosmiley'])) {
940
            $this->setVar('dosmiley', Request::getInt('dosmiley'));
941
        } elseif ($this->isNew()) {
@@ 939-943 (lines=5) @@
936
        } elseif ($this->isNew()) {
937
            $this->setVar('dohtml', $this->publisher->getConfig('submit_dohtml'));
938
        }
939
        if (isset($_REQUEST['dosmiley'])) {
940
            $this->setVar('dosmiley', Request::getInt('dosmiley'));
941
        } elseif ($this->isNew()) {
942
            $this->setVar('dosmiley', $this->publisher->getConfig('submit_dosmiley'));
943
        }
944
        if (isset($_REQUEST['doxcode'])) {
945
            $this->setVar('doxcode', Request::getInt('doxcode'));
946
        } elseif ($this->isNew()) {
@@ 944-948 (lines=5) @@
941
        } elseif ($this->isNew()) {
942
            $this->setVar('dosmiley', $this->publisher->getConfig('submit_dosmiley'));
943
        }
944
        if (isset($_REQUEST['doxcode'])) {
945
            $this->setVar('doxcode', Request::getInt('doxcode'));
946
        } elseif ($this->isNew()) {
947
            $this->setVar('doxcode', $this->publisher->getConfig('submit_doxcode'));
948
        }
949
        if (isset($_REQUEST['doimage'])) {
950
            $this->setVar('doimage', Request::getInt('doimage'));
951
        } elseif ($this->isNew()) {
@@ 949-953 (lines=5) @@
946
        } elseif ($this->isNew()) {
947
            $this->setVar('doxcode', $this->publisher->getConfig('submit_doxcode'));
948
        }
949
        if (isset($_REQUEST['doimage'])) {
950
            $this->setVar('doimage', Request::getInt('doimage'));
951
        } elseif ($this->isNew()) {
952
            $this->setVar('doimage', $this->publisher->getConfig('submit_doimage'));
953
        }
954
        if (isset($_REQUEST['dolinebreak'])) {
955
            $this->setVar('dobr', Request::getInt('dolinebreak'));
956
        } elseif ($this->isNew()) {
@@ 954-958 (lines=5) @@
951
        } elseif ($this->isNew()) {
952
            $this->setVar('doimage', $this->publisher->getConfig('submit_doimage'));
953
        }
954
        if (isset($_REQUEST['dolinebreak'])) {
955
            $this->setVar('dobr', Request::getInt('dolinebreak'));
956
        } elseif ($this->isNew()) {
957
            $this->setVar('dobr', $this->publisher->getConfig('submit_dobr'));
958
        }
959
        if (isset($_REQUEST['notify'])) {
960
            $this->setVar('notifypub', Request::getInt('notify'));
961
        }