Code Duplication    Length = 12-12 lines in 2 locations

src/FlexiPeeHP/FlexiBeeRO.php 2 locations

@@ 1417-1428 (lines=12) @@
1414
     * @param string $evidence
1415
     * @return array Evidence structure
1416
     */
1417
    public function getColumnsInfo($evidence = null)
1418
    {
1419
        $columnsInfo = null;
1420
        if (is_null($evidence)) {
1421
            $evidence = $this->getEvidence();
1422
        }
1423
        $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence));
1424
        if (isset(\FlexiPeeHP\Properties::$$propsName)) {
1425
            $columnsInfo = Properties::$$propsName;
1426
        }
1427
        return $columnsInfo;
1428
    }
1429
1430
    /**
1431
     * Obtain actions for current (or given) evidence
@@ 1436-1447 (lines=12) @@
1433
     * @param string $evidence
1434
     * @return array Evidence structure
1435
     */
1436
    public function getActionsInfo($evidence = null)
1437
    {
1438
        $actionsInfo = null;
1439
        if (is_null($evidence)) {
1440
            $evidence = $this->getEvidence();
1441
        }
1442
        $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence));
1443
        if (isset(\FlexiPeeHP\Actions::$$propsName)) {
1444
            $actionsInfo = Actions::$$propsName;
1445
        }
1446
        return $actionsInfo;
1447
    }
1448
1449
    /**
1450
     * Obtain relations for current (or given) evidence