Exakat\Tasks\Load::fallbackToGlobal PHP Method

fallbackToGlobal() private method

private fallbackToGlobal ( $type )
    private function fallbackToGlobal($type)
    {
        foreach ($this->calls[$type] as $fnp => &$usage) {
            if (substr_count($fnp, '\\') < 2) {
                continue;
            }
            if (!empty($usage['definitions'])) {
                continue;
            }
            $foo = explode('\\', $fnp);
            $globalFnp = '\\' . array_pop($foo);
            if (!isset($this->calls[$type][$globalFnp])) {
                continue;
            }
            if (empty($this->calls[$type][$globalFnp]['definitions'])) {
                continue;
            }
            $usage['definitions'] = $this->calls[$type][$globalFnp]['definitions'];
        }
    }
Load