File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
Model/Config/DocumentType/Converter Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 8
8
namespace Opengento \Document \Model \Config \DocumentType \Converter ;
9
9
10
10
use DOMNode ;
11
+ use function array_filter ;
11
12
use function implode ;
12
13
use function trim ;
13
14
@@ -21,6 +22,6 @@ public function convert(DOMNode $node): string
21
22
$ allowedExtensions [] = trim ($ childNode ->nodeValue );
22
23
}
23
24
24
- return implode (', ' , $ allowedExtensions );
25
+ return implode (', ' , array_filter ( $ allowedExtensions) );
25
26
}
26
27
}
Original file line number Diff line number Diff line change 209
209
<argument name =" nodeConverters" xsi : type =" array" >
210
210
<item name =" default" xsi : type =" object" >Opengento\Document\Model\Config\DocumentType\Converter\NodeConverter</item >
211
211
<item name =" scheduledImport" xsi : type =" object" >Opengento\Document\Model\Config\DocumentType\Converter\ScheduledImportConverter</item >
212
- <item name =" fileAllowedExtensionsComplex " xsi : type =" object" >Opengento\Document\Model\Config\DocumentType\Converter\FileAllowedExtensionsConverter</item >
212
+ <item name =" fileAllowedExtensions " xsi : type =" object" >Opengento\Document\Model\Config\DocumentType\Converter\FileAllowedExtensionsConverter</item >
213
213
</argument >
214
214
</arguments >
215
215
</type >
226
226
<argument name =" schemaLocator" xsi : type =" object" >Opengento\Document\Config\DocumentType\SchemaLocator</argument >
227
227
<argument name =" fileName" xsi : type =" string" >resource_document_types.xml</argument >
228
228
<argument name =" idAttributes" xsi : type =" array" >
229
- <item name =" config/documentType" xsi : type =" string" >code</item >
229
+ <item name =" / config/documentType" xsi : type =" string" >code</item >
230
230
</argument >
231
231
</arguments >
232
232
</virtualType >
Original file line number Diff line number Diff line change 36
36
</xs : complexType >
37
37
<xs : complexType name =" fileAllowedExtensionsComplex" >
38
38
<xs : sequence >
39
- <xs : element type =" xs:string" name =" extension" minOccurs = " 1 " maxOccurs =" unbounded" />
39
+ <xs : element type =" xs:string" name =" extension" maxOccurs =" unbounded" />
40
40
</xs : sequence >
41
41
</xs : complexType >
42
42
</xs : schema >
You can’t perform that action at this time.
0 commit comments