Code Duplication    Length = 12-12 lines in 2 locations

src/FlexiPeeHP/FlexiBeeRO.php 2 locations

@@ 1484-1495 (lines=12) @@
1481
     * @param string $evidence
1482
     * @return array Evidence structure
1483
     */
1484
    public function getColumnsInfo($evidence = null)
1485
    {
1486
        $columnsInfo = null;
1487
        if (is_null($evidence)) {
1488
            $evidence = $this->getEvidence();
1489
        }
1490
        $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence));
1491
        if (isset(\FlexiPeeHP\Properties::$$propsName)) {
1492
            $columnsInfo = Properties::$$propsName;
1493
        }
1494
        return $columnsInfo;
1495
    }
1496
1497
    /**
1498
     * Obtain actions for current (or given) evidence
@@ 1503-1514 (lines=12) @@
1500
     * @param string $evidence
1501
     * @return array Evidence structure
1502
     */
1503
    public function getActionsInfo($evidence = null)
1504
    {
1505
        $actionsInfo = null;
1506
        if (is_null($evidence)) {
1507
            $evidence = $this->getEvidence();
1508
        }
1509
        $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence));
1510
        if (isset(\FlexiPeeHP\Actions::$$propsName)) {
1511
            $actionsInfo = Actions::$$propsName;
1512
        }
1513
        return $actionsInfo;
1514
    }
1515
1516
    /**
1517
     * Obtain relations for current (or given) evidence