CS fixes
This commit is contained in:
parent
cc2fb1a070
commit
b3a2988d2c
@ -197,7 +197,7 @@ class XmlDriver extends FileDriver
|
|||||||
foreach ($xmlRoot->indexes->index as $index) {
|
foreach ($xmlRoot->indexes->index as $index) {
|
||||||
$columns = explode(',', (string)$index['columns']);
|
$columns = explode(',', (string)$index['columns']);
|
||||||
|
|
||||||
if(!isset($index['flags'])) {
|
if( ! isset($index['flags'])) {
|
||||||
$flags = array();
|
$flags = array();
|
||||||
} else {
|
} else {
|
||||||
$flags = explode(',', (string)$index['flags']);
|
$flags = explode(',', (string)$index['flags']);
|
||||||
|
@ -213,8 +213,7 @@ class YamlDriver extends FileDriver
|
|||||||
$columns = $index['columns'];
|
$columns = $index['columns'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isset($index['flags']))
|
if( ! isset($index['flags'])) {
|
||||||
{
|
|
||||||
$flags = array();
|
$flags = array();
|
||||||
} elseif (is_string($index['flags'])) {
|
} elseif (is_string($index['flags'])) {
|
||||||
$flags = explode(',', $index['flags']);
|
$flags = explode(',', $index['flags']);
|
||||||
|
@ -264,12 +264,11 @@ class SchemaTool
|
|||||||
|
|
||||||
if (isset($class->table['indexes'])) {
|
if (isset($class->table['indexes'])) {
|
||||||
foreach ($class->table['indexes'] as $indexName => $indexData) {
|
foreach ($class->table['indexes'] as $indexName => $indexData) {
|
||||||
if(!isset($indexData['flags']))
|
if( ! isset($indexData['flags'])) {
|
||||||
{
|
|
||||||
$indexData['flags'] = array();
|
$indexData['flags'] = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
$table->addIndex($indexData['columns'], is_numeric($indexName) ? null : $indexName, (array) $indexData['flags']);
|
$table->addIndex($indexData['columns'], is_numeric($indexName) ? null : $indexName, (array)$indexData['flags']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user