summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-09-13 17:45:27 +0200
committerBart Visscher <bartv@thisnet.nl>2014-02-12 09:09:51 +0100
commit1fb5f96c37ab8738ba96b97bc04a75b0fa911aca (patch)
tree197c3e56fba806c086fab37c97825dc7e363a1f8
parentaddd0fba3887edafd03b3c22efa6f8276e1884dc (diff)
downloadnextcloud-server-1fb5f96c37ab8738ba96b97bc04a75b0fa911aca.tar.gz
nextcloud-server-1fb5f96c37ab8738ba96b97bc04a75b0fa911aca.zip
Style fixes
-rw-r--r--apps/files_encryption/lib/proxy.php2
-rw-r--r--lib/private/db/mdb2schemareader.php3
2 files changed, 3 insertions, 2 deletions
diff --git a/apps/files_encryption/lib/proxy.php b/apps/files_encryption/lib/proxy.php
index 11048005969..6425ace7f56 100644
--- a/apps/files_encryption/lib/proxy.php
+++ b/apps/files_encryption/lib/proxy.php
@@ -262,7 +262,7 @@ class Proxy extends \OC_FileProxy {
} elseif (
self::shouldEncrypt($path)
- and $meta ['mode'] !== 'r'
+ and $meta['mode'] !== 'r'
and $meta['mode'] !== 'rb'
) {
$result = fopen('crypt://' . $path, $meta['mode']);
diff --git a/lib/private/db/mdb2schemareader.php b/lib/private/db/mdb2schemareader.php
index b1fd2454cb0..f9a76786c3e 100644
--- a/lib/private/db/mdb2schemareader.php
+++ b/lib/private/db/mdb2schemareader.php
@@ -288,12 +288,13 @@ class MDB2SchemaReader {
if (!empty($fields)) {
if (isset($primary) && $primary) {
$table->setPrimaryKey($fields, $name);
- } else
+ } else {
if (isset($unique) && $unique) {
$table->addUniqueIndex($fields, $name);
} else {
$table->addIndex($fields, $name);
}
+ }
} else {
throw new \DomainException('Empty index definition: ' . $name . ' options:' . print_r($fields, true));
}