diff --git a/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php b/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php index c81c083e1..5bb1e7b51 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php @@ -197,7 +197,7 @@ class XmlDriver extends FileDriver foreach ($xmlRoot->indexes->index as $index) { $columns = explode(',', (string)$index['columns']); - if(!isset($index['flags'])) { + if( ! isset($index['flags'])) { $flags = array(); } else { $flags = explode(',', (string)$index['flags']); diff --git a/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php b/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php index 6e3342902..d0e52c718 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php @@ -213,8 +213,7 @@ class YamlDriver extends FileDriver $columns = $index['columns']; } - if(!isset($index['flags'])) - { + if( ! isset($index['flags'])) { $flags = array(); } elseif (is_string($index['flags'])) { $flags = explode(',', $index['flags']); diff --git a/lib/Doctrine/ORM/Tools/SchemaTool.php b/lib/Doctrine/ORM/Tools/SchemaTool.php index abad1013a..9bca3ed66 100644 --- a/lib/Doctrine/ORM/Tools/SchemaTool.php +++ b/lib/Doctrine/ORM/Tools/SchemaTool.php @@ -264,12 +264,11 @@ class SchemaTool if (isset($class->table['indexes'])) { foreach ($class->table['indexes'] as $indexName => $indexData) { - if(!isset($indexData['flags'])) - { + if( ! isset($indexData['flags'])) { $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']); } }