Code Duplication    Length = 5-5 lines in 7 locations

htdocs/themes/xbootstrap/modules/publisher/xoops_and_module_changes/modules/publisher/class/item.php 7 locations

@@ 1027-1031 (lines=5) @@
1024
        if (isset($_REQUEST['weight'])) {
1025
            $this->setVar('weight', PublisherRequest::getInt('weight'));
1026
        }
1027
        if (isset($_REQUEST['allowcomments'])) {
1028
            $this->setVar('cancomment', PublisherRequest::getInt('allowcomments'));
1029
        } elseif ($this->isNew()) {
1030
            $this->setVar('cancoment', $this->publisher->getConfig('submit_allowcomments'));
1031
        }
1032
        if (isset($_REQUEST['status'])) {
1033
            $this->setVar('status', PublisherRequest::getInt('status'));
1034
        } elseif ($this->isNew()) {
@@ 1032-1036 (lines=5) @@
1029
        } elseif ($this->isNew()) {
1030
            $this->setVar('cancoment', $this->publisher->getConfig('submit_allowcomments'));
1031
        }
1032
        if (isset($_REQUEST['status'])) {
1033
            $this->setVar('status', PublisherRequest::getInt('status'));
1034
        } elseif ($this->isNew()) {
1035
            $this->setVar('status', $this->publisher->getConfig('submit_status'));
1036
        }
1037
        if (isset($_REQUEST['dohtml'])) {
1038
            $this->setVar('dohtml', PublisherRequest::getInt('dohtml'));
1039
        } elseif ($this->isNew()) {
@@ 1037-1041 (lines=5) @@
1034
        } elseif ($this->isNew()) {
1035
            $this->setVar('status', $this->publisher->getConfig('submit_status'));
1036
        }
1037
        if (isset($_REQUEST['dohtml'])) {
1038
            $this->setVar('dohtml', PublisherRequest::getInt('dohtml'));
1039
        } elseif ($this->isNew()) {
1040
            $this->setVar('dohtml', $this->publisher->getConfig('submit_dohtml'));
1041
        }
1042
        if (isset($_REQUEST['dosmiley'])) {
1043
            $this->setVar('dosmiley', PublisherRequest::getInt('dosmiley'));
1044
        } elseif ($this->isNew()) {
@@ 1042-1046 (lines=5) @@
1039
        } elseif ($this->isNew()) {
1040
            $this->setVar('dohtml', $this->publisher->getConfig('submit_dohtml'));
1041
        }
1042
        if (isset($_REQUEST['dosmiley'])) {
1043
            $this->setVar('dosmiley', PublisherRequest::getInt('dosmiley'));
1044
        } elseif ($this->isNew()) {
1045
            $this->setVar('dosmiley', $this->publisher->getConfig('submit_dosmiley'));
1046
        }
1047
        if (isset($_REQUEST['doxcode'])) {
1048
            $this->setVar('doxcode', PublisherRequest::getInt('doxcode'));
1049
        } elseif ($this->isNew()) {
@@ 1047-1051 (lines=5) @@
1044
        } elseif ($this->isNew()) {
1045
            $this->setVar('dosmiley', $this->publisher->getConfig('submit_dosmiley'));
1046
        }
1047
        if (isset($_REQUEST['doxcode'])) {
1048
            $this->setVar('doxcode', PublisherRequest::getInt('doxcode'));
1049
        } elseif ($this->isNew()) {
1050
            $this->setVar('doxcode', $this->publisher->getConfig('submit_doxcode'));
1051
        }
1052
        if (isset($_REQUEST['doimage'])) {
1053
            $this->setVar('doimage', PublisherRequest::getInt('doimage'));
1054
        } elseif ($this->isNew()) {
@@ 1052-1056 (lines=5) @@
1049
        } elseif ($this->isNew()) {
1050
            $this->setVar('doxcode', $this->publisher->getConfig('submit_doxcode'));
1051
        }
1052
        if (isset($_REQUEST['doimage'])) {
1053
            $this->setVar('doimage', PublisherRequest::getInt('doimage'));
1054
        } elseif ($this->isNew()) {
1055
            $this->setVar('doimage', $this->publisher->getConfig('submit_doimage'));
1056
        }
1057
        if (isset($_REQUEST['dolinebreak'])) {
1058
            $this->setVar('dobr', PublisherRequest::getInt('dolinebreak'));
1059
        } elseif ($this->isNew()) {
@@ 1057-1061 (lines=5) @@
1054
        } elseif ($this->isNew()) {
1055
            $this->setVar('doimage', $this->publisher->getConfig('submit_doimage'));
1056
        }
1057
        if (isset($_REQUEST['dolinebreak'])) {
1058
            $this->setVar('dobr', PublisherRequest::getInt('dolinebreak'));
1059
        } elseif ($this->isNew()) {
1060
            $this->setVar('dobr', $this->publisher->getConfig('submit_dobr'));
1061
        }
1062
        if (isset($_REQUEST['notify'])) {
1063
            $this->setVar('notifypub', PublisherRequest::getInt('notify'));
1064
        }