@@ -88,7 +88,7 @@ |
||
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | $response = new StreamedResponse( |
| 91 | - function () use ($request) { |
|
| 91 | + function() use ($request) { |
|
| 92 | 92 | $this->export($request); |
| 93 | 93 | } |
| 94 | 94 | ); |
@@ -88,9 +88,9 @@ discard block |
||
| 88 | 88 | $resolver->setOptional(['acl_suffix']); |
| 89 | 89 | $resolver->setNormalizers( |
| 90 | 90 | [ |
| 91 | - 'acl' => function ($actionOptions, $acl) use ($options) { |
|
| 91 | + 'acl' => function($actionOptions, $acl) use ($options) { |
|
| 92 | 92 | if (null === $acl && isset($options['acl_prefix']) && isset($actionOptions['acl_suffix'])) { |
| 93 | - return $options['acl_prefix'] . $options['acl_separator'] . |
|
| 93 | + return $options['acl_prefix'].$options['acl_separator']. |
|
| 94 | 94 | $actionOptions['acl_suffix']; |
| 95 | 95 | } |
| 96 | 96 | |
@@ -99,10 +99,10 @@ discard block |
||
| 99 | 99 | ] |
| 100 | 100 | ); |
| 101 | 101 | $customEntityName = $event->getAction()->getConfiguration()->getName(); |
| 102 | - $normalizeActions = function ($options, $actionTypes) use ($customEntityName) { |
|
| 102 | + $normalizeActions = function($options, $actionTypes) use ($customEntityName) { |
|
| 103 | 103 | return array_filter( |
| 104 | 104 | $actionTypes, |
| 105 | - function ($actionType) use ($customEntityName) { |
|
| 105 | + function($actionType) use ($customEntityName) { |
|
| 106 | 106 | $action = $this->actionFactory->getAction($customEntityName, $actionType); |
| 107 | 107 | $options = $action->getOptions(); |
| 108 | 108 | |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | { |
| 67 | 67 | $customEntityConfig = $indexAction->getConfiguration(); |
| 68 | 68 | $options = $indexAction->getOptions(); |
| 69 | - $sourceOptions = ($datagridConfig->offsetGetByPath('[source]')?:[]) + [ |
|
| 69 | + $sourceOptions = ($datagridConfig->offsetGetByPath('[source]') ?: []) + [ |
|
| 70 | 70 | 'entity' => $customEntityConfig->getEntityClass(), |
| 71 | 71 | 'type' => 'pim_custom_entity' |
| 72 | 72 | ]; |
@@ -89,8 +89,8 @@ discard block |
||
| 89 | 89 | $actions = []; |
| 90 | 90 | |
| 91 | 91 | foreach ($indexAction->getRowActions() as $rowActionType) { |
| 92 | - $link = $rowActionType . '_link'; |
|
| 93 | - $rowAction = $this->actionFactory->getAction($name, $rowActionType); |
|
| 92 | + $link = $rowActionType.'_link'; |
|
| 93 | + $rowAction = $this->actionFactory->getAction($name, $rowActionType); |
|
| 94 | 94 | $actions[$rowActionType] = $rowAction->getGridActionOptions() + ['link' => $link]; |
| 95 | 95 | $properties[$link] = [ |
| 96 | 96 | 'type' => 'custom_entity_url', |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | |
| 34 | 34 | return array( |
| 35 | 35 | 'results' => array_map( |
| 36 | - function ($vars) { |
|
| 36 | + function($vars) { |
|
| 37 | 37 | return [ |
| 38 | 38 | 'id' => $vars['id'], |
| 39 | 39 | 'text' => $vars['label'] ?: sprintf('[%s]', $vars['code']) |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | |
| 49 | 49 | return array( |
| 50 | 50 | 'results' => array_map( |
| 51 | - function ($option) { |
|
| 51 | + function($option) { |
|
| 52 | 52 | if (!$option['text']) { |
| 53 | 53 | $option['text'] = $option['code']; |
| 54 | 54 | } |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | // join to value |
| 27 | 27 | $condition = $this->prepareAttributeJoinCondition($attribute, $joinAlias); |
| 28 | 28 | $this->qb->leftJoin( |
| 29 | - $this->qb->getRootAlias().'.' . $attribute->getBackendStorage(), |
|
| 29 | + $this->qb->getRootAlias().'.'.$attribute->getBackendStorage(), |
|
| 30 | 30 | $joinAlias, |
| 31 | 31 | 'WITH', |
| 32 | 32 | $condition |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | // join to value |
| 27 | 27 | $condition = $this->prepareAttributeJoinCondition($attribute, $joinAlias); |
| 28 | 28 | $this->qb->leftJoin( |
| 29 | - $this->qb->getRootAlias().'.' . $attribute->getBackendStorage(), |
|
| 29 | + $this->qb->getRootAlias().'.'.$attribute->getBackendStorage(), |
|
| 30 | 30 | $joinAlias, |
| 31 | 31 | 'WITH', |
| 32 | 32 | $condition |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | // join to value |
| 27 | 27 | $condition = $this->prepareAttributeJoinCondition($attribute, $joinAlias); |
| 28 | 28 | $this->qb->leftJoin( |
| 29 | - $this->qb->getRootAlias().'.' . $attribute->getBackendStorage(), |
|
| 29 | + $this->qb->getRootAlias().'.'.$attribute->getBackendStorage(), |
|
| 30 | 30 | $joinAlias, |
| 31 | 31 | 'WITH', |
| 32 | 32 | $condition |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | continue; |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | - $serviceConfiguration = $this->getMergedConfiguration($configuration, $configurations); |
|
| 46 | + $serviceConfiguration = $this->getMergedConfiguration($configuration, $configurations); |
|
| 47 | 47 | $this->addService($container, $name, $serviceConfiguration); |
| 48 | 48 | } |
| 49 | 49 | } |