Skip to content

Commit

Permalink
Migrate triggers module (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 2, 2022
1 parent 59bd601 commit e3619c7
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/Consumers/State.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ final class State implements ExchangeConsumers\Consumer
];

public function __construct(
private readonly ExchangePublisher\Container $publisher,
private readonly ExchangePublisher\Publisher $publisher,
private readonly ExchangeEntities\EntityFactory $entityFactory,
private readonly Models\Connectors\Properties\PropertiesRepository $connectorPropertiesRepository,
private readonly Models\Devices\Properties\PropertiesRepository $devicePropertiesRepository,
Expand Down
4 changes: 2 additions & 2 deletions src/Hydrators/Connectors/Connector.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
/**
* Connector entity hydrator
*
* @template TEntityClass of Entities\Connectors\Connector
* @extends JsonApiHydrators\Hydrator<TEntityClass>
* @template T of Entities\Connectors\Connector
* @extends JsonApiHydrators\Hydrator<T>
*
* @package FastyBird:DevicesModule!
* @subpackage Hydrators
Expand Down
4 changes: 2 additions & 2 deletions src/Hydrators/Devices/Device.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
/**
* Device entity hydrator
*
* @template TEntityClass of Entities\Devices\Device
* @extends JsonApiHydrators\Hydrator<TEntityClass>
* @template T of Entities\Devices\Device
* @extends JsonApiHydrators\Hydrator<T>
*
* @package FastyBird:DevicesModule!
* @subpackage Hydrators
Expand Down
4 changes: 2 additions & 2 deletions src/Hydrators/Properties/Channel.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
/**
* Channel property entity hydrator
*
* @template TEntityClass of Entities\Channels\Properties\Property
* @extends Property<TEntityClass>
* @template T of Entities\Channels\Properties\Property
* @extends Property<T>
*
* @package FastyBird:DevicesModule!
* @subpackage Hydrators
Expand Down
4 changes: 2 additions & 2 deletions src/Hydrators/Properties/Connector.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
/**
* Connector property entity hydrator
*
* @template TEntityClass of Entities\Connectors\Properties\Property
* @extends Property<TEntityClass>
* @template T of Entities\Connectors\Properties\Property
* @extends Property<T>
*
* @package FastyBird:DevicesModule!
* @subpackage Hydrators
Expand Down
4 changes: 2 additions & 2 deletions src/Hydrators/Properties/Device.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
/**
* Device property entity hydrator
*
* @template TEntityClass of Entities\Devices\Properties\Property
* @extends Property<TEntityClass>
* @template T of Entities\Devices\Properties\Property
* @extends Property<T>
*
* @package FastyBird:DevicesModule!
* @subpackage Hydrators
Expand Down
4 changes: 2 additions & 2 deletions src/Hydrators/Properties/Property.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
/**
* Property entity hydrator
*
* @template TEntityClass of Entities\Property
* @extends JsonApiHydrators\Hydrator<TEntityClass>
* @template T of Entities\Property
* @extends JsonApiHydrators\Hydrator<T>
*
* @package FastyBird:DevicesModule!
* @subpackage Hydrators
Expand Down
3 changes: 1 addition & 2 deletions src/Router/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ public function __construct(private readonly DI\Container $container)
*/
public function validate(string $link, string $method = RequestMethodInterface::METHOD_GET): bool
{
$results = $this->getRouterDispatcher()
->dispatch($method, $link);
$results = $this->getRouterDispatcher()->dispatch($method, $link);

return $results[0] === SlimRouterRouting\RoutingResults::FOUND;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Subscribers/StateEntities.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function __construct(
private readonly Models\Devices\Properties\PropertiesRepository $devicePropertiesRepository,
private readonly Models\Channels\Properties\PropertiesRepository $channelPropertiesRepository,
private readonly ExchangeEntities\EntityFactory $entityFactory,
private readonly ExchangePublisher\Container $publisher,
private readonly ExchangePublisher\Publisher $publisher,
)
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use Ramsey\Uuid;
use stdClass;

final class EntitiesSubscriberTest extends TestCase
final class ModuleEntitiesTest extends TestCase
{

public function testSubscriberEvents(): void
Expand Down

0 comments on commit e3619c7

Please sign in to comment.