Skip to content

Commit

Permalink
fixed coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
andr11b committed Feb 1, 2024
1 parent b7b9fcf commit 8a9d699
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion admin/model/extension/currency/ecb.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
class ModelExtensionCurrencyEcb extends Model {

class ModelExtensionCurrencyEcb extends Model {
public function editValueByCode($code, $value) {
$this->db->query("UPDATE `" . DB_PREFIX . "currency` SET `value` = '" . (float)$value . "', `date_modified` = NOW() WHERE `code` = '" . $this->db->escape((string)$code) . "'");
$this->cache->delete('currency');
Expand Down
4 changes: 2 additions & 2 deletions system/engine/controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
*/

/**
* Controller class
* Controller class.
*
* @mixin Registry
*/
*/
abstract class Controller {
protected $registry;

Expand Down
4 changes: 2 additions & 2 deletions system/engine/model.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
*/

/**
* Model class
* Model class.
*
* @mixin Registry
*/
*/
abstract class Model {
protected $registry;

Expand Down
4 changes: 2 additions & 2 deletions system/engine/proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
*/

/**
* Proxy class
* Proxy class.
*
* @template TWraps of Model
*
* @mixin TWraps
*/
*/
class Proxy extends stdClass {
/**
* @param string $key
Expand Down
6 changes: 3 additions & 3 deletions system/engine/registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/

/**
* Registry class
* Registry class.
*
* @property Cache $cache
* @property Cart\Cart $cart
Expand All @@ -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
*
Expand Down
2 changes: 1 addition & 1 deletion system/library/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion system/library/db/mysqli.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8a9d699

Please sign in to comment.