Code Duplication    Length = 12-12 lines in 2 locations

src/FlexiPeeHP/FlexiBeeRO.php 2 locations

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