From c0dc531ebefd8912819f3b6c8bda1fed3c7e750c Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Wed, 31 Jan 2024 06:11:00 +0300 Subject: make it simple, but not simpler --- engine/RequestHandler.php | 56 ----------------------------------------------- 1 file changed, 56 deletions(-) delete mode 100644 engine/RequestHandler.php (limited to 'engine/RequestHandler.php') diff --git a/engine/RequestHandler.php b/engine/RequestHandler.php deleted file mode 100644 index a9dfccd..0000000 --- a/engine/RequestHandler.php +++ /dev/null @@ -1,56 +0,0 @@ -routerInput[$name] ?? $_REQUEST[$name] ?? ''; - switch ($type) { - case InputType::INT: - $value = (int)$value; - break; - case InputType::FLOAT: - $value = (float)$value; - break; - case InputType::BOOL: - $value = (bool)$value; - break; - } - - $ret[] = $value; - } - return $ret; - } - - protected function isRetina(): bool { - return isset($_COOKIE['is_retina']) && $_COOKIE['is_retina']; - } -} -- cgit v1.2.3