Passed
Pull Request — release/3.x (#42)
by
unknown
12:41
created
src/Zicht/Bundle/PageBundle/Type/ContentItemTypeType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     {
61 61
         if ($options['container']) {
62 62
             $page = $options['container'];
63
-            $choiceFilter = function ($choices) use ($page) {
63
+            $choiceFilter = function($choices) use ($page) {
64 64
                 $ret = array();
65 65
                 if ($page instanceof ContentItemContainer && null !== $page->getContentItemMatrix()) {
66 66
                     $types = $page->getContentItemMatrix()->getTypes();
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
                 }
121 121
                 if ($isPersistedEntity && $typeAdmin = $this->sonata->getAdminByClass(get_class($subject))) {
122 122
                     $view->vars['type'] = Str::humanize($subject->getType());
123
-                    $childAdmin = $this->sonata->getAdminByAdminCode($parentAdmin->getCode() . '|' . $typeAdmin->getCode());
123
+                    $childAdmin = $this->sonata->getAdminByAdminCode($parentAdmin->getCode().'|'.$typeAdmin->getCode());
124 124
                     $childAdmin->setRequest($genericAdmin->getRequest());
125 125
 
126 126
                     if ($subject && $subject->getPage() && $subject->getPage()->getId()) {
Please login to merge, or discard this patch.