Minor CS fixes on top of #973
This commit is contained in:
parent
eccd8f85bc
commit
a87d3e080e
@ -101,9 +101,7 @@ class AnnotationDriver extends AbstractAnnotationDriver
|
||||
|
||||
if ($tableAnnot->indexes !== null) {
|
||||
foreach ($tableAnnot->indexes as $indexAnnot) {
|
||||
$index = array(
|
||||
'columns' => $indexAnnot->columns,
|
||||
);
|
||||
$index = array('columns' => $indexAnnot->columns);
|
||||
|
||||
if ( ! empty($indexAnnot->flags)) {
|
||||
$index['flags'] = $indexAnnot->flags;
|
||||
|
@ -195,11 +195,7 @@ class XmlDriver extends FileDriver
|
||||
if (isset($xmlRoot->indexes)) {
|
||||
$metadata->table['indexes'] = array();
|
||||
foreach ($xmlRoot->indexes->index as $indexXml) {
|
||||
$columns = explode(',', (string)$indexXml['columns']);
|
||||
|
||||
$index = array(
|
||||
'columns' => $columns
|
||||
);
|
||||
$index = array('columns' => explode(',', (string) $indexXml['columns']));
|
||||
|
||||
if (isset($indexXml['flags'])) {
|
||||
$index['flags'] = explode(',', (string) $indexXml['flags']);
|
||||
|
@ -207,20 +207,14 @@ class YamlDriver extends FileDriver
|
||||
}
|
||||
|
||||
if (is_string($indexYml['columns'])) {
|
||||
$columns = explode(',', $indexYml['columns']);
|
||||
$columns = array_map('trim', $columns);
|
||||
$index = array('columns' => array_map('trim', explode(',', $indexYml['columns'])));
|
||||
} else {
|
||||
$columns = $indexYml['columns'];
|
||||
$index = array('columns' => $indexYml['columns']);
|
||||
}
|
||||
|
||||
$index = array(
|
||||
'columns' => $columns
|
||||
);
|
||||
|
||||
if (isset($indexYml['flags'])) {
|
||||
if (is_string($indexYml['flags'])) {
|
||||
$flags = explode(',', $indexYml['flags']);
|
||||
$index['flags'] = array_map('trim', $flags);
|
||||
$index['flags'] = array_map('trim', explode(',', $indexYml['flags']));
|
||||
} else {
|
||||
$index['flags'] = $indexYml['flags'];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user