Exakat\Tasks\Load::addNoDelimiterCall PHP Method

addNoDelimiterCall() private method

private addNoDelimiterCall ( $callId )
    private function addNoDelimiterCall($callId)
    {
        if (strpos($this->atoms[$callId]['noDelimiter'], '::') !== false) {
            $fullnspath = strtolower(substr($this->atoms[$callId]['noDelimiter'], 0, strpos($this->atoms[$callId]['noDelimiter'], '::')));
            if (strlen($fullnspath) === 0) {
                $fullnspath = '\\';
            } elseif ($fullnspath[0] !== '\\') {
                $fullnspath = '\\' . $fullnspath;
            }
            $types = array('class');
        } else {
            $types = array('function', 'class');
            $fullnspath = strtolower($this->atoms[$callId]['noDelimiter']);
            if (empty($fullnspath) || $fullnspath[0] !== '\\') {
                $fullnspath = '\\' . $fullnspath;
            }
        }
        $atom = 'String';
        foreach ($types as $type) {
            if (!isset($this->calls[$type][$fullnspath])) {
                $this->calls[$type][$fullnspath] = array('calls' => array(), 'definitions' => array());
            }
            if (!isset($this->calls[$type][$fullnspath]['calls'][$atom])) {
                $this->calls[$type][$fullnspath]['calls'][$atom] = array();
            }
            $this->calls[$type][$fullnspath]['calls'][$atom][] = $callId;
        }
    }
Load