@@ -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 |
@@ -91,7 +91,7 @@ |
||
91 | 91 | $repo = $this->em->getRepository(Currency::class); |
92 | 92 | $candidates = []; |
93 | 93 | |
94 | - if (! empty($iso_code)) { |
|
94 | + if (!empty($iso_code)) { |
|
95 | 95 | $candidates = $repo->findBy(['iso_code' => $iso_code]); |
96 | 96 | } else { |
97 | 97 | $candidates = $repo->findAll(); |
@@ -78,14 +78,14 @@ |
||
78 | 78 | sprintf('You are going to change the password of %s with ID %d. Proceed?', |
79 | 79 | $user->getFullName(true), $user->getID())); |
80 | 80 | |
81 | - if (! $proceed) { |
|
81 | + if (!$proceed) { |
|
82 | 82 | return; |
83 | 83 | } |
84 | 84 | |
85 | 85 | $success = false; |
86 | 86 | $new_password = ''; |
87 | 87 | |
88 | - while (! $success) { |
|
88 | + while (!$success) { |
|
89 | 89 | $pw1 = $io->askHidden('Please enter new password:'); |
90 | 90 | $pw2 = $io->askHidden('Please confirm:'); |
91 | 91 | if ($pw1 !== $pw2) { |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | //Retrieve bbcode from entity |
139 | 139 | $bbcode = $this->propertyAccessor->getValue($result, $property); |
140 | 140 | //Check if the current property really contains BBCode |
141 | - if (! preg_match(static::BBCODE_REGEX, $bbcode)) { |
|
141 | + if (!preg_match(static::BBCODE_REGEX, $bbcode)) { |
|
142 | 142 | continue; |
143 | 143 | } |
144 | 144 | $io->writeln( |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | } |
160 | 160 | |
161 | 161 | //If we are not in dry run, save changes to DB |
162 | - if (! $input->getOption('dry-run')) { |
|
162 | + if (!$input->getOption('dry-run')) { |
|
163 | 163 | $this->em->flush(); |
164 | 164 | $io->success('Changes saved to DB successfully!'); |
165 | 165 | } |
@@ -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 |