src/FlexiPeeHP/FlexiBeeRW.php
public function extractResultIDs($resultInfo)
    {
        $candidates = [];
        foreach ($resultInfo as $insertResult) {
            $newID = $insertResult['id'];
            if (array_key_exists('request-id', $insertResult)) {
                $extid = $insertResult['request-id'];
            } else {
                $extid = null;
            }
            $evidence                      = explode('/', $insertResult['ref'])[3];
            $candidates[$evidence][$extid] = $newID;
        }
        return $candidates;
    }
public function extractResultIDs($resultInfo)
    {
        $candidates = [];
        foreach ($resultInfo as $insertResult) {
            $newID = $insertResult['id'];
            if (array_key_exists('request-id', $insertResult)) {
                $extid = $insertResult['request-id'];
            } else {
                $extid = null;
            }
            $evidence                      = explode('/', $insertResult['ref'])[3];
            $candidates[$evidence][$extid] = $newID;
        }
        return $candidates;
    }
public function extractResultIDs ( $ resultInfo ) { $ candidates = [ ] ; foreach ( $ resultInfo as $ insertResult ) { $ newID = $ insertResult [ 'id' ] ; if ( array_key_exists ( 'request-id' , $ insertResult ) ) { $ extid = $ insertResult [ 'request-id' ] ; } else { $ extid = null ; } $ evidence = explode ( '/' , $ insertResult [ 'ref' ] ) [ 3 ] ; $ candidates [ $ evidence ] [ $ extid ] = $ newID ; } return $ candidates ; }
Extract IDs from FlexiBee response Array

@param array $resultInfo FlexiBee response

@return array List of [ 'evidence1'=>[ 'original-id'=>numericID,'original-id2'=>numericID2 ], 'evidence2'=> ... ]
Extract IDs from FlexiBee response Array