fix: phpstan level=5

This commit is contained in:
origami11@yandex.ru 2024-01-24 17:13:38 +03:00
parent 1638d558c5
commit 2947e4aac3
8 changed files with 13 additions and 32 deletions

View file

@ -252,8 +252,8 @@ class Table
$rows = $this->getRows();
$doc->startElement('Table');
$doc->writeAttribute('ss:ExpandedColumnCount', $columns);
$doc->writeAttribute('ss:ExpandedRowCount', $rows);
$doc->writeAttribute('ss:ExpandedColumnCount', (string)$columns);
$doc->writeAttribute('ss:ExpandedRowCount', (string)$rows);
// Переписать цыкл !!!!!!!
for ($i = 1; $i <= $rows; $i++) {
@ -306,9 +306,9 @@ class Table
$doc->writeElement('TopRowBottomPane', $this->_splitHorizontal);
}
if ($this->_splitHorizontal && $this->_splitVertical) {
$doc->writeElement('ActivePane', 0);
$doc->writeElement('ActivePane', (string)0);
} else if($this->_splitHorizontal) {
$doc->writeElement('ActivePane', 2);
$doc->writeElement('ActivePane', (string)2);
}
$doc->endElement();
}