Passed
Pull Request — developer (#16005)
by Arkadiusz
19:31
created
modules/Vtiger/uitypes/MultiImage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 		if (!\is_array($value)) {
126 126
 			return '';
127 127
 		}
128
-		$value = array_map(function ($v) {
128
+		$value = array_map(function($v) {
129 129
 			return $v['name'];
130 130
 		}, $value);
131 131
 		$result = implode(', ', $value);
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
 		}
173 173
 		$imageCount = (int) ($this->getFieldModel()->getFieldParams()['imageCount'] ?? 0);
174 174
 		$countValue = \count($value);
175
-		$len = ($imageCount <= $countValue) && ($imageCount > 0)  ? $imageCount : $countValue;
175
+		$len = ($imageCount <= $countValue) && ($imageCount > 0) ? $imageCount : $countValue;
176 176
 		if (!$record && $recordModel) {
177 177
 			$record = $recordModel->getId();
178 178
 		}
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
 		}
228 228
 		$result = '<div class="c-multi-image__result text-center">';
229 229
 		for ($i = 0; $i < $len; ++$i) {
230
-			$result .='<div class="d-inline-block mr-1 c-multi-image__preview-img middle" style="background-image:url(' . $this->getImageUrl($value[$i]['key'], $record) . ')"></div>';
230
+			$result .= '<div class="d-inline-block mr-1 c-multi-image__preview-img middle" style="background-image:url(' . $this->getImageUrl($value[$i]['key'], $record) . ')"></div>';
231 231
 		}
232 232
 		return $result . '</div>';
233 233
 	}
Please login to merge, or discard this patch.