@@ -49,8 +49,7 @@ |
||
| 49 | 49 | /** |
| 50 | 50 | * Fetch a page from remote repository |
| 51 | 51 | * |
| 52 | - * @param string $page |
|
| 53 | - * @return string |
|
| 52 | + * @return TldrPage |
|
| 54 | 53 | * @throws PageNotFoundException |
| 55 | 54 | */ |
| 56 | 55 | public function fetchPage(String $pageName): TldrPage |
@@ -2,11 +2,11 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace GarethEllis\Tldr\Fetcher; |
| 4 | 4 | |
| 5 | +use GarethEllis\Tldr\Cache\CacheWriterInterface; |
|
| 5 | 6 | use GarethEllis\Tldr\Fetcher\Exception\PageNotFoundException; |
| 7 | +use GarethEllis\Tldr\Fetcher\Exception\RemoteFetcherException; |
|
| 6 | 8 | use GarethEllis\Tldr\Page\TldrPage; |
| 7 | 9 | use GuzzleHttp\Client; |
| 8 | -use GarethEllis\Tldr\Cache\CacheWriterInterface; |
|
| 9 | -use GarethEllis\Tldr\Fetcher\Exception\RemoteFetcherException; |
|
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | 12 | * Class RemoteFetcher |
@@ -3,14 +3,14 @@ |
||
| 3 | 3 | namespace GarethEllis\Tldr\Console\Command; |
| 4 | 4 | |
| 5 | 5 | use GarethEllis\Tldr\Console\Output\PageOutput; |
| 6 | +use GarethEllis\Tldr\Fetcher\Exception\PageNotFoundException; |
|
| 6 | 7 | use GarethEllis\Tldr\Fetcher\Exception\RemoteFetcherException; |
| 8 | +use GarethEllis\Tldr\Fetcher\RemoteFetcher; |
|
| 9 | +use GuzzleHttp\Client as Http; |
|
| 7 | 10 | use Symfony\Component\Console\Command\Command; |
| 8 | 11 | use Symfony\Component\Console\Input\InputArgument; |
| 9 | 12 | use Symfony\Component\Console\Input\InputInterface; |
| 10 | 13 | use Symfony\Component\Console\Output\OutputInterface; |
| 11 | -use GarethEllis\Tldr\Fetcher\RemoteFetcher; |
|
| 12 | -use GuzzleHttp\Client as Http; |
|
| 13 | -use GarethEllis\Tldr\Fetcher\Exception\PageNotFoundException; |
|
| 14 | 14 | |
| 15 | 15 | class TldrCommand extends Command |
| 16 | 16 | { |