@@ -63,7 +63,7 @@ |
||
63 | 63 | $secure_class_name = str_replace('\\', '_', $class_name); |
64 | 64 | $key = 'list_'.$this->keyGenerator->generateKey().'_'.$secure_class_name.$parent_id; |
65 | 65 | |
66 | - return $this->cache->get($key, function (ItemInterface $item) use ($class_name, $parent, $secure_class_name) { |
|
66 | + return $this->cache->get($key, function(ItemInterface $item) use ($class_name, $parent, $secure_class_name) { |
|
67 | 67 | // Invalidate when groups, a element with the class or the user changes |
68 | 68 | $item->tag(['groups', 'tree_list', $this->keyGenerator->generateKey(), $secure_class_name]); |
69 | 69 | /** @var StructuralDBElementRepository */ |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | $expiration_date->add(date_interval_create_from_date_string('1 day')); |
74 | 74 | $user->setPwResetExpires($expiration_date); |
75 | 75 | |
76 | - if (! empty($user->getEmail())) { |
|
76 | + if (!empty($user->getEmail())) { |
|
77 | 77 | $address = new Address($user->getEmail(), $user->getFullName()); |
78 | 78 | $mail = new TemplatedEmail(); |
79 | 79 | $mail->to($address); |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | } |
122 | 122 | |
123 | 123 | //Check if token is valid |
124 | - if (! $this->passwordEncoder->isPasswordValid($user->getPwResetToken(), $token, null)) { |
|
124 | + if (!$this->passwordEncoder->isPasswordValid($user->getPwResetToken(), $token, null)) { |
|
125 | 125 | return false; |
126 | 126 | } |
127 | 127 |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | public function getListOfRessources(): array |
54 | 54 | { |
55 | 55 | try { |
56 | - return $this->cache->get('attachment_builtin_ressources', function () { |
|
56 | + return $this->cache->get('attachment_builtin_ressources', function() { |
|
57 | 57 | $results = []; |
58 | 58 | |
59 | 59 | $finder = new Finder(); |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | protected function configureOptions(OptionsResolver $resolver): void |
136 | 136 | { |
137 | 137 | $resolver->setDefaults([ |
138 | - 'limit' => 15, //Given only 15 entries |
|
138 | + 'limit' => 15, //Given only 15 entries |
|
139 | 139 | //'allowed_extensions' => [], //Filter the filenames. For example ['jpg', 'jpeg'] to only get jpegs. |
140 | 140 | //'placeholders' => Attachment::BUILTIN_PLACEHOLDER, //By default use all builtin ressources, |
141 | 141 | 'empty_returns_all' => false, //Return the whole list of ressources when empty keyword is given |
@@ -51,7 +51,7 @@ |
||
51 | 51 | public function format($value, ?Currency $currency = null, $decimals = 5, bool $show_all_digits = false) |
52 | 52 | { |
53 | 53 | $iso_code = $this->base_currency; |
54 | - if (null !== $currency && ! empty($currency->getIsoCode())) { |
|
54 | + if (null !== $currency && !empty($currency->getIsoCode())) { |
|
55 | 55 | $iso_code = $currency->getIsoCode(); |
56 | 56 | } |
57 | 57 |
@@ -137,7 +137,7 @@ |
||
137 | 137 | public function useFloatAmount(): bool |
138 | 138 | { |
139 | 139 | if ($this->partUnit instanceof MeasurementUnit) { |
140 | - return ! $this->partUnit->isInteger(); |
|
140 | + return !$this->partUnit->isInteger(); |
|
141 | 141 | } |
142 | 142 | |
143 | 143 | //When no part unit is set, treat it as part count, and so use the integer value. |
@@ -188,7 +188,7 @@ |
||
188 | 188 | } |
189 | 189 | |
190 | 190 | foreach ($all_orderdetails as $orderdetails) { |
191 | - if (! $orderdetails->getObsolete()) { |
|
191 | + if (!$orderdetails->getObsolete()) { |
|
192 | 192 | return false; |
193 | 193 | } |
194 | 194 | } |
@@ -269,7 +269,7 @@ |
||
269 | 269 | */ |
270 | 270 | public function getAmount(): float |
271 | 271 | { |
272 | - if ($this->part instanceof Part && ! $this->part->useFloatAmount()) { |
|
272 | + if ($this->part instanceof Part && !$this->part->useFloatAmount()) { |
|
273 | 273 | return round($this->amount); |
274 | 274 | } |
275 | 275 |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | */ |
181 | 181 | public function getPriceRelatedQuantity(): float |
182 | 182 | { |
183 | - if ($this->orderdetail && $this->orderdetail->getPart() && ! $this->orderdetail->getPart()->useFloatAmount()) { |
|
183 | + if ($this->orderdetail && $this->orderdetail->getPart() && !$this->orderdetail->getPart()->useFloatAmount()) { |
|
184 | 184 | $tmp = round($this->price_related_quantity); |
185 | 185 | |
186 | 186 | return $tmp < 1 ? 1 : $tmp; |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | */ |
204 | 204 | public function getMinDiscountQuantity(): float |
205 | 205 | { |
206 | - if ($this->orderdetail && $this->orderdetail->getPart() && ! $this->orderdetail->getPart()->useFloatAmount()) { |
|
206 | + if ($this->orderdetail && $this->orderdetail->getPart() && !$this->orderdetail->getPart()->useFloatAmount()) { |
|
207 | 207 | $tmp = round($this->min_discount_quantity); |
208 | 208 | |
209 | 209 | return $tmp < 1 ? 1 : $tmp; |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | */ |
55 | 55 | public function attachmentToFile(Attachment $attachment): ?SplFileInfo |
56 | 56 | { |
57 | - if ($attachment->isExternal() || ! $this->isFileExisting($attachment)) { |
|
57 | + if ($attachment->isExternal() || !$this->isFileExisting($attachment)) { |
|
58 | 58 | return null; |
59 | 59 | } |
60 | 60 | |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | return null; |
129 | 129 | } |
130 | 130 | |
131 | - if (! $this->isFileExisting($attachment)) { |
|
131 | + if (!$this->isFileExisting($attachment)) { |
|
132 | 132 | return null; |
133 | 133 | } |
134 | 134 |