Executes the plugin.

@param string null $path

@return mixed
330380
public function handle($path = null)
    {
        $path = ltrim($path, '/');
        $cleanPrefix = rtrim($this->urlPrefix, '/');

        return sprintf('%s/%s', $cleanPrefix, $path);
    }
748794
protected function _prepareFilePath($path = null) {
		if (empty($path)) {
			return false;
		}

		if (DIRECTORY_SEPARATOR !== '\\') {
			return $path;
		}

		$path = str_replace('\\', '/', $path);

		return $path;
	}
1253676
public function load($path)
    {
        $key = $this->getCacheKey($path);

        if (isset($this->data[$key])) {
            return $this->data[$key];
        }

        return null;
    }
829548
public function loadFile($path) {
        $config = null;
        $mode = defined('INI_SCANNER_TYPED') ? INI_SCANNER_TYPED : INI_SCANNER_NORMAL;

        try {
            $config = parse_ini_file($path, true, $mode);
        } catch (Exception $ex) {}

        if ( ! is_array($config)) {
            throw new InvalidConfigFormatException(
                s('IniConfigDriver expects config at path %s to be a valid ini file.', $path)
            );
        }

        return $config;
    }
1229565
protected function parsePath(string $path = null): string
    {
        if ('' === $path || null === $path) {
            return '';
        }

        $path = ltrim($path, '/');

        $path = '*' === $path ? $path : '/' . $path;

        return decode($path);
    }
1361918
public function dbPath($path = null)
    {
        if (null === $path) {
            return $this->dbPath;
        }
        $this->dbPath = $path;

        return $this;
    }
1001764
protected function getParser($path = null)
    {
        $path = is_null($path) ?
            join(DIRECTORY_SEPARATOR, array('build', 'logs', 'clover.xml')) :
            $path;
        return new CloverParser($path);
    }
679548
protected function getImage( $path = null )
    {
        if ( is_null( $this->image ) )
        {
            if ( is_null( $path ) )
            {
                $this->image = Image::create(
                    $this->width,
                    $this->height
                );
            }
            else
            {
                $this->image = Image::open( $path );
            }
        }

        return $this->image;
    }
588043
public function loadFile($path) {
        $config = null;

        try {
            $config = require $path;
        } catch (Exception $ex) {}

        if ( ! is_array($config)) {
            throw new InvalidConfigFormatException(
                s('ArrayConfigDriver expects config at path %s to be of format array[key => value].', $path)
            );
        }

        return $config;
    }
501895
public function get($path)
    {
        $p = explode('.', $path);
        $cfg = &$this->config;
        $count = 1;

        foreach ($p as $part) {
            if (array_key_exists($part, $cfg)) {
                // see if it's the end
                if ($count == count($p)) {
                    echo 'end';
                    return $cfg[$part];
                }
                $cfg = &$cfg[$part];
            }
            $count++;
        }
        return null;
    }
732707
public function get($path, $default=null) {
		if(!$this->has($path))
			return $default;
		return ArrayUtils::get($_SESSION, $path);
	}
342525
public static function lookupByPath($path)
    {
        if (empty($path)) {
            throw new \InvalidArgumentException('Argument "path" cannot be empty');
        }

        foreach (self::$methods_config as $key => $val) {
            if ($val['path'] === $path) {
                return $val;
            }
        }

        return null;
    }
410790
public function run(String $cmd = NULL)
    {
        $this->createExecFileIfNotExists();

        $this->addJobToExecFile($cmd);
        
        return $this->executeCommand();
    }
551899
public function filesystem(string $path = null)
    {
        if (!$this->filesystem instanceof Filesystem) {
            $local = new Local($path);

            $this->filesystem = new Filesystem($local);
        }

        return $this->filesystem;
    }
1024322
public function parsePath(?string $path = null): ?string
    {
        if ($path === null) {
            return null;
        }
        $path = \str_replace('%DOCUMENT_ROOT%', $this->documentRoot, $path);
        $path = \str_replace(['\\', '/'], DIRECTORY_SEPARATOR, $path);
        return $path;
    }
463613
protected function loadFile($path)
    {
        $composerJson = $this->fileData($path);

        return (null === $composerJson) ? null : (array) \json_decode($composerJson, true);
    }
246732
function compile( $path = null  ){	
		
		// process as root script if path not passed
		$isroot = is_null($path);
		if( $isroot ){
			$path = $this->path;
			$this->incs = array();
			$this->dependencies = array();
		}
		
		// compile initial source for top-level file
		// 
		$this->inphp = false;
		$this->lasttoken = null;
		$src = $this->compile_php( $path, null, $isroot );

		// second pass to replace constants with literals if option set
		//
		if( $this->opt(COMPILER_OPTION_LITERALS)  ){
			$tokens = token_get_all( $src );
			$src = '';
			do {
				$tok = current( $tokens );
				$s = is_array($tok) ? $tok[1] : $tok;
				if( is_array($tok) && T_STRING === $tok[0] ){
					$c = $tok[1];
					if( isset($this->conf_consts[$c]) ){
						// replace current definition with target config value
						$s = var_export( $this->conf_consts[$c], 1 );
					}
					else if( defined($c) && $this->opt(COMPILER_OPTION_LITERALS_SYS) ){
						// WARNING: extension constants could differ on target environment
						$s = var_export( constant($c), 1 );
					}
				}
				$src .= $s;
			}
			while( next($tokens) !== false );
		}

		
		// bytecode compilation with bcompiler extension
		//
		if( $this->opt(COMPILER_OPTION_BYTECODE) ){
			// extension can only operate on files
			$srcpath = tempfile( $stdin, null );
			file_put_contents( $srcpath, $src );
			unset( $src );
			// run via shell due to conflict bugs in bcompiler
			PLUG::exec_bin( 'bcompile', array($srcpath), $src );
		}
		
		return $src;
	}