@@ -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) { |
@@ -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('lin3s_cms_admin_bridge.config', $config); |
@@ -20,7 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | public function load(array $configs, ContainerBuilder $container) |
22 | 22 | { |
23 | - $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config/services')); |
|
23 | + $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config/services')); |
|
24 | 24 | $loader->load('command_bus.yml'); |
25 | 25 | $loader->load('commands.yml'); |
26 | 26 | $loader->load('data_transformers.yml'); |
@@ -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 | } |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | throw new \LogicException('templateable form needs to have "templateName" field'); |
48 | 48 | } |
49 | 49 | |
50 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($options) { |
|
50 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) use ($options) { |
|
51 | 51 | $data = $event->getData(); |
52 | 52 | |
53 | 53 | $templates = $this->templateFactory->templates(); |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | $this->templateType($templateName)->buildForm($event->getForm(), $options); |
61 | 61 | }); |
62 | 62 | |
63 | - $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($options) { |
|
63 | + $builder->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) use ($options) { |
|
64 | 64 | $data = $event->getData(); |
65 | 65 | $templates = $this->templateFactory->templates(); |
66 | 66 | reset($templates); |
@@ -35,6 +35,9 @@ |
||
35 | 35 | parent::add($translation); |
36 | 36 | } |
37 | 37 | |
38 | + /** |
|
39 | + * @param Translation $translation |
|
40 | + */ |
|
38 | 41 | public function addTranslation($translation, Translatable $translatable) |
39 | 42 | { |
40 | 43 | $translationReflection = new \ReflectionClass($translation); |