Code Duplication    Length = 12-12 lines in 2 locations

src/FlexiPeeHP/FlexiBeeRO.php 2 locations

@@ 1433-1444 (lines=12) @@
1430
     * @param string $evidence
1431
     * @return array Evidence structure
1432
     */
1433
    public function getColumnsInfo($evidence = null)
1434
    {
1435
        $columnsInfo = null;
1436
        if (is_null($evidence)) {
1437
            $evidence = $this->getEvidence();
1438
        }
1439
        $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence));
1440
        if (isset(\FlexiPeeHP\Properties::$$propsName)) {
1441
            $columnsInfo = Properties::$$propsName;
1442
        }
1443
        return $columnsInfo;
1444
    }
1445
1446
    /**
1447
     * Obtain actions for current (or given) evidence
@@ 1452-1463 (lines=12) @@
1449
     * @param string $evidence
1450
     * @return array Evidence structure
1451
     */
1452
    public function getActionsInfo($evidence = null)
1453
    {
1454
        $actionsInfo = null;
1455
        if (is_null($evidence)) {
1456
            $evidence = $this->getEvidence();
1457
        }
1458
        $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence));
1459
        if (isset(\FlexiPeeHP\Actions::$$propsName)) {
1460
            $actionsInfo = Actions::$$propsName;
1461
        }
1462
        return $actionsInfo;
1463
    }
1464
1465
    /**
1466
     * Obtain relations for current (or given) evidence