Style fixes
This commit is contained in:
parent
addd0fba38
commit
1fb5f96c37
|
@ -262,7 +262,7 @@ class Proxy extends \OC_FileProxy {
|
||||||
|
|
||||||
} elseif (
|
} elseif (
|
||||||
self::shouldEncrypt($path)
|
self::shouldEncrypt($path)
|
||||||
and $meta ['mode'] !== 'r'
|
and $meta['mode'] !== 'r'
|
||||||
and $meta['mode'] !== 'rb'
|
and $meta['mode'] !== 'rb'
|
||||||
) {
|
) {
|
||||||
$result = fopen('crypt://' . $path, $meta['mode']);
|
$result = fopen('crypt://' . $path, $meta['mode']);
|
||||||
|
|
|
@ -288,12 +288,13 @@ class MDB2SchemaReader {
|
||||||
if (!empty($fields)) {
|
if (!empty($fields)) {
|
||||||
if (isset($primary) && $primary) {
|
if (isset($primary) && $primary) {
|
||||||
$table->setPrimaryKey($fields, $name);
|
$table->setPrimaryKey($fields, $name);
|
||||||
} else
|
} else {
|
||||||
if (isset($unique) && $unique) {
|
if (isset($unique) && $unique) {
|
||||||
$table->addUniqueIndex($fields, $name);
|
$table->addUniqueIndex($fields, $name);
|
||||||
} else {
|
} else {
|
||||||
$table->addIndex($fields, $name);
|
$table->addIndex($fields, $name);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new \DomainException('Empty index definition: ' . $name . ' options:' . print_r($fields, true));
|
throw new \DomainException('Empty index definition: ' . $name . ' options:' . print_r($fields, true));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue