@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | return; |
56 | 56 | } |
57 | 57 | |
58 | - $io->note('Update currency exchange rates with base currency: ' . $this->base_current); |
|
58 | + $io->note('Update currency exchange rates with base currency: '.$this->base_current); |
|
59 | 59 | |
60 | 60 | $service = $input->getOption('service'); |
61 | 61 | $api_key = $input->getOption('api_key'); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | //Iterate over each candidate and update exchange rate |
82 | 82 | foreach ($candidates as $currency) { |
83 | 83 | try { |
84 | - $rate = $swap->latest($currency->getIsoCode() . '/' . $this->base_current); |
|
84 | + $rate = $swap->latest($currency->getIsoCode().'/'.$this->base_current); |
|
85 | 85 | $currency->setExchangeRate($rate->getValue()); |
86 | 86 | $io->note(sprintf('Set exchange rate of %s to %f', $currency->getIsoCode(), $currency->getExchangeRate())); |
87 | 87 | $this->em->persist($currency); |
@@ -44,7 +44,7 @@ |
||
44 | 44 | { |
45 | 45 | $is_new = $entity->getID() === null; |
46 | 46 | |
47 | - $builder->add('iso_code', CurrencyType::class , ['required' => true, |
|
47 | + $builder->add('iso_code', CurrencyType::class, ['required' => true, |
|
48 | 48 | 'label' => 'currency.iso_code.label', |
49 | 49 | 'preferred_choices' => ['EUR', 'USD', 'GBP', 'JPY', 'CNY'], |
50 | 50 | 'attr' => ['class' => 'selectpicker', 'data-live-search' => true], |
@@ -76,7 +76,7 @@ |
||
76 | 76 | |
77 | 77 | ->add('not_selectable', CheckboxType::class, ['required' => false, |
78 | 78 | 'label' => 'not_selectable.label', 'help' => 'not_selectable.help', 'label_attr'=> ['class' => 'checkbox-custom'], |
79 | - 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity) ]) |
|
79 | + 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity)]) |
|
80 | 80 | |
81 | 81 | ->add('comment', CKEditorType::class, ['required' => false, 'empty_data' => '', |
82 | 82 | 'label' => 'comment.label', 'attr' => ['rows' => 4], 'help' => 'bbcode.hint', |