Passed
Push — master ( 8d81fb...93aeeb )
by Jan
06:25 queued 01:47
created
src/Services/PasswordResetManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Services/Attachments/BuiltinAttachmentsFinder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Services/MoneyFormatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Command/UpdateExchangeRatesCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Command/ConvertBBCodeCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Entity/Parts/PartTraits/InstockTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/Entity/Parts/PartTraits/OrderTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Entity/Parts/PartLot.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -269,7 +269,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Entity/PriceInformations/Pricedetail.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.