Code Duplication    Length = 8-8 lines in 2 locations

htdocs/modules/publisher/admin/item.php 2 locations

@@ 89-96 (lines=8) @@
86
        $error_msg = '';
87
        $redirect_msg = '';
88
        switch ($new_status) {
89
            case _PUBLISHER_STATUS_SUBMITTED:
90
                if (($old_status == _PUBLISHER_STATUS_NOTSET)) {
91
                    $error_msg = _AM_PUBLISHER_ITEMNOTUPDATED;
92
                } else {
93
                    $error_msg = _AM_PUBLISHER_ITEMNOTCREATED;
94
                }
95
                $redirect_msg = _AM_PUBLISHER_ITEM_RECEIVED_NEED_APPROVAL;
96
                break;
97
98
            case _PUBLISHER_STATUS_PUBLISHED:
99
                if (($old_status == _PUBLISHER_STATUS_NOTSET) || ($old_status == _PUBLISHER_STATUS_SUBMITTED)) {
@@ 117-124 (lines=8) @@
114
                $error_msg = _AM_PUBLISHER_ITEMNOTUPDATED;
115
                break;
116
117
            case _PUBLISHER_STATUS_REJECTED:
118
                if ($old_status == _PUBLISHER_STATUS_NOTSET) {
119
                    $error_msg = _AM_PUBLISHER_ITEMNOTUPDATED;
120
                } else {
121
                    $error_msg = _AM_PUBLISHER_ITEMNOTCREATED;
122
                }
123
                $redirect_msg = _AM_PUBLISHER_ITEM_REJECTED;
124
                break;
125
        }
126
        $itemObj->setVar('status', $new_status);
127