@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | if ((empty($item['name']) && empty($item['baseContent'])) && (empty($item['key']) || empty($item['name']) || empty($item['size']) || App\TextParser::getTextLength($item['key']) !== 50)) { |
51 | 51 | throw new \App\Exceptions\Security('ERR_ILLEGAL_FIELD_VALUE||' . $this->getFieldModel()->getFieldName() . '||' . \App\Json::encode($value), 406); |
52 | 52 | } |
53 | - if ($index > (int)$fieldInfo['limit']) { |
|
53 | + if ($index > (int) $fieldInfo['limit']) { |
|
54 | 54 | throw new \App\Exceptions\Security('ERR_TO_MANY_FILES||' . $this->getFieldModel()->getFieldName() . '||' . \App\Json::encode($value), 406); |
55 | 55 | } |
56 | 56 | $path = \App\Fields\File::getLocalPath($item['path']); |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | if (!is_array($value)) { |
137 | 137 | return ''; |
138 | 138 | } |
139 | - $value = array_map(function ($v) { |
|
139 | + $value = array_map(function($v) { |
|
140 | 140 | return $v['name']; |
141 | 141 | }, $value); |
142 | 142 | $result = implode(', ', $value); |