Code Duplication    Length = 12-12 lines in 2 locations

src/FlexiPeeHP/FlexiBeeRO.php 2 locations

@@ 1401-1412 (lines=12) @@
1398
     * @param string $evidence
1399
     * @return array Evidence structure
1400
     */
1401
    public function getColumnsInfo($evidence = null)
1402
    {
1403
        $columnsInfo = null;
1404
        if (is_null($evidence)) {
1405
            $evidence = $this->getEvidence();
1406
        }
1407
        $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence));
1408
        if (isset(\FlexiPeeHP\Properties::$$propsName)) {
1409
            $columnsInfo = Properties::$$propsName;
1410
        }
1411
        return $columnsInfo;
1412
    }
1413
1414
    /**
1415
     * Obtain actions for current (or given) evidence
@@ 1420-1431 (lines=12) @@
1417
     * @param string $evidence
1418
     * @return array Evidence structure
1419
     */
1420
    public function getActionsInfo($evidence = null)
1421
    {
1422
        $actionsInfo = null;
1423
        if (is_null($evidence)) {
1424
            $evidence = $this->getEvidence();
1425
        }
1426
        $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence));
1427
        if (isset(\FlexiPeeHP\Actions::$$propsName)) {
1428
            $actionsInfo = Actions::$$propsName;
1429
        }
1430
        return $actionsInfo;
1431
    }
1432
1433
    /**
1434
     * Obtain relations for current (or given) evidence