mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-12-22 04:11:22 +01:00
Updated issue_template
This commit is contained in:
parent
d6bcf66b4d
commit
b61d9d577c
7
.github/issue_template.md
vendored
7
.github/issue_template.md
vendored
@ -1,4 +1,5 @@
|
|||||||
((Note: Please write in English))
|
((Note: Please write in English))
|
||||||
|
|
||||||
((Short description of the issue in issue title))
|
((Short description of the issue in issue title))
|
||||||
|
|
||||||
(Description of the issue)
|
(Description of the issue)
|
||||||
@ -24,3 +25,9 @@
|
|||||||
### PHP version
|
### PHP version
|
||||||
|
|
||||||
(PHP-version you encountered the issue with)
|
(PHP-version you encountered the issue with)
|
||||||
|
|
||||||
|
### SWS File
|
||||||
|
|
||||||
|
((Note: You cannot upload sws-files directly. Please zip it first))
|
||||||
|
|
||||||
|
(link to download of your wrong sws-file)
|
||||||
|
@ -34,6 +34,7 @@ use JeroenED\Libpairtwo\Models\Sws as SwsModel;
|
|||||||
use JeroenED\Libpairtwo\Enums\TournamentSystem;
|
use JeroenED\Libpairtwo\Enums\TournamentSystem;
|
||||||
use DateTime;
|
use DateTime;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class reads a SWS file
|
* This class reads a SWS file
|
||||||
*
|
*
|
||||||
@ -519,10 +520,11 @@ class Sws extends SwsModel
|
|||||||
{
|
{
|
||||||
switch ($type) {
|
switch ($type) {
|
||||||
case 'String':
|
case 'String':
|
||||||
if (trim($data) == '') {
|
$data = trim($data);
|
||||||
|
if ($data == '') {
|
||||||
return (is_null($default)) ? '' : $default;
|
return (is_null($default)) ? '' : $default;
|
||||||
}
|
}
|
||||||
return trim($data);
|
return $data;
|
||||||
break;
|
break;
|
||||||
case 'Hex':
|
case 'Hex':
|
||||||
case 'Int':
|
case 'Int':
|
||||||
|
Loading…
Reference in New Issue
Block a user