Code Duplication    Length = 11-11 lines in 2 locations

src/FlexiPeeHP/FlexiBeeRO.php 2 locations

@@ 1845-1855 (lines=11) @@
1842
     * @param string $evidence
1843
     * @return array Evidence info
1844
     */
1845
    public function getEvidenceInfo($evidence = null)
1846
    {
1847
        $evidencesInfo = null;
1848
        if (is_null($evidence)) {
1849
            $evidence = $this->getEvidence();
1850
        }
1851
        if (isset(EvidenceList::$evidences[$evidence])) {
1852
            $evidencesInfo = EvidenceList::$evidences[$evidence];
1853
        }
1854
        return $evidencesInfo;
1855
    }
1856
1857
    /**
1858
     * Obtain name for current (or given) evidence path
@@ 1863-1873 (lines=11) @@
1860
     * @param string $evidence Evidence Path
1861
     * @return array Evidence info
1862
     */
1863
    public function getEvidenceName($evidence = null)
1864
    {
1865
        $evidenceName = null;
1866
        if (is_null($evidence)) {
1867
            $evidence = $this->getEvidence();
1868
        }
1869
        if (isset(EvidenceList::$name[$evidence])) {
1870
            $evidenceName = EvidenceList::$name[$evidence];
1871
        }
1872
        return $evidenceName;
1873
    }
1874
1875
    /**
1876
     * Save current object to file