| @@ -9,8 +9,8 @@ discard block | ||
| 9 | 9 | |
| 10 | 10 | final class ParamMapperPass implements CompilerPassInterface | 
| 11 | 11 |  { | 
| 12 | - public const COLLECTOR_SVC_ID = 'eps.req2cmd.collector.param_collector'; | |
| 13 | - public const MAPPER_TAG = 'req2cmd.param_mapper'; | |
| 12 | + public const COLLECTOR_SVC_ID='eps.req2cmd.collector.param_collector'; | |
| 13 | + public const MAPPER_TAG='req2cmd.param_mapper'; | |
| 14 | 14 | |
| 15 | 15 | /** | 
| 16 | 16 |       * {@inheritdoc} | 
| @@ -21,18 +21,18 @@ discard block | ||
| 21 | 21 | return; | 
| 22 | 22 | } | 
| 23 | 23 | |
| 24 | - $collector = $container->findDefinition(self::COLLECTOR_SVC_ID); | |
| 25 | - $mappersDefinitions = $container->findTaggedServiceIds(self::MAPPER_TAG); | |
| 26 | - $queue = new \SplPriorityQueue(); | |
| 24 | + $collector=$container->findDefinition(self::COLLECTOR_SVC_ID); | |
| 25 | + $mappersDefinitions=$container->findTaggedServiceIds(self::MAPPER_TAG); | |
| 26 | + $queue=new \SplPriorityQueue(); | |
| 27 | 27 | |
| 28 | 28 |          foreach ($mappersDefinitions as $mapperId => $mapperTags) { | 
| 29 | - $tagAttributes = $mapperTags[0]; | |
| 30 | - $priority = $tagAttributes['priority'] ?? 0; | |
| 29 | + $tagAttributes=$mapperTags[0]; | |
| 30 | + $priority=$tagAttributes['priority'] ?? 0; | |
| 31 | 31 | $queue->insert($mapperId, $priority); | 
| 32 | 32 | } | 
| 33 | 33 | |
| 34 | - $mappers = array_map( | |
| 35 | -            function ($mapperId) { | |
| 34 | + $mappers=array_map( | |
| 35 | +            function($mapperId) { | |
| 36 | 36 | return new Reference($mapperId); | 
| 37 | 37 | }, | 
| 38 | 38 | iterator_to_array($queue, false) | 
| @@ -8,15 +8,15 @@ discard block | ||
| 8 | 8 | |
| 9 | 9 | class PathParamsMapper implements ParamMapperInterface | 
| 10 | 10 |  { | 
| 11 | - private const REQUIRED_PROPERTY_PREFIX = '!'; | |
| 11 | + private const REQUIRED_PROPERTY_PREFIX='!'; | |
| 12 | 12 | |
| 13 | 13 | public function map(Request $request, array $propsMap): array | 
| 14 | 14 |      { | 
| 15 | - $pathProps = $propsMap['path'] ?? []; | |
| 16 | - $result = []; | |
| 15 | + $pathProps=$propsMap['path'] ?? []; | |
| 16 | + $result=[]; | |
| 17 | 17 |          foreach ($pathProps as $paramName => $paramValue) { | 
| 18 | 18 |              if ($this->isParamRequired($paramName)) { | 
| 19 | - $paramName = substr($paramName, 1); | |
| 19 | + $paramName=substr($paramName, 1); | |
| 20 | 20 | $this->assertRequiredParamIsPresent($paramName, $request); | 
| 21 | 21 | } | 
| 22 | 22 | |
| @@ -24,8 +24,8 @@ discard block | ||
| 24 | 24 | continue; | 
| 25 | 25 | } | 
| 26 | 26 | |
| 27 | - $finalPropName = $paramValue ?? $paramName; | |
| 28 | - $result[$finalPropName] = $request->attributes->get($paramName); | |
| 27 | + $finalPropName=$paramValue ?? $paramName; | |
| 28 | + $result[$finalPropName]=$request->attributes->get($paramName); | |
| 29 | 29 | } | 
| 30 | 30 | |
| 31 | 31 | return $result; |