Code Duplication    Length = 12-12 lines in 2 locations

src/FlexiPeeHP/FlexiBeeRO.php 2 locations

@@ 1519-1530 (lines=12) @@
1516
     * @param string $evidence
1517
     * @return array Evidence structure
1518
     */
1519
    public function getColumnsInfo($evidence = null)
1520
    {
1521
        $columnsInfo = null;
1522
        if (is_null($evidence)) {
1523
            $evidence = $this->getEvidence();
1524
        }
1525
        $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence));
1526
        if (isset(\FlexiPeeHP\Properties::$$propsName)) {
1527
            $columnsInfo = Properties::$$propsName;
1528
        }
1529
        return $columnsInfo;
1530
    }
1531
1532
    /**
1533
     * Obtain actions for current (or given) evidence
@@ 1538-1549 (lines=12) @@
1535
     * @param string $evidence
1536
     * @return array Evidence structure
1537
     */
1538
    public function getActionsInfo($evidence = null)
1539
    {
1540
        $actionsInfo = null;
1541
        if (is_null($evidence)) {
1542
            $evidence = $this->getEvidence();
1543
        }
1544
        $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence));
1545
        if (isset(\FlexiPeeHP\Actions::$$propsName)) {
1546
            $actionsInfo = Actions::$$propsName;
1547
        }
1548
        return $actionsInfo;
1549
    }
1550
1551
    /**
1552
     * Obtain relations for current (or given) evidence