@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | |
48 | 48 | foreach ($this->filters as $key => $filter) { |
49 | 49 | if (!empty($filter)) { |
50 | - $this->{'add' . ucfirst($key) . 'Criteria'}($filter); |
|
50 | + $this->{'add'.ucfirst($key).'Criteria'}($filter); |
|
51 | 51 | } |
52 | 52 | } |
53 | 53 | |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | foreach ($this->filters as $key => $filter) { |
67 | 67 | if (!empty($filter)) { |
68 | 68 | $areFiltersEmpty = false; |
69 | - $this->{'add' . ucfirst($key) . 'Criteria'}($filter); |
|
69 | + $this->{'add'.ucfirst($key).'Criteria'}($filter); |
|
70 | 70 | } |
71 | 71 | } |
72 | 72 | if (true === $areFiltersEmpty) { |
@@ -56,7 +56,7 @@ |
||
56 | 56 | |
57 | 57 | return array_merge( |
58 | 58 | [ |
59 | - 'translatables' => array_map(function ($translatable) use ($locale) { |
|
59 | + 'translatables' => array_map(function($translatable) use ($locale) { |
|
60 | 60 | $this->dataTransformer->write($translatable, $locale); |
61 | 61 | |
62 | 62 | return $this->dataTransformer->read(); |
@@ -52,6 +52,6 @@ |
||
52 | 52 | $index = $this->index() ? 'index' : 'noindex'; |
53 | 53 | $follow = $this->follow() ? 'follow' : 'nofollow'; |
54 | 54 | |
55 | - return $index . '/' . $follow; |
|
55 | + return $index.'/'.$follow; |
|
56 | 56 | } |
57 | 57 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | $configuration = new Configuration(); |
27 | 27 | $config = $this->processConfiguration($configuration, $configs); |
28 | 28 | |
29 | - $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
29 | + $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
30 | 30 | $loader->load('services.yml'); |
31 | 31 | |
32 | 32 | $container->setParameter('cms_kernel_admin_bridge.config', $config); |
@@ -34,7 +34,7 @@ |
||
34 | 34 | |
35 | 35 | foreach ($config['templates']['class_map'] as $entity => $templates) { |
36 | 36 | $container->setDefinition( |
37 | - 'lin3s_cms_kernel.' . $entity . '.template_factory', |
|
37 | + 'lin3s_cms_kernel.'.$entity.'.template_factory', |
|
38 | 38 | (new Definition(ClassMapTemplateFactory::class)) |
39 | 39 | )->addArgument($templates); |
40 | 40 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | |
29 | 29 | $container->setParameter('lin3s_cms_kernel.config', $config); |
30 | 30 | |
31 | - $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config/services')); |
|
31 | + $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config/services')); |
|
32 | 32 | $loader->load('command_bus.yml'); |
33 | 33 | $loader->load('commands.yml'); |
34 | 34 | $loader->load('data_transformers.yml'); |
@@ -33,25 +33,25 @@ discard block |
||
33 | 33 | 'Lin3sCmsKernelMenu' => [ |
34 | 34 | 'type' => 'xml', |
35 | 35 | 'is_bundle' => false, |
36 | - 'dir' => $this->doctrineORMBasePath() . '/Menu/Mapping/', |
|
36 | + 'dir' => $this->doctrineORMBasePath().'/Menu/Mapping/', |
|
37 | 37 | 'prefix' => 'LIN3S\CMSKernel\Domain\Model\Menu', |
38 | 38 | ], |
39 | 39 | 'Lin3sCmsKernelPage' => [ |
40 | 40 | 'type' => 'xml', |
41 | 41 | 'is_bundle' => false, |
42 | - 'dir' => $this->doctrineORMBasePath() . '/Page/Mapping/', |
|
42 | + 'dir' => $this->doctrineORMBasePath().'/Page/Mapping/', |
|
43 | 43 | 'prefix' => 'LIN3S\CMSKernel\Domain\Model\Page', |
44 | 44 | ], |
45 | 45 | 'Lin3sCmsKernelSeo' => [ |
46 | 46 | 'type' => 'xml', |
47 | 47 | 'is_bundle' => false, |
48 | - 'dir' => $this->doctrineORMBasePath() . '/Seo/Mapping/', |
|
48 | + 'dir' => $this->doctrineORMBasePath().'/Seo/Mapping/', |
|
49 | 49 | 'prefix' => 'LIN3S\CMSKernel\Domain\Model\Seo', |
50 | 50 | ], |
51 | 51 | 'Lin3sCmsKernelTranslation' => [ |
52 | 52 | 'type' => 'xml', |
53 | 53 | 'is_bundle' => false, |
54 | - 'dir' => $this->doctrineORMBasePath() . '/Translation/Mapping/', |
|
54 | + 'dir' => $this->doctrineORMBasePath().'/Translation/Mapping/', |
|
55 | 55 | 'prefix' => 'LIN3S\CMSKernel\Domain\Model\Translation', |
56 | 56 | ], |
57 | 57 | ], |
@@ -70,12 +70,12 @@ discard block |
||
70 | 70 | |
71 | 71 | private function doctrineORMBasePath() |
72 | 72 | { |
73 | - return $this->basePath() . '/../../Persistence/Doctrine/ORM'; |
|
73 | + return $this->basePath().'/../../Persistence/Doctrine/ORM'; |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | private function twigBasePath() |
77 | 77 | { |
78 | - return $this->basePath() . '/../../Ui/Templates/Twig'; |
|
78 | + return $this->basePath().'/../../Ui/Templates/Twig'; |
|
79 | 79 | } |
80 | 80 | |
81 | 81 | private function basePath() |
@@ -23,10 +23,10 @@ |
||
23 | 23 | $builder |
24 | 24 | ->add('wysiwyg', HiddenType::class) |
25 | 25 | ->addModelTransformer(new CallbackTransformer( |
26 | - function ($value) { |
|
26 | + function($value) { |
|
27 | 27 | return ['wysiwyg' => $value]; |
28 | 28 | }, |
29 | - function ($value) { |
|
29 | + function($value) { |
|
30 | 30 | return $value['wysiwyg']; |
31 | 31 | } |
32 | 32 | )); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | |
31 | 31 | $container->setParameter('cms_kernel_bengor_file_bridge.config', $config); |
32 | 32 | |
33 | - $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config/services')); |
|
33 | + $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config/services')); |
|
34 | 34 | $loader->load('routing.yml'); |
35 | 35 | |
36 | 36 |