| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 22 | 
| Code Lines | 13 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 47 | public function getDataLive()  | 
            ||
| 48 |     { | 
            ||
| 49 | $data = [];  | 
            ||
| 50 | |||
| 51 | // set error level  | 
            ||
| 52 | $internalErrors = libxml_use_internal_errors(true);  | 
            ||
| 53 | |||
| 54 |         foreach ($this->datasource as $concursoName => $concursoData) { | 
            ||
| 55 | $file = $this->paths['path']['ext'].$concursoData['html'];  | 
            ||
| 56 | $doc = new DOMDocument();  | 
            ||
| 57 | $doc->loadHTMLFile($file);  | 
            ||
| 58 | $data[$concursoName] = (new $concursoData['reader'])  | 
            ||
| 59 | ->setDOMDocument($doc)  | 
            ||
| 60 | ->setNumbersNode(new LoteriaNumbersNode)  | 
            ||
| 61 | ->getDataLive();  | 
            ||
| 62 | }  | 
            ||
| 63 | |||
| 64 | // Restore error level  | 
            ||
| 65 | libxml_use_internal_errors($internalErrors);  | 
            ||
| 66 | |||
| 67 | return $data;  | 
            ||
| 68 | }  | 
            ||
| 69 | }  | 
            ||
| 70 |