#6129 Fixed code style and @depends in test.
This commit is contained in:
parent
7bf206adb4
commit
8d433cdb39
@ -653,8 +653,6 @@ class XmlDriver extends FileDriver
|
|||||||
{
|
{
|
||||||
$array = array();
|
$array = array();
|
||||||
|
|
||||||
$booleanOptions = ['unsigned', 'fixed'];
|
|
||||||
|
|
||||||
/* @var $option SimpleXMLElement */
|
/* @var $option SimpleXMLElement */
|
||||||
foreach ($options as $option) {
|
foreach ($options as $option) {
|
||||||
if ($option->count()) {
|
if ($option->count()) {
|
||||||
@ -663,11 +661,11 @@ class XmlDriver extends FileDriver
|
|||||||
$value = (string) $option;
|
$value = (string) $option;
|
||||||
}
|
}
|
||||||
|
|
||||||
$attr = $option->attributes();
|
$attributes = $option->attributes();
|
||||||
|
|
||||||
if (isset($attr->name)) {
|
if (isset($attributes->name)) {
|
||||||
$attrName = (string) $attr->name;
|
$nameAttribute = (string) $attributes->name;
|
||||||
$array[$attrName] = in_array($attrName, $booleanOptions)
|
$array[$nameAttribute] = in_array($nameAttribute, ['unsigned', 'fixed'])
|
||||||
? $this->evaluateBoolean($value)
|
? $this->evaluateBoolean($value)
|
||||||
: $value;
|
: $value;
|
||||||
} else {
|
} else {
|
||||||
|
@ -250,7 +250,7 @@ abstract class AbstractMappingDriverTest extends OrmTestCase
|
|||||||
/**
|
/**
|
||||||
* @group #6129
|
* @group #6129
|
||||||
*
|
*
|
||||||
* @depends testIdentifier
|
* @depends testLoadMapping
|
||||||
*
|
*
|
||||||
* @param ClassMetadata $class
|
* @param ClassMetadata $class
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user