GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 15-15 lines in 2 locations

symphony/lib/toolkit/class.field.php 2 locations

@@ 1747-1761 (lines=15) @@
1744
         * @param  integer $parent_field_id
1745
         * @return array
1746
         */
1747
        public function findRelatedEntries($entry_id, $parent_field_id)
1748
        {
1749
            try {
1750
                $ids = Symphony::Database()->fetchCol('entry_id', sprintf("
1751
                SELECT `entry_id`
1752
                FROM `tbl_entries_data_%d`
1753
                WHERE `relation_id` = %d
1754
                AND `entry_id` IS NOT NULL
1755
            ", $this->get('id'), $entry_id));
1756
            } catch (Exception $e) {
1757
                return array();
1758
            }
1759
1760
            return $ids;
1761
        }
1762
1763
        /**
1764
         * Find related entries for the current field. Default implementation uses
@@ 1773-1787 (lines=15) @@
1770
         * @param  integer $entry_id
1771
         * @return array
1772
         */
1773
        public function findParentRelatedEntries($field_id, $entry_id)
1774
        {
1775
            try {
1776
                $ids = Symphony::Database()->fetchCol('relation_id', sprintf("
1777
                SELECT `relation_id`
1778
                FROM `tbl_entries_data_%d`
1779
                WHERE `entry_id` = %d
1780
                AND `relation_id` IS NOT NULL
1781
            ", $field_id, $entry_id));
1782
            } catch (Exception $e) {
1783
                return array();
1784
            }
1785
1786
            return $ids;
1787
        }
1788
    }
1789