Get the absolute url to the base css

@deprecated use theme\ThemeService instead
@param string $target
@return string
513978
public function getBaseStylesheet($target){
        $base = $this->getResolvedBase($target);
        if(is_string($base)){
            return $base;
        }else if(is_array($base) && isset($base['css'])){
            return $base['css'];
        }
        return null;
    }
132890
protected function filterTarget(string $target = null)
    {
        if (null === $target || '' === $target) {
            return null;
        }

        if ('/' === $target[0]) {
            return new BasicUri($target);
        }

        if (preg_match('/^https?:\/\//i', $target)) { // absolute-form
            return new BasicUri($target);
        }

        if (strrpos($target, ':', -1)) {
            return new BasicUri($target);
        }

        return new BasicUri('//' . $target);
    }
1110691
protected function _parseExtensionDef($target)
    {
        $paths = array();
        if (!empty($target['paths'])) {
            $paths = array_map(array($this, '_replacePathConstants'), (array)$target['paths']);
        }
        $target['paths'] = $paths;
        if (!empty($target['cachePath'])) {
            $path = $this->_replacePathConstants($target['cachePath']);
            $target['cachePath'] = rtrim($path, '/') . '/';
        }
        return $target;
    }
1029237
public function buildFileName(AssetTarget $target)
    {
        $file = $target->name();
        if ($target->isThemed() && $this->theme) {
            $file = $this->theme . '-' . $file;
        }
        return $file;
    }
876698
public function getCommand($origin, $target)
    {
        $command = new Command($this->executable);

        if ($this->skipNewerFiles) {
            $command->addOption("u");
        }

        if ($this->followSymLinks) {
            $command->addOption("L");
        }

        if ($this->dryRun) {
            $command->addOption("n");
        }

        if ($this->verbose) {
            $command->addOption("v");
        }

        if ($this->compression) {
            $command->addOption("z");
        }

        // add any optional options we've specified
        $extra_options = $this->getOptionalParameters();
        if (!empty($extra_options)) {
            // if the extra options were given as a flat string, then convert it to an array
            if (is_string($extra_options)) {
                $extra_options = str_split($extra_options);
            }

            // add each extra option we've defined.
            if (is_array($extra_options)) {
                foreach ($extra_options as $option) {
                    $command->addOption($option);
                }
            }
        }

        if ($this->times) {
            $command->addArgument('times');
        }

        if ($this->deleteFromTarget) {
            $command->addArgument('delete');
        }

        if ($this->removeSource) {
            $command->addArgument('remove-source-files');
        }

        if ($this->deleteExcluded) {
            $command->addArgument('delete-excluded');
        }

        if ($this->info) {
            $command->addArgument('info', $this->info);
        }

        if ($this->compareDest) {
            $command->addArgument('compare-dest', $this->compareDest);
        }

        if (!empty($this->exclude)) {
            foreach ($this->exclude as $excluded) {
                $command->addArgument('exclude', $excluded);
            }
        }

        if (!empty($this->excludeFrom)) {
            $command->addArgument('exclude-from', $this->excludeFrom);
        }

        if ($this->archive) {
            $command->addOption("a");
        }

        if (!$this->archive && $this->recursive) {
            $command->addOption("r");
        }

        if ($this->pruneEmptyDirs) {
            $command->addArgument('prune-empty-dirs');
        }

        if (!is_null($this->ssh)) {
            $ssh = $this->ssh->getConnectionOptions();
            $command->addArgument("rsh", $ssh);
        }

        if (is_null($this->ssh)) {
            $command->addParameter($origin);
            $command->addParameter($target);
        } elseif ($this->remoteOrigin) {
            $command->addParameter($this->ssh->getHostConnection().":".$origin);
            $command->addParameter($target);
        } else {
            $command->addParameter($origin);
            $command->addParameter($this->ssh->getHostConnection().":".$target);
        }

        return $command;
    }
1209212
private function getResourceName($url, $target)
    {
        switch ($target) {
            case 'index':
                return [$url, $url.'/index'];
                break;

            case 'show':
                return [$url.'/show/{param}'];
                break;

            case 'add':
                return [$url.'/add'];
                break;

            case 'insert':
                return [$url.'/insert'];
                break;

            case 'edit':
                return [$url.'/edit/{param}'];
                break;

            case 'update':
                return [$url.'/update', $url.'/update/{param}'];
                break;

            case 'update':
                return [$url.'/delete/{param}'];
                break;
        }
    }
1341198
public function getAbsoluteUrl(): string
    {
        if (!$this->absoluteUrl) {
            // Guessing we're a http endpoint.
            $this->absoluteUrl = 'http://'.
                ($this->getHeader('Host') ?? 'localhost').
                $this->getUrl();
        }

        return $this->absoluteUrl;
    }
55431
protected function findTargetFilename($target)
    {
        //If the file already exists, adds a numeric suffix
        if (file_exists($target)) {
            $dirname = dirname($target) . DS;
            $filename = pathinfo($target, PATHINFO_FILENAME);
            $extension = pathinfo($target, PATHINFO_EXTENSION);

            //Initial tmp name
            $tmp = $dirname . $filename;

            for ($i = 1;; $i++) {
                $target = $tmp . '_' . $i;

                if ($extension) {
                    $target .= '.' . $extension;
                }

                if (!file_exists($target)) {
                    break;
                }
            }
        }

        return $target;
    }
1011260
public function getTarget($nb_site_target)
    {
        $nb_site_target_id = nb_getMixedValue($nb_site_target, 'nb_site_target_id');

        return (is_numeric($nb_site_target_id) || nb_isValidGUID($nb_site_target_id))
               ? $this->nb_site_target_list->getItem($nb_site_target_id)->setSite($this)
               : null
        ;
    }
875284
public function html(string $target)
    {
        $html = new Html\Facade();
        $html->process($this->coverage, $target);
    }
505323
protected function normalizeTargetDir($target)
    {
        $target = rtrim(Yii::getAlias($target), '\\/');
        if (file_exists($target)) {
            if (is_dir($target) && !$this->confirm('TargetDirectory already exists. Overwrite?', true)) {
                $this->stderr('User aborted.' . PHP_EOL);

                return false;
            }
            if (is_file($target)) {
                $this->stderr("Error: Target directory \"$target\" is a file!" . PHP_EOL);

                return false;
            }
        } else {
            mkdir($target, 0777, true);
        }

        return $target;
    }
430402
public function getThemeResourceUrl(string $resource, Theme $theme = null) : string
    {
        return $this->createPath($this->getThemeBaseUrl($theme), $resource);
    }
1159175
public function getAnyPartFlag($target = null) {
		$anyPart = false;
		if (empty($target)) {
			$anyPart = $this->_modelConfigSearchInfo->getFlagDefaultSearchAnyPart();
		} elseif (is_array($target) && in_array(CAKE_SEARCH_INFO_TARGET_FIELD_ANY_PART, $target)) {
			$anyPart = true;
		}

		return $anyPart;
	}
1348633
static public function parseTarget($target)
  {
    $target_name = 'drush';
    $target_data = $target;
    if (strpos($target, ':') !== FALSE) {
      list($target_name, $target_data) = explode(':', $target, 2);
    }
    return [$target_name, $target_data];
  }
813309
public function setTarget($target) {
        if (strpos($target, '%s') === false) {
            throw new \InvalidArgumentException('Searchable target url should contain \'%s\'.');
        }
        $this->target = $target;
        return $this;
    }
187260
public function variantUrlsForTarget(TargetInterface $target, array $variants = [])
    {
        $urls = [
            static::ORIGINAL => $this->storage->url($target->original()),
        ];

        if (in_array(static::ORIGINAL, $variants)) {
            $variants = array_diff($variants, [ static::ORIGINAL ]);
        }

        foreach ($variants as $variant) {
            $urls[ $variant ] = $this->storage->url($target->variant($variant));
        }

        return $urls;
    }
187411
protected String getResourceSuffix(String target) {
        int index = target.lastIndexOf('/');
        if ( index > -1 ) {
            target = target.substring(index + 1);
        }
        return target;
    }