@@ -3,7 +3,6 @@ |
||
3 | 3 | |
4 | 4 | namespace GarethEllis\Tldr\Fetcher; |
5 | 5 | |
6 | -use GarethEllis\Tldr\Fetcher\Exception\PageNotFoundException; |
|
7 | 6 | use GarethEllis\Tldr\Fetcher\Exception\UnknownOperatingSystemException; |
8 | 7 | |
9 | 8 | trait OperatingSystemTrait |
@@ -42,7 +42,6 @@ discard block |
||
42 | 42 | * RemoteFetcher constructor. |
43 | 43 | * |
44 | 44 | * @param \GuzzleHttp\Client $http |
45 | - * @param CacheInterface $cache |
|
46 | 45 | */ |
47 | 46 | public function __construct(Client $http, array $options = []) |
48 | 47 | { |
@@ -54,7 +53,7 @@ discard block |
||
54 | 53 | * Fetch a page from remote repository |
55 | 54 | * |
56 | 55 | * @param string $pageName |
57 | - * @return string |
|
56 | + * @return TldrPage |
|
58 | 57 | * @throws PageNotFoundException |
59 | 58 | */ |
60 | 59 | public function fetchPage(String $pageName): TldrPage |
@@ -4,9 +4,9 @@ |
||
4 | 4 | namespace GarethEllis\Tldr\Fetcher; |
5 | 5 | |
6 | 6 | use GarethEllis\Tldr\Fetcher\Exception\PageNotFoundException; |
7 | +use GarethEllis\Tldr\Fetcher\Exception\RemoteFetcherException; |
|
7 | 8 | use GarethEllis\Tldr\Page\TldrPage; |
8 | 9 | use GuzzleHttp\Client; |
9 | -use GarethEllis\Tldr\Fetcher\Exception\RemoteFetcherException; |
|
10 | 10 | use Metadata\Cache\CacheInterface; |
11 | 11 | |
12 | 12 | /** |