diff --git a/admin/model/extension/currency/ecb.php b/admin/model/extension/currency/ecb.php index 908a22f..eaecc79 100644 --- a/admin/model/extension/currency/ecb.php +++ b/admin/model/extension/currency/ecb.php @@ -1,6 +1,6 @@ db->query("UPDATE `" . DB_PREFIX . "currency` SET `value` = '" . (float)$value . "', `date_modified` = NOW() WHERE `code` = '" . $this->db->escape((string)$code) . "'"); $this->cache->delete('currency'); diff --git a/system/engine/controller.php b/system/engine/controller.php index 69a94d2..b026c99 100644 --- a/system/engine/controller.php +++ b/system/engine/controller.php @@ -10,10 +10,10 @@ */ /** -* Controller class + * Controller class. * * @mixin Registry -*/ + */ abstract class Controller { protected $registry; diff --git a/system/engine/model.php b/system/engine/model.php index f01ed2c..4a8a6ba 100644 --- a/system/engine/model.php +++ b/system/engine/model.php @@ -10,10 +10,10 @@ */ /** -* Model class + * Model class. * * @mixin Registry -*/ + */ abstract class Model { protected $registry; diff --git a/system/engine/proxy.php b/system/engine/proxy.php index 8378677..b3e7e48 100644 --- a/system/engine/proxy.php +++ b/system/engine/proxy.php @@ -10,12 +10,12 @@ */ /** -* Proxy class + * Proxy class. * * @template TWraps of Model * * @mixin TWraps -*/ + */ class Proxy extends stdClass { /** * @param string $key diff --git a/system/engine/registry.php b/system/engine/registry.php index 12a94ee..9346635 100644 --- a/system/engine/registry.php +++ b/system/engine/registry.php @@ -10,7 +10,7 @@ */ /** -* Registry class + * Registry class. * * @property Cache $cache * @property Cart\Cart $cart @@ -35,12 +35,12 @@ * @property Session $session * @property ?Squareup $squareup * @property Url $url -*/ + */ final class Registry { private $data = array(); /** - * __get + * __get. * * https://www.php.net/manual/en/language.oop5.overloading.php#object.get * diff --git a/system/library/config.php b/system/library/config.php index 20ed6aa..1491ba9 100644 --- a/system/library/config.php +++ b/system/library/config.php @@ -26,7 +26,7 @@ public function get($key) { /** * @param string $key - * @param mixed $value + * @param mixed $value */ public function set($key, $value) { $this->data[$key] = $value; diff --git a/system/library/db/mysqli.php b/system/library/db/mysqli.php index 88e2a67..438e5ce 100644 --- a/system/library/db/mysqli.php +++ b/system/library/db/mysqli.php @@ -15,7 +15,7 @@ public function __construct($hostname, $username, $password, $database, $port = if (!$mysqli->connect_errno) { mysqli_report(MYSQLI_REPORT_ERROR); $this->connection = $mysqli; -// $this->connection->report_mode = MYSQLI_REPORT_ERROR; + // $this->connection->report_mode = MYSQLI_REPORT_ERROR; $this->connection->set_charset('utf8'); $this->connection->query("SET SESSION sql_mode = 'NO_ZERO_IN_DATE,NO_ENGINE_SUBSTITUTION'"); } else {