@@ -39,7 +39,7 @@ |
||
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | - * @return array |
|
| 42 | + * @return string[] |
|
| 43 | 43 | */ |
| 44 | 44 | public function getTags(): array |
| 45 | 45 | { |
@@ -11,7 +11,6 @@ |
||
| 11 | 11 | use Psr\Log\NullLogger; |
| 12 | 12 | use Shlinkio\Shlink\Core\Action\Util\ErrorResponseBuilderTrait; |
| 13 | 13 | use Shlinkio\Shlink\Core\Exception\EntityDoesNotExistException; |
| 14 | -use Shlinkio\Shlink\Core\Exception\InvalidShortCodeException; |
|
| 15 | 14 | use Shlinkio\Shlink\Core\Options\AppOptions; |
| 16 | 15 | use Shlinkio\Shlink\Core\Service\UrlShortenerInterface; |
| 17 | 16 | use Shlinkio\Shlink\Core\Service\VisitsTrackerInterface; |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | * @param Request $request |
| 53 | 53 | * @param RequestHandlerInterface $handler |
| 54 | 54 | * |
| 55 | - * @return Response |
|
| 55 | + * @return string|null |
|
| 56 | 56 | */ |
| 57 | 57 | public function process(Request $request, RequestHandlerInterface $handler): Response |
| 58 | 58 | { |
@@ -13,8 +13,6 @@ |
||
| 13 | 13 | use Shlinkio\Shlink\Common\Service\PreviewGeneratorInterface; |
| 14 | 14 | use Shlinkio\Shlink\Common\Util\ResponseUtilsTrait; |
| 15 | 15 | use Shlinkio\Shlink\Core\Action\Util\ErrorResponseBuilderTrait; |
| 16 | -use Shlinkio\Shlink\Core\Exception\EntityDoesNotExistException; |
|
| 17 | -use Shlinkio\Shlink\Core\Exception\InvalidShortCodeException; |
|
| 18 | 16 | use Shlinkio\Shlink\Core\Service\UrlShortenerInterface; |
| 19 | 17 | |
| 20 | 18 | class PreviewAction implements MiddlewareInterface |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | use Shlinkio\Shlink\Common\Response\QrCodeResponse; |
| 14 | 14 | use Shlinkio\Shlink\Core\Action\Util\ErrorResponseBuilderTrait; |
| 15 | 15 | use Shlinkio\Shlink\Core\Exception\EntityDoesNotExistException; |
| 16 | -use Shlinkio\Shlink\Core\Exception\InvalidShortCodeException; |
|
| 17 | 16 | use Shlinkio\Shlink\Core\Service\UrlShortenerInterface; |
| 18 | 17 | use Zend\Expressive\Router\Exception\RuntimeException; |
| 19 | 18 | use Zend\Expressive\Router\RouterInterface; |