fix: noverify --fix

This commit is contained in:
origami11@yandex.ru 2024-06-14 14:12:02 +03:00
parent 5aff28d2b8
commit 117640a755
44 changed files with 174 additions and 174 deletions

View file

@ -25,7 +25,7 @@ class Document {
function setStyle ($name, array $values, $type = 'Interior')
{
if(!isset($this->styles[$name])) {
$this->styles[$name] = array();
$this->styles[$name] = [];
}
$this->styles[$name][$type] = $values;
}
@ -70,7 +70,7 @@ class Document {
function clean ($s) {
assert(is_string($s));
return strtr($s, array ("\n" => "
"));
return strtr($s, ["\n" => "
"]);
}
/**

View file

@ -142,7 +142,7 @@ class Table
/**
* Добавляет строку к таблице
*/
function addRow($index = 1, array $data = array(""))
function addRow($index = 1, array $data = [""])
{
assert(is_numeric($index) && $index > 0);
$offset = $this->getRows() + 1;
@ -196,7 +196,7 @@ class Table
* @return int
*/
function getColumns() {
return max(array_map(array($this, 'getRowCells'), $this->rows));
return max(array_map([$this, 'getRowCells'], $this->rows));
}
function encode($s)