Skip to content

Commit

Permalink
Fixes styling
Browse files Browse the repository at this point in the history
  • Loading branch information
dgafka authored and github-actions[bot] committed May 28, 2023
1 parent d3693d6 commit 7e59fd8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
use Ecotone\Messaging\Endpoint\ExecutionPollingMetadata;
use Ecotone\Messaging\MessageChannel;
use Ecotone\Messaging\MessagePublisher;
use Ecotone\Messaging\Support\Assert;
use Ecotone\Modelling\CommandBus;
use Ecotone\Modelling\DistributedBus;
use Ecotone\Modelling\EventBus;
use Ecotone\Modelling\QueryBus;
use Psr\Container\ContainerInterface;
use InvalidArgumentException;

/**
* configured messaging system is set up on boot, so in case of fetching it during initialization we need to provide lazy config
Expand Down Expand Up @@ -95,8 +94,8 @@ public function replaceWith(ConfiguredMessagingSystem $messagingSystem): void

private function getConfiguredSystem(): ConfiguredMessagingSystem
{
if (!$this->configuredMessagingSystem) {
throw new \InvalidArgumentException("Configured messaging system was not set");
if (! $this->configuredMessagingSystem) {
throw new InvalidArgumentException('Configured messaging system was not set');
}
return $this->configuredMessagingSystem;
}
Expand Down
9 changes: 6 additions & 3 deletions packages/Ecotone/tests/Lite/EcotoneLiteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
use Test\Ecotone\Modelling\Fixture\Order\ChannelConfiguration;
use Test\Ecotone\Modelling\Fixture\Order\OrderService;

/**
* @internal
*/
class EcotoneLiteTest extends TestCase
{
public function test_it_can_run_console_command(): void
Expand All @@ -18,10 +21,10 @@ public function test_it_can_run_console_command(): void
[new OrderService()],
ServiceConfiguration::createWithDefaults()
->withSkippedModulePackageNames(ModulePackageList::allPackages())
->withEnvironment("test")
->withEnvironment('test')
);

$ecotone->runConsoleCommand("ecotone:list", []);
$ecotone->runConsoleCommand('ecotone:list', []);
$this->expectNotToPerformAssertions();
}
}
}
4 changes: 2 additions & 2 deletions packages/Laravel/src/EcotoneProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace Ecotone\Laravel;

use Ecotone\Lite\PsrContainerReferenceSearchService;
use const DIRECTORY_SEPARATOR;

use Ecotone\Lite\PsrContainerReferenceSearchService;

use Ecotone\Messaging\Config\ConfiguredMessagingSystem;
use Ecotone\Messaging\Config\ConsoleCommandResultSet;

use Ecotone\Messaging\Config\LazyConfiguredMessagingSystem;
use Ecotone\Messaging\Config\MessagingSystemConfiguration;
use Ecotone\Messaging\Config\ProxyGenerator;
use Ecotone\Messaging\Config\ServiceConfiguration;
Expand Down

0 comments on commit 7e59fd8

Please sign in to comment.