@@ -24,7 +24,7 @@ |
||
24 | 24 | |
25 | 25 | protected function exists(string $name): bool |
26 | 26 | { |
27 | - return method_exists($this->getContainer()->getParameter('app.entity_user'), 'get' . $name); |
|
27 | + return method_exists($this->getContainer()->getParameter('app.entity_user'), 'get'.$name); |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | protected function configureFormFields(FormMapper $formMapper): void |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | */ |
65 | 65 | protected function exists(string $name): bool |
66 | 66 | { |
67 | - return method_exists($this->getContainer()->getParameter('app.entity_page'), 'get' . $name); |
|
67 | + return method_exists($this->getContainer()->getParameter('app.entity_page'), 'get'.$name); |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | protected function configureFormFieldsBlockDetails(FormMapper $formMapper): FormMapper |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | 'property' => 'title', // or any field in your media entity |
125 | 125 | 'label' => 'admin.page.relatedPage.label', |
126 | 126 | 'btn_add' => false, |
127 | - 'to_string_callback' => function ($entity) { |
|
127 | + 'to_string_callback' => function($entity) { |
|
128 | 128 | return $entity->getTitle(); |
129 | 129 | }, |
130 | 130 | ]); |
@@ -183,9 +183,9 @@ discard block |
||
183 | 183 | 'label' => 'admin.page.translations.label', |
184 | 184 | 'help' => 'admin.page.translations.help', |
185 | 185 | 'btn_add' => false, |
186 | - 'to_string_callback' => function ($entity) { |
|
186 | + 'to_string_callback' => function($entity) { |
|
187 | 187 | return $entity->getLocale() |
188 | - ? $entity->getLocale() . ' (' . $entity->getSlug() . ')' |
|
188 | + ? $entity->getLocale().' ('.$entity->getSlug().')' |
|
189 | 189 | : $entity->getSlug(); // switch for getLocale |
190 | 190 | // todo : remove it in next release and leave only get locale |
191 | 191 | // todo : add a clickable link to the other admin |
@@ -380,7 +380,7 @@ discard block |
||
380 | 380 | { |
381 | 381 | $media = $page->getMainImage(); |
382 | 382 | if (null !== $media && false !== strpos($media->getMimeType(), 'image/')) { |
383 | - $fullPath = '/' . $media->getRelativeDir() . '/' . $media->getMedia(); |
|
383 | + $fullPath = '/'.$media->getRelativeDir().'/'.$media->getMedia(); |
|
384 | 384 | $thumb = $this->liipImage->getBrowserPath($fullPath, 'thumb'); |
385 | 385 | } else { |
386 | 386 | $thumb = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjxzdmcgaGVpZ2h0PSIzMnB4IiB2ZXJzaW9uP |