Code Duplication    Length = 7-7 lines in 2 locations

manager/includes/src/Core.php 2 locations

@@ 1336-1342 (lines=7) @@
1333
            $where
1334
        );
1335
        $this->getDatabase()->update($field, $this->getDatabase()->getFullTableName('site_content'), $where);
1336
        if ($this->getDatabase()->getRecordCount($result_pub) >= 1) { //Event unPublished doc
1337
            while ($row_pub = $this->getDatabase()->getRow($result_pub)) {
1338
                $this->invokeEvent("OnDocUnPublished", array(
1339
                    "docid" => $row_pub['id']
1340
                ));
1341
            }
1342
        }
1343
1344
        // now, check for documents that need un-publishing
1345
        $field = array('published' => 0, 'publishedon' => 0);
@@ 1353-1359 (lines=7) @@
1350
            $where
1351
        );
1352
        $this->getDatabase()->update($field, $this->getDatabase()->getFullTableName('site_content'), $where);
1353
        if ($this->getDatabase()->getRecordCount($result_unpub) >= 1) { //Event unPublished doc
1354
            while ($row_unpub = $this->getDatabase()->getRow($result_unpub)) {
1355
                $this->invokeEvent("OnDocUnPublished", array(
1356
                    "docid" => $row_unpub['id']
1357
                ));
1358
            }
1359
        }
1360
1361
        $this->recentUpdate = $timeNow;
1362