1
0
mirror of synced 2025-03-06 12:56:10 +03:00

#6129 Fixed code style and @depends in test.

This commit is contained in:
Alexander Guz 2016-11-17 21:05:58 +01:00
parent 7bf206adb4
commit 8d433cdb39
2 changed files with 5 additions and 7 deletions

View File

@ -653,8 +653,6 @@ class XmlDriver extends FileDriver
{
$array = array();
$booleanOptions = ['unsigned', 'fixed'];
/* @var $option SimpleXMLElement */
foreach ($options as $option) {
if ($option->count()) {
@ -663,11 +661,11 @@ class XmlDriver extends FileDriver
$value = (string) $option;
}
$attr = $option->attributes();
$attributes = $option->attributes();
if (isset($attr->name)) {
$attrName = (string) $attr->name;
$array[$attrName] = in_array($attrName, $booleanOptions)
if (isset($attributes->name)) {
$nameAttribute = (string) $attributes->name;
$array[$nameAttribute] = in_array($nameAttribute, ['unsigned', 'fixed'])
? $this->evaluateBoolean($value)
: $value;
} else {

View File

@ -250,7 +250,7 @@ abstract class AbstractMappingDriverTest extends OrmTestCase
/**
* @group #6129
*
* @depends testIdentifier
* @depends testLoadMapping
*
* @param ClassMetadata $class
*