Code Duplication    Length = 12-12 lines in 2 locations

src/FlexiPeeHP/FlexiBeeRO.php 2 locations

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