Commit 75ea693c authored by Dainis Abols's avatar Dainis Abols
Browse files

Removed `Name` property trim

Re-added soap extension requirement

v1.0.5
parent 7dab40fb
{
"name": "luitd/viis-schools",
"version": "1.0.4",
"version": "1.0.5",
"description": "VIIS connector. Fetches official Latvian list of schools from Ministry of Education and Science",
"type": "library",
"authors": [
......@@ -17,7 +17,8 @@
],
"license": "GPL-3.0-or-later",
"require": {
"php": ">=7.2.0"
"php": ">=7.2",
"ext-soap": "*"
},
"require-dev": {
"phpunit/phpunit": "^7"
......
......@@ -34,7 +34,7 @@ class Builder
// Load attributes
foreach ($element->attributes() as $attribute => $value) {
$school[$attribute] = trim(reset($value), '"');
$school[$attribute] = reset($value);
}
// Load address
......@@ -82,7 +82,7 @@ class Builder
// Build school model
$school->registrationNumber = reset($element->attributes()->{'InstitutionRegistrationNumber'});
$school->name = trim(reset($element->attributes()->{'Name'}), '"');
$school->name = reset($element->attributes()->{'Name'});
$school->startDate = reset($element->attributes()->{'StartDate'});
$school->endDate = reset($element->attributes()->{'EndDate'});
$school->email = reset($element->attributes()->{'Email'});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment