public static function normalizePrefetchLookup($lookups, $prefix = null): array
    {
        $results = [];
        foreach ($lookups as $lookup) {
            if (!$lookup instanceof Prefetch) {
                $lookup = new Prefetch($lookup);
            }
            if ($prefix) {
                $lookup->addPrefix($prefix);
            }
            $results[] = $lookup;
        }

        return $results;
    }
public static function normalizePrefetchLookup($lookups, $prefix = null): array
    {
        $results = [];
        foreach ($lookups as $lookup) {
            if (!$lookup instanceof Prefetch) {
                $lookup = new Prefetch($lookup);
            }
            if ($prefix) {
                $lookup->addPrefix($prefix);
            }
            $results[] = $lookup;
        }

        return $results;
    }
public static function normalizePrefetchLookup ( $ lookups , $ prefix = null ) : array { $ results = [ ] ; foreach ( $ lookups as $ lookup ) { if ( ! $ lookup instanceof Prefetch ) { $ lookup = new Prefetch ( $ lookup ) ; } if ( $ prefix ) { $ lookup -> addPrefix ( $ prefix ) ; } $ results [ ] = $ lookup ; } return $ results ; }
Ensures all prefetch looks are of the same form i.e. instance of Prefetch.

@since  1.1.0

@author Eddilbert Macharia (http://eddmash.com) <edd.cowan@gmail.com>

@param      $lookups
@param null $prefix

@return Prefetch[]
Ensures all prefetch looks are of the same form i . e . instance of Prefetch .