Conditions | 3 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function getResults () : array |
||
29 | { |
||
30 | if ( $this->url != $this->handler->getUrl() ) { |
||
31 | $this->handler = new StackOverflowWebPageHandler( $this->url ); |
||
32 | } |
||
33 | |||
34 | try { |
||
35 | $this->handler->read(); |
||
36 | } catch ( SourceWatcherException $e ) { |
||
37 | throw new SourceWatcherException( "Something went wrong trying to read the results", $e->getCode(), $e ); |
||
38 | } |
||
39 | |||
40 | return $this->handler->getResults(); |
||
|
|||
41 | } |
||
43 |