Check get, post, and cookie for return

@param string $variable
@return mixed
963072
public function request($variable)
    {
        $order = ini_get('request_order');

        if (empty($order)) {
            $order = ini_get('variables_order');
        }

        $len = strlen($order);

        for ($i = 0; $i < $len; ++$i) {
            $character = strtoupper($order[$i]);

            if ($character == 'G') {
                if ($this->get($variable)) return $this->get($variable);
            } else if ($character == 'P') {
                if ($this->post($variable)) return $this->post($variable);
            } else if ($character == 'C') {
                if ($this->cookie($variable)) return $this->cookie($variable);
            }
        }

        return null;
    }
314921
public function getCookieValue($key)
    {
        return isset($this->cookies[$key]) ? $this->cookies[$key] : null;
    }
745276
public static function get(string $key)
    {
        if (isset($_COOKIE[$key]) === false) {
            return null;
        }

        $serializedValue = $_COOKIE[$key];
        $value = unserialize($serializedValue);

        return $value;
    }
602545
public static function getGetPostSession($variableName)
    {

        $value = null;

        if (isset($_SESSION[$variableName])) {
            $value = $_SESSION[$variableName];
        }

        $postGetValue = self::getGetPost($variableName);

        if ($postGetValue !== null) {
            $value                   = $postGetValue;
            $_SESSION[$variableName] = $value;
        }

        return $value;
    }
822976
public function post($var = null)
	{
		$this->id = 0;
		if (!empty($var)) {
			$routing = explode('/', $var);
			if (is_array($routing)) {
				$var = array_shift($routing);
				$this->id = empty($routing)
					? 0
					: array_shift($routing);
			} else {
				$var = $routing;
			}

			if ($this->checkAuth()) {
				// load action based off of naming conventions
				header('Content-Type: application/json');
				return $this->_autoaction($var, 'post');
			} else {
				return $this->getForbbiden($var);
			}
		} else {
			return $this->getNoop();
		}
	}
256685
public static function get(string $key): ?string
    {
        if (isset($_COOKIE) && array_key_exists($key, $_COOKIE)) {
            return Crypt::decrypt($_COOKIE[$key]);
        }

        return null;
    }
897480
public static function get(string $variable, $default = null) {
		return isset(self::$_get[$variable])
			? urldecode(self::$_get[$variable])
			: $default;
	}
250727
protected function getPhpConstant($variable, $constant)
    {
        return $this->computeServerVariable($variable, function () use ($variable, $constant) {
            $value = $this->bash->runRaw('php -r "echo '.$constant.';"');
            $this->localStorage->set($this->getVariablePath($variable), $value);

            return $value ?: constant($constant);
        });
    }
596557
public function unsetVariable($variable)
    {
        // Encrypt variable name?
        if (true === $this->hasEncryption()) {
            $variable = $this->encrypt($variable);
        }

        unset($_SESSION[$variable]);

        return (false === $this->issetVariable($variable));
    }
571829
public function get($key)
    {
        Assertion::string($key);

        if (!\array_key_exists($key, $this->cookies)) {
            return;
        }

        return $this->cookies[$key];
    }
422483
protected function evalVarLabel($variable)
    {
        $type = $this->getType($variable);
        switch ($type) {
            case 'object':
                return $this->evalObjLabel($variable);

            case 'array':
                return $type . '('.count($variable).')';

            default:
                return $type;
        }
    }
527409
protected function evalVarDump($variable)
    {
        $dumper = new HtmlDumper;
        $cloner = new VarCloner;

        $output = '<div style="display:none">';
        $output .= $dumper->dump($cloner->cloneVar($variable), true);
        $output .= '</div>';

        return $output;
    }
356199
public static function pull($key)
    {
        if (isset($_COOKIE[self::$prefix . $key])) {
            setcookie(self::$prefix . $key, '', time() - 3600, '/');

            return $_COOKIE[self::$prefix . $key];
        }

        return false;
    }
638226
public function get($key, $default = null, $includeCookies = true)
    {
        if ($includeCookies) {
            if ($this !== $result = $this->cookies->get($key, $this)) {
                return $result;
            }
        }

        return parent::get($key, $default);
    }
789244
private function checkOperand($variable, $param)
    {
        if ($param == 'NULL' && strpos($variable, '!=') !== false) {
            return 'IS NOT';
        }
        if (strpos($variable, '!==') !== false) {
            return '!==';
        }
        if (strpos($variable, '!=') !== false) {
            return '!=';
        }
        if (strpos($variable, '>=') !== false) {
            return '>=';
        }
        if (strpos($variable, '<=') !== false) {
            return '<=';
        }
        if (strpos($variable, '>') !== false) {
            return '>';
        }
        if (strpos($variable, '<') !== false) {
            return '<';
        }
        if (strpos(strtolower($variable), ' not like') !== false) {
            return 'NOT LIKE';
        }
        if (strpos(strtolower($variable), ' like') !== false) {
            return 'LIKE';
        }
        if (strpos(strtolower($variable), ' not in') !== false) {
            return 'NOT IN';
        }
        if (strpos(strtolower($variable), ' in') !== false) {
            return 'IN';
        }
        if ($param === 'NULL') {
            return 'IS';
        }
        return '=';
    }
456596
public function get($cookie)
    {
        if (!$this->has($cookie)) {
            if ($this->getRequest()) {
                return $this->getRequest()->getCookie($cookie);
            }
            
            return null;
        }
        
        return $this->_cookies[$cookie]['value'];
    }
1174700
public static function post(string $variable, $default = null) {
		return isset(self::$_post[$variable])
			? self::$_post[$variable]
			: $default;
	}