Code Duplication    Length = 12-12 lines in 2 locations

src/FlexiPeeHP/FlexiBeeRO.php 2 locations

@@ 1450-1461 (lines=12) @@
1447
     * @param string $evidence
1448
     * @return array Evidence structure
1449
     */
1450
    public function getColumnsInfo($evidence = null)
1451
    {
1452
        $columnsInfo = null;
1453
        if (is_null($evidence)) {
1454
            $evidence = $this->getEvidence();
1455
        }
1456
        $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence));
1457
        if (isset(\FlexiPeeHP\Properties::$$propsName)) {
1458
            $columnsInfo = Properties::$$propsName;
1459
        }
1460
        return $columnsInfo;
1461
    }
1462
1463
    /**
1464
     * Obtain actions for current (or given) evidence
@@ 1469-1480 (lines=12) @@
1466
     * @param string $evidence
1467
     * @return array Evidence structure
1468
     */
1469
    public function getActionsInfo($evidence = null)
1470
    {
1471
        $actionsInfo = null;
1472
        if (is_null($evidence)) {
1473
            $evidence = $this->getEvidence();
1474
        }
1475
        $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence));
1476
        if (isset(\FlexiPeeHP\Actions::$$propsName)) {
1477
            $actionsInfo = Actions::$$propsName;
1478
        }
1479
        return $actionsInfo;
1480
    }
1481
1482
    /**
1483
     * Obtain relations for current (or given) evidence