Code Duplication    Length = 13-13 lines in 2 locations

src/Parsers/BalanceSheetPage.php 1 location

@@ 39-51 (lines=13) @@
36
    /**
37
     * @return array
38
     */
39
    protected function parseTable()
40
    {
41
        $table = $this->getCrawler()->filter('#main > center > table > tbody')->first();
42
        $rows = $table->children();
43
        $return = [];
44
        foreach ($rows as $row) {
45
            $rowParsed = $this->parseTableRow($row);
46
            if ($rowParsed) {
47
                $return[$rowParsed[0]] = $rowParsed[1];
48
            }
49
        }
50
        return $return;
51
    }
52
53
    /**
54
     * @param DOMElement $row

src/Parsers/CompanyPage.php 1 location

@@ 47-59 (lines=13) @@
44
    /**
45
     * @return array
46
     */
47
    protected function parseTable()
48
    {
49
        $table = $this->getCrawler()->filter('#main > center > table > tbody')->first();
50
        $rows = $table->children();
51
        $return = [];
52
        foreach ($rows as $row) {
53
            $rowParsed = $this->parseTableRow($row);
54
            if ($rowParsed) {
55
                $return[$rowParsed[0]] = $rowParsed[1];
56
            }
57
        }
58
        return $return;
59
    }
60
61
    /**
62
     * @param DOMElement $row