Reset the internal state of this optimizer

@param  string $php PHP source
@return void
426668
protected function reset($php)
	{
		$this->tokens  = token_get_all('<?php ' . $php);
		$this->i       = 0;
		$this->cnt     = count($this->tokens);
		$this->changed = false;
	}
284623
public static function reset()
    {
        unset(static::$_dependencies[static::class]);
        static::conventions(null);
        static::connection(null);
        static::definition(null);
        static::validator(null);
        static::query([]);
        unset(static::$_unicities[static::class]);
        unset(static::$_definitions[static::class]);
        unset(static::$_shards[static::class]);
    }
1239337
public function reset()
    {
        $this->values[self::SESSIONVERSION] = null;
        $this->values[self::LOCALIDENTITYPUBLIC] = null;
        $this->values[self::REMOTEIDENTITYPUBLIC] = null;
        $this->values[self::ROOTKEY] = null;
        $this->values[self::PREVIOUSCOUNTER] = null;
        $this->values[self::SENDERCHAIN] = null;
        $this->values[self::RECEIVERCHAINS] = [];
        $this->values[self::PENDINGKEYEXCHANGE] = null;
        $this->values[self::PENDINGPREKEY] = null;
        $this->values[self::REMOTEREGISTRATIONID] = null;
        $this->values[self::LOCALREGISTRATIONID] = null;
        $this->values[self::NEEDSREFRESH] = null;
        $this->values[self::ALICEBASEKEY] = null;
    }
238824
private function reset(): void
    {
        $this->label = null;
        $this->style = null;
        $this->large = false;
        $this->small = false;
        $this->extra_small = false;
        $this->block = false;
        $this->active = false;
        $this->link = null;
        $this->disabled = false;
        $this->mode = 'link';
        $this->input_type = null;
        $this->custom_classes = [];
    }
52933
public function reset()
    {
        $this->_position     = 0;
        $this->_bytePosition = 0;

        // convert input into UTF-8
        if (strcasecmp($this->_encoding, 'utf8') != 0  
            && strcasecmp($this->_encoding, 'utf-8') != 0 
        ) {
                $this->_input = iconv($this->_encoding, 'UTF-8', $this->_input);
                $this->_encoding = 'UTF-8';
        }
    }
1066297
public function clear($key)
    {
        if (isset($_SESSION[$this->prefix . $key])) {
            unset($_SESSION[$this->prefix . $key]);
        }
    }
119712
public static function reset() {
		if (empty(self::$_initialState)) {
			self::$_initialState = get_class_vars('Inflector');
			return;
		}
		foreach (self::$_initialState as $key => $val) {
			if ($key != '_initialState') {
				self::${$key} = $val;
			}
		}
	}
1187295
private function reset(): void
    {
        $this->label = null;
        $this->pill = false;
        $this->uri = null;
    }
1126685
private function reset(): void
    {
        $this->values = [];
        $this->bg_colors = [];
        $this->striped = false;
        $this->animate = false;
        $this->height = null;
    }
791234
public function reset(array $keys)
    {
        foreach ($keys as $key) {
            $this->getSettingOrFail($key);
        }

        $this->backend->removeSettings($keys);
    }
47923
function reset() {
    $this->_position["x"] = null;
    $this->_position["y"] = null;
    
    $this->_containing_block["x"] = null;
    $this->_containing_block["y"] = null;
    $this->_containing_block["w"] = null;
    $this->_containing_block["h"] = null;

    $this->_style = null;
    unset($this->_style);
    $this->_style = clone $this->_original_style;
  }
1101056
public function set($string)
    {
        $this->clear();

        fwrite($this->stream, $string);
        rewind($this->stream);
    }
1269613
public function resetModified($col = null)
    {
        if (null !== $col) {
            if (isset($this->modifiedColumns[$col])) {
                unset($this->modifiedColumns[$col]);
            }
        } else {
            $this->modifiedColumns = array();
        }
    }
122922
public static function reset($reference = null)
    {
        if ($reference === null) {
            static::$_registered = [];
            Suite::reset();
            return;
        }
        unset(static::$_registered[Suite::hash($reference)]);
    }
496545
public static function reset()
    {
        self::$apiKey = null;
        self::$isTest = false;
        self::$throwExceptions = false;
    }
1310907
public function cacheReset($key = null) {
        if (is_null($key)) {
            $this->_cache = array();
        } else {
            unset($this->_cache[$key]);
        }
    }
575181
public function optimize($php)
	{
		$this->reset($php);
		$this->optimizeTokens();

		// Rebuild the source if it has changed
		if ($this->changed)
		{
			$php = $this->serialize();
		}

		// Free the memory taken up by the tokens
		unset($this->tokens);

		return $php;
	}