Code Duplication    Length = 12-12 lines in 2 locations

src/FlexiPeeHP/FlexiBeeRO.php 2 locations

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