Code Duplication    Length = 12-12 lines in 2 locations

src/FlexiPeeHP/FlexiBeeRO.php 2 locations

@@ 1333-1344 (lines=12) @@
1330
     * @param string $evidence
1331
     * @return array Evidence structure
1332
     */
1333
    public function getColumnsInfo($evidence = null)
1334
    {
1335
        $columnsInfo = null;
1336
        if (is_null($evidence)) {
1337
            $evidence = $this->getEvidence();
1338
        }
1339
        $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence));
1340
        if (isset(\FlexiPeeHP\Properties::$$propsName)) {
1341
            $columnsInfo = Properties::$$propsName;
1342
        }
1343
        return $columnsInfo;
1344
    }
1345
1346
    /**
1347
     * Obtain actions for current (or given) evidence
@@ 1352-1363 (lines=12) @@
1349
     * @param string $evidence
1350
     * @return array Evidence structure
1351
     */
1352
    public function getActionsInfo($evidence = null)
1353
    {
1354
        $actionsInfo = null;
1355
        if (is_null($evidence)) {
1356
            $evidence = $this->getEvidence();
1357
        }
1358
        $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence));
1359
        if (isset(\FlexiPeeHP\Actions::$$propsName)) {
1360
            $actionsInfo = Actions::$$propsName;
1361
        }
1362
        return $actionsInfo;
1363
    }
1364
1365
    /**
1366
     * Obtain relations for current (or given) evidence