mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Enforced property types comments in one line
This commit is contained in:
@@ -15,17 +15,11 @@ use function strpos;
|
||||
|
||||
class AuthenticateActionTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var AuthenticateAction
|
||||
*/
|
||||
/** @var AuthenticateAction */
|
||||
protected $action;
|
||||
/**
|
||||
* @var ObjectProphecy
|
||||
*/
|
||||
/** @var ObjectProphecy */
|
||||
protected $apiKeyService;
|
||||
/**
|
||||
* @var ObjectProphecy
|
||||
*/
|
||||
/** @var ObjectProphecy */
|
||||
protected $jwtService;
|
||||
|
||||
public function setUp()
|
||||
|
||||
@@ -19,13 +19,9 @@ use function strpos;
|
||||
|
||||
class CreateShortUrlActionTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var CreateShortUrlAction
|
||||
*/
|
||||
/** @var CreateShortUrlAction */
|
||||
protected $action;
|
||||
/**
|
||||
* @var ObjectProphecy
|
||||
*/
|
||||
/** @var ObjectProphecy */
|
||||
protected $urlShortener;
|
||||
|
||||
public function setUp()
|
||||
|
||||
@@ -16,13 +16,9 @@ use Zend\Diactoros\ServerRequestFactory;
|
||||
|
||||
class DeleteShortUrlActionTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var DeleteShortUrlAction
|
||||
*/
|
||||
/** @var DeleteShortUrlAction */
|
||||
private $action;
|
||||
/**
|
||||
* @var ObjectProphecy
|
||||
*/
|
||||
/** @var ObjectProphecy */
|
||||
private $service;
|
||||
|
||||
public function setUp()
|
||||
|
||||
@@ -16,13 +16,9 @@ use Zend\Diactoros\ServerRequestFactory;
|
||||
|
||||
class EditShortUrlActionTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var EditShortUrlAction
|
||||
*/
|
||||
/** @var EditShortUrlAction */
|
||||
private $action;
|
||||
/**
|
||||
* @var ObjectProphecy
|
||||
*/
|
||||
/** @var ObjectProphecy */
|
||||
private $shortUrlService;
|
||||
|
||||
public function setUp()
|
||||
|
||||
@@ -13,13 +13,9 @@ use Zend\Diactoros\ServerRequestFactory;
|
||||
|
||||
class EditShortUrlTagsActionTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var EditShortUrlTagsAction
|
||||
*/
|
||||
/** @var EditShortUrlTagsAction */
|
||||
protected $action;
|
||||
/**
|
||||
* @var ObjectProphecy
|
||||
*/
|
||||
/** @var ObjectProphecy */
|
||||
private $shortUrlService;
|
||||
|
||||
public function setUp()
|
||||
|
||||
@@ -14,13 +14,9 @@ use Zend\Paginator\Paginator;
|
||||
|
||||
class ListShortUrlsActionTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var ListShortUrlsAction
|
||||
*/
|
||||
/** @var ListShortUrlsAction */
|
||||
protected $action;
|
||||
/**
|
||||
* @var ObjectProphecy
|
||||
*/
|
||||
/** @var ObjectProphecy */
|
||||
protected $service;
|
||||
|
||||
public function setUp()
|
||||
|
||||
@@ -17,13 +17,9 @@ use function strpos;
|
||||
|
||||
class ResolveShortUrlActionTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var ResolveShortUrlAction
|
||||
*/
|
||||
/** @var ResolveShortUrlAction */
|
||||
protected $action;
|
||||
/**
|
||||
* @var ObjectProphecy
|
||||
*/
|
||||
/** @var ObjectProphecy */
|
||||
protected $urlShortener;
|
||||
|
||||
public function setUp()
|
||||
|
||||
@@ -17,17 +17,11 @@ use Zend\Diactoros\ServerRequestFactory;
|
||||
|
||||
class SingleStepCreateShortUrlActionTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var SingleStepCreateShortUrlAction
|
||||
*/
|
||||
/** @var SingleStepCreateShortUrlAction */
|
||||
private $action;
|
||||
/**
|
||||
* @var ObjectProphecy
|
||||
*/
|
||||
/** @var ObjectProphecy */
|
||||
private $urlShortener;
|
||||
/**
|
||||
* @var ObjectProphecy
|
||||
*/
|
||||
/** @var ObjectProphecy */
|
||||
private $apiKeyService;
|
||||
|
||||
public function setUp()
|
||||
|
||||
@@ -13,13 +13,9 @@ use Zend\Diactoros\ServerRequestFactory;
|
||||
|
||||
class CreateTagsActionTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var CreateTagsAction
|
||||
*/
|
||||
/** @var CreateTagsAction */
|
||||
private $action;
|
||||
/**
|
||||
* @var ObjectProphecy
|
||||
*/
|
||||
/** @var ObjectProphecy */
|
||||
private $tagService;
|
||||
|
||||
public function setUp()
|
||||
|
||||
@@ -12,13 +12,9 @@ use Zend\Diactoros\ServerRequestFactory;
|
||||
|
||||
class DeleteTagsActionTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var DeleteTagsAction
|
||||
*/
|
||||
/** @var DeleteTagsAction */
|
||||
private $action;
|
||||
/**
|
||||
* @var ObjectProphecy
|
||||
*/
|
||||
/** @var ObjectProphecy */
|
||||
private $tagService;
|
||||
|
||||
public function setUp()
|
||||
|
||||
@@ -14,13 +14,9 @@ use function Shlinkio\Shlink\Common\json_decode;
|
||||
|
||||
class ListTagsActionTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var ListTagsAction
|
||||
*/
|
||||
/** @var ListTagsAction */
|
||||
private $action;
|
||||
/**
|
||||
* @var ObjectProphecy
|
||||
*/
|
||||
/** @var ObjectProphecy */
|
||||
private $tagService;
|
||||
|
||||
public function setUp()
|
||||
|
||||
@@ -14,13 +14,9 @@ use Zend\Diactoros\ServerRequestFactory;
|
||||
|
||||
class UpdateTagActionTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var UpdateTagAction
|
||||
*/
|
||||
/** @var UpdateTagAction */
|
||||
private $action;
|
||||
/**
|
||||
* @var ObjectProphecy
|
||||
*/
|
||||
/** @var ObjectProphecy */
|
||||
private $tagService;
|
||||
|
||||
public function setUp()
|
||||
|
||||
@@ -16,13 +16,9 @@ use Zend\Diactoros\ServerRequestFactory;
|
||||
|
||||
class GetVisitsActionTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var GetVisitsAction
|
||||
*/
|
||||
/** @var GetVisitsAction */
|
||||
protected $action;
|
||||
/**
|
||||
* @var ObjectProphecy
|
||||
*/
|
||||
/** @var ObjectProphecy */
|
||||
protected $visitsTracker;
|
||||
|
||||
public function setUp()
|
||||
|
||||
@@ -10,9 +10,7 @@ use Zend\ServiceManager\ServiceManager;
|
||||
|
||||
class AuthenticationPluginManagerFactoryTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var AuthenticationPluginManagerFactory
|
||||
*/
|
||||
/** @var AuthenticationPluginManagerFactory */
|
||||
private $factory;
|
||||
|
||||
public function setUp()
|
||||
|
||||
@@ -12,9 +12,7 @@ use function time;
|
||||
|
||||
class JWTServiceTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var JWTService
|
||||
*/
|
||||
/** @var JWTService */
|
||||
protected $service;
|
||||
|
||||
public function setUp()
|
||||
|
||||
@@ -14,13 +14,9 @@ use Zend\Diactoros\ServerRequestFactory;
|
||||
|
||||
class ApiKeyHeaderPluginTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var ApiKeyHeaderPlugin
|
||||
*/
|
||||
/** @var ApiKeyHeaderPlugin */
|
||||
private $plugin;
|
||||
/**
|
||||
* @var ObjectProphecy
|
||||
*/
|
||||
/** @var ObjectProphecy */
|
||||
private $apiKeyService;
|
||||
|
||||
public function setUp()
|
||||
|
||||
@@ -14,13 +14,9 @@ use function sprintf;
|
||||
|
||||
class AuthorizationHeaderPluginTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var AuthorizationHeaderPlugin
|
||||
*/
|
||||
/** @var AuthorizationHeaderPlugin */
|
||||
private $plugin;
|
||||
/**
|
||||
* @var ObjectProphecy
|
||||
*/
|
||||
/** @var ObjectProphecy */
|
||||
protected $jwtService;
|
||||
|
||||
public function setUp()
|
||||
|
||||
@@ -17,13 +17,9 @@ use function sprintf;
|
||||
|
||||
class RequestToAuthPluginTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var RequestToHttpAuthPlugin
|
||||
*/
|
||||
/** @var RequestToHttpAuthPlugin */
|
||||
private $requestToPlugin;
|
||||
/**
|
||||
* @var ObjectProphecy
|
||||
*/
|
||||
/** @var ObjectProphecy */
|
||||
private $pluginManager;
|
||||
|
||||
public function setUp()
|
||||
|
||||
@@ -8,9 +8,7 @@ use Shlinkio\Shlink\Rest\ConfigProvider;
|
||||
|
||||
class ConfigProviderTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var ConfigProvider
|
||||
*/
|
||||
/** @var ConfigProvider */
|
||||
protected $configProvider;
|
||||
|
||||
public function setUp()
|
||||
|
||||
@@ -10,9 +10,7 @@ use Zend\Diactoros\ServerRequestFactory;
|
||||
|
||||
class JsonErrorResponseGeneratorTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var JsonErrorResponseGenerator
|
||||
*/
|
||||
/** @var JsonErrorResponseGenerator */
|
||||
protected $errorHandler;
|
||||
|
||||
public function setUp()
|
||||
|
||||
@@ -31,18 +31,12 @@ use function Zend\Stratigility\middleware;
|
||||
|
||||
class AuthenticationMiddlewareTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var AuthenticationMiddleware
|
||||
*/
|
||||
/** @var AuthenticationMiddleware */
|
||||
protected $middleware;
|
||||
/**
|
||||
* @var ObjectProphecy
|
||||
*/
|
||||
/** @var ObjectProphecy */
|
||||
protected $requestToPlugin;
|
||||
|
||||
/**
|
||||
* @var callable
|
||||
*/
|
||||
/** @var callable */
|
||||
protected $dummyMiddleware;
|
||||
|
||||
public function setUp()
|
||||
|
||||
@@ -16,9 +16,7 @@ use function array_shift;
|
||||
|
||||
class BodyParserMiddlewareTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var BodyParserMiddleware
|
||||
*/
|
||||
/** @var BodyParserMiddleware */
|
||||
private $middleware;
|
||||
|
||||
public function setUp()
|
||||
|
||||
@@ -13,13 +13,9 @@ use Zend\Diactoros\ServerRequestFactory;
|
||||
|
||||
class CrossDomainMiddlewareTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var CrossDomainMiddleware
|
||||
*/
|
||||
/** @var CrossDomainMiddleware */
|
||||
protected $middleware;
|
||||
/**
|
||||
* @var ObjectProphecy
|
||||
*/
|
||||
/** @var ObjectProphecy */
|
||||
protected $delegate;
|
||||
|
||||
public function setUp()
|
||||
|
||||
@@ -16,9 +16,7 @@ use function array_shift;
|
||||
|
||||
class PathVersionMiddlewareTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var PathVersionMiddleware
|
||||
*/
|
||||
/** @var PathVersionMiddleware */
|
||||
protected $middleware;
|
||||
|
||||
public function setUp()
|
||||
|
||||
@@ -14,13 +14,9 @@ use Zend\Diactoros\ServerRequestFactory;
|
||||
|
||||
class CreateShortUrlContentNegotiationMiddlewareTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var CreateShortUrlContentNegotiationMiddleware
|
||||
*/
|
||||
/** @var CreateShortUrlContentNegotiationMiddleware */
|
||||
private $middleware;
|
||||
/**
|
||||
* @var RequestHandlerInterface
|
||||
*/
|
||||
/** @var RequestHandlerInterface */
|
||||
private $requestHandler;
|
||||
|
||||
public function setUp()
|
||||
|
||||
@@ -14,13 +14,9 @@ use Shlinkio\Shlink\Rest\Service\ApiKeyService;
|
||||
|
||||
class ApiKeyServiceTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var ApiKeyService
|
||||
*/
|
||||
/** @var ApiKeyService */
|
||||
protected $service;
|
||||
/**
|
||||
* @var ObjectProphecy
|
||||
*/
|
||||
/** @var ObjectProphecy */
|
||||
protected $em;
|
||||
|
||||
public function setUp()
|
||||
|
||||
Reference in New Issue
Block a user