From 8941f5f102301191954933a46e65eb67f2effd89 Mon Sep 17 00:00:00 2001 From: "origami11@yandex.ru" Date: Fri, 14 Jun 2024 14:15:01 +0300 Subject: [PATCH] fix: noverify --fix (repeat) --- src/Database.php | 2 +- src/View/View.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Database.php b/src/Database.php index 1f39d3d..3f61550 100644 --- a/src/Database.php +++ b/src/Database.php @@ -25,7 +25,7 @@ class Database extends PDO parent::__construct($dsn, $username, $password); $this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $this->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC); - $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [PDOStatement::class, array()]); + $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [PDOStatement::class, []]); } function prepare(string $sql, array $options = []): PDOStatement|false { diff --git a/src/View/View.php b/src/View/View.php index c8abbf2..141e541 100644 --- a/src/View/View.php +++ b/src/View/View.php @@ -183,8 +183,8 @@ class View extends \stdClass function loadImports($importFile) { $types = [ - 'js' => array($this, 'addScript'), - 'css' => array($this, 'addStyleSheet') + 'js' => [$this, 'addScript'], + 'css' => [$this, 'addStyleSheet'] ]; // Подключение стилей и скриптов if (file_exists($importFile)) {