Code Duplication    Length = 12-12 lines in 2 locations

src/FlexiPeeHP/FlexiBeeRO.php 2 locations

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