@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | { |
32 | 32 | parent::__construct($data); |
33 | 33 | |
34 | - if (is_callable([ $this, 'defaultData' ])) { |
|
34 | + if (is_callable([$this, 'defaultData'])) { |
|
35 | 35 | $this->setData($this->defaultData()); |
36 | 36 | } |
37 | 37 | } |
@@ -82,9 +82,9 @@ discard block |
||
82 | 82 | parent::validate($v); |
83 | 83 | |
84 | 84 | foreach ($this->translator()->locales() as $locale => $value) { |
85 | - if (!isset($this['name']) || !(string)$this['name'][$locale]) { |
|
85 | + if (!isset($this['name']) || !(string) $this['name'][$locale]) { |
|
86 | 86 | $this->validator()->error( |
87 | - (string)$this->translator()->translation([ |
|
87 | + (string) $this->translator()->translation([ |
|
88 | 88 | 'fr' => 'Le NOM doit être rempli dans toutes les langues.', |
89 | 89 | 'en' => 'The NAME must be filled in all languages.', |
90 | 90 | ]) |