Passed
Push — master ( f32ae8...50cca4 )
by Jan
04:31
created
src/Services/Trees/NodesListBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
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 */
Please login to merge, or discard this patch.
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/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.
src/Services/Attachments/AttachmentManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.