Skip to content

Commit

Permalink
Fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Jun 20, 2023
1 parent 109bb1d commit 03eff4c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Client/DelegateProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ class DelegateProcessor implements Processor
*/
private $registry;

/**
* @param ProcessorRegistryInterface $registry
*/
public function __construct(ProcessorRegistryInterface $registry)
{
$this->registry = $registry;
Expand All @@ -31,10 +28,7 @@ public function process(InteropMessage $message, Context $context)
{
$processorName = $message->getProperty(Config::PROCESSOR);
if (false == $processorName) {
throw new \LogicException(sprintf(
'Got message without required parameter: "%s"',
Config::PROCESSOR
));
throw new \LogicException(sprintf('Got message without required parameter: "%s"', Config::PROCESSOR));
}

return $this->registry->get($processorName)->process($message, $context);
Expand Down

0 comments on commit 03eff4c

Please sign in to comment.