fix: noverify --fix
This commit is contained in:
parent
5aff28d2b8
commit
117640a755
44 changed files with 174 additions and 174 deletions
|
|
@ -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" => " "]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue