@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | { |
| 59 | 59 | if ($options['container']) { |
| 60 | 60 | $page = $options['container']; |
| 61 | - $choiceFilter = function ($choices) use ($page) { |
|
| 61 | + $choiceFilter = function($choices) use ($page) { |
|
| 62 | 62 | $ret = array(); |
| 63 | 63 | if ($page instanceof ContentItemContainer && null !== $page->getContentItemMatrix()) { |
| 64 | 64 | $types = $page->getContentItemMatrix()->getTypes(); |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | try { |
| 108 | 108 | if ($subject->getId() && $subject->getRegion() !== null && $typeAdmin = $this->sonata->getAdminByClass(get_class($subject))) { |
| 109 | 109 | $view->vars['type'] = Str::humanize($subject->getType()); |
| 110 | - $childAdmin = $this->sonata->getAdminByAdminCode($parentAdmin->getCode() . '|' . $typeAdmin->getCode()); |
|
| 110 | + $childAdmin = $this->sonata->getAdminByAdminCode($parentAdmin->getCode().'|'.$typeAdmin->getCode()); |
|
| 111 | 111 | $childAdmin->setRequest($genericAdmin->getRequest()); |
| 112 | 112 | |
| 113 | 113 | if ($subject && $subject->getId() && $subject->getPage() && $subject->getPage()->getId()) { |
@@ -43,10 +43,10 @@ |
||
| 43 | 43 | /** @var $em \Doctrine\ORM\EntityManager */ |
| 44 | 44 | $em = $this->doctrine->getManager(); |
| 45 | 45 | |
| 46 | - $choiceCallback = function (Options $options) use ($em) { |
|
| 46 | + $choiceCallback = function(Options $options) use ($em) { |
|
| 47 | 47 | $ret = array(); |
| 48 | 48 | foreach ($em->getClassMetadata($options['entity'])->discriminatorMap as $className) { |
| 49 | - $placeholder = 'content_item.type.' . strtolower(str_replace(' ', '_', Str::humanize($className))); |
|
| 49 | + $placeholder = 'content_item.type.'.strtolower(str_replace(' ', '_', Str::humanize($className))); |
|
| 50 | 50 | $ret[$className] = $placeholder; |
| 51 | 51 | } |
| 52 | 52 | if (is_callable($options['choice_filter'])) { |