Code Duplication    Length = 12-12 lines in 2 locations

src/FlexiPeeHP/FlexiBeeRO.php 2 locations

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