Scrutinizer Recommendations
Two unneeded assignments in tests, one unused parameter in source code.
This commit is contained in:
parent
6080c4561d
commit
752a0a5a6c
|
@ -506,7 +506,7 @@ class Html extends BaseReader
|
|||
if ($child->nodeName !== 'td' && $child->nodeName !== 'th') {
|
||||
$this->processDomElement($child, $sheet, $row, $column, $cellContent);
|
||||
} else {
|
||||
$this->processDomElementThTd($element, $sheet, $row, $column, $cellContent, $child, $attributeArray);
|
||||
$this->processDomElementThTd($sheet, $row, $column, $cellContent, $child, $attributeArray);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -559,7 +559,7 @@ class Html extends BaseReader
|
|||
}
|
||||
}
|
||||
|
||||
private function processDomElementThTd(DOMNode $element, Worksheet $sheet, int &$row, string &$column, string &$cellContent, DOMElement $child, array &$attributeArray): void
|
||||
private function processDomElementThTd(Worksheet $sheet, int &$row, string &$column, string &$cellContent, DOMElement $child, array &$attributeArray): void
|
||||
{
|
||||
while (isset($this->rowspan[$column . $row])) {
|
||||
++$column;
|
||||
|
|
|
@ -23,7 +23,7 @@ class HtmlTest extends TestCase
|
|||
$filename = 'tests/data/Reader/HTML/badhtml.html';
|
||||
$reader = new Html();
|
||||
self::assertTrue($reader->canRead($filename));
|
||||
$spreadsheet = $reader->load($filename);
|
||||
$reader->load($filename);
|
||||
self::assertTrue(false);
|
||||
}
|
||||
|
||||
|
@ -33,7 +33,7 @@ class HtmlTest extends TestCase
|
|||
$filename = __FILE__;
|
||||
$reader = new Html();
|
||||
self::assertFalse($reader->canRead($filename));
|
||||
$spreadsheet = $reader->load($filename);
|
||||
$reader->load($filename);
|
||||
self::assertTrue(false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue