@@ -16,16 +16,16 @@ discard block |
||
| 16 | 16 | { |
| 17 | 17 | public function __construct( |
| 18 | 18 | private readonly FailedJobHandlerInterface $handler |
| 19 | - ) { |
|
| 19 | + ){ |
|
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | /** @psalm-suppress ParamNameMismatch */ |
| 23 | 23 | public function process(string $name, string $action, array $parameters, CoreInterface $core): mixed |
| 24 | 24 | { |
| 25 | - try { |
|
| 25 | + try{ |
|
| 26 | 26 | return $core->callAction($name, $action, $parameters); |
| 27 | - } catch (\Throwable $e) { |
|
| 28 | - if (!$e instanceof StateException) { |
|
| 27 | + }catch (\Throwable $e){ |
|
| 28 | + if (!$e instanceof StateException){ |
|
| 29 | 29 | $this->handler->handle( |
| 30 | 30 | $parameters['driver'], |
| 31 | 31 | $parameters['queue'], |
@@ -41,11 +41,11 @@ discard block |
||
| 41 | 41 | |
| 42 | 42 | public function intercept(CallContextInterface $context, HandlerInterface $handler): mixed |
| 43 | 43 | { |
| 44 | - try { |
|
| 44 | + try{ |
|
| 45 | 45 | return $handler->handle($context); |
| 46 | - } catch (\Throwable $e) { |
|
| 46 | + }catch (\Throwable $e){ |
|
| 47 | 47 | $args = $context->getArguments(); |
| 48 | - if (!$e instanceof StateException) { |
|
| 48 | + if (!$e instanceof StateException){ |
|
| 49 | 49 | $this->handler->handle( |
| 50 | 50 | $args['driver'], |
| 51 | 51 | $args['queue'], |
@@ -22,10 +22,14 @@ discard block |
||
| 22 | 22 | /** @psalm-suppress ParamNameMismatch */ |
| 23 | 23 | public function process(string $name, string $action, array $parameters, CoreInterface $core): mixed |
| 24 | 24 | { |
| 25 | - try { |
|
| 25 | + try |
|
| 26 | + { |
|
| 26 | 27 | return $core->callAction($name, $action, $parameters); |
| 27 | - } catch (\Throwable $e) { |
|
| 28 | - if (!$e instanceof StateException) { |
|
| 28 | + } |
|
| 29 | + catch (\Throwable $e) |
|
| 30 | + { |
|
| 31 | + if (!$e instanceof StateException) |
|
| 32 | + { |
|
| 29 | 33 | $this->handler->handle( |
| 30 | 34 | $parameters['driver'], |
| 31 | 35 | $parameters['queue'], |
@@ -41,11 +45,15 @@ discard block |
||
| 41 | 45 | |
| 42 | 46 | public function intercept(CallContextInterface $context, HandlerInterface $handler): mixed |
| 43 | 47 | { |
| 44 | - try { |
|
| 48 | + try |
|
| 49 | + { |
|
| 45 | 50 | return $handler->handle($context); |
| 46 | - } catch (\Throwable $e) { |
|
| 51 | + } |
|
| 52 | + catch (\Throwable $e) |
|
| 53 | + { |
|
| 47 | 54 | $args = $context->getArguments(); |
| 48 | - if (!$e instanceof StateException) { |
|
| 55 | + if (!$e instanceof StateException) |
|
| 56 | + { |
|
| 49 | 57 | $this->handler->handle( |
| 50 | 58 | $args['driver'], |
| 51 | 59 | $args['queue'], |
@@ -26,8 +26,8 @@ discard block |
||
| 26 | 26 | public function __construct( |
| 27 | 27 | private readonly ContainerInterface $container, |
| 28 | 28 | private readonly ResolverInterface $resolver, |
| 29 | - private readonly HandlerInterface|CoreInterface $core |
|
| 30 | - ) { |
|
| 29 | + private readonly HandlerInterface | CoreInterface $core |
|
| 30 | + ){ |
|
| 31 | 31 | $this->isLegacy = !$core instanceof HandlerInterface; |
| 32 | 32 | } |
| 33 | 33 | |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | $filter = $this->createFilterInstance($name); |
| 40 | 40 | [$mappingSchema, $errors, $setters, $optionalFilters] = $attributeMapper->map($filter, $input); |
| 41 | 41 | |
| 42 | - if ($filter instanceof HasFilterDefinition) { |
|
| 42 | + if ($filter instanceof HasFilterDefinition){ |
|
| 43 | 43 | $mappingSchema = \array_merge( |
| 44 | 44 | $mappingSchema, |
| 45 | 45 | $filter->filterDefinition()->mappingSchema() |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | \assert($schemaBuilder instanceof Builder); |
| 54 | 54 | |
| 55 | 55 | $schema = $schemaBuilder->makeSchema($name, $mappingSchema); |
| 56 | - foreach ($optionalFilters as $optionalFilter) { |
|
| 56 | + foreach ($optionalFilters as $optionalFilter){ |
|
| 57 | 57 | $schema[$optionalFilter][Builder::SCHEMA_OPTIONAL] = true; |
| 58 | 58 | } |
| 59 | 59 | |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | $class = new \ReflectionClass($name); |
| 75 | 75 | |
| 76 | 76 | $args = []; |
| 77 | - if ($constructor = $class->getConstructor()) { |
|
| 77 | + if ($constructor = $class->getConstructor()){ |
|
| 78 | 78 | $args = $this->resolver->resolveArguments($constructor); |
| 79 | 79 | } |
| 80 | 80 | |