diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2012-11-29 18:41:32 +0100 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2012-11-30 16:26:04 +0100 |
commit | df21ebeaf73bed10e972af6ef09f2bfb0df68e1c (patch) | |
tree | c22472bd51a0f648d202f3b53f4d61d1b05fb7ae /apps/files_encryption/tests | |
parent | 3b83fe153062508d4a4d70958ad1a5281eaab81e (diff) | |
download | nextcloud-server-df21ebeaf73bed10e972af6ef09f2bfb0df68e1c.tar.gz nextcloud-server-df21ebeaf73bed10e972af6ef09f2bfb0df68e1c.zip |
fix checkstyle for files_encryption app, add whitespace for readability
Diffstat (limited to 'apps/files_encryption/tests')
-rw-r--r-- | apps/files_encryption/tests/proxy.php | 2 | ||||
-rw-r--r-- | apps/files_encryption/tests/stream.php | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_encryption/tests/proxy.php b/apps/files_encryption/tests/proxy.php index 1c800bbc5f6..5aa617e7472 100644 --- a/apps/files_encryption/tests/proxy.php +++ b/apps/files_encryption/tests/proxy.php @@ -42,7 +42,7 @@ class Test_CryptProxy extends UnitTestCase { public function tearDown() { OCP\Config::setAppValue('files_encryption', 'enable_encryption', $this->oldConfig); - if(!is_null($this->oldKey)) { + if ( ! is_null($this->oldKey)) { $_SESSION['enckey']=$this->oldKey; } } diff --git a/apps/files_encryption/tests/stream.php b/apps/files_encryption/tests/stream.php index 67b5e98ae67..e4af17d47b5 100644 --- a/apps/files_encryption/tests/stream.php +++ b/apps/files_encryption/tests/stream.php @@ -41,13 +41,13 @@ class Test_CryptStream extends UnitTestCase { * @return resource */ function getStream($id, $mode, $size) { - if($id==='') { + if ($id==='') { $id=uniqid(); } - if(!isset($this->tmpFiles[$id])) { + if ( ! isset($this->tmpFiles[$id])) { $file=OCP\Files::tmpFile(); $this->tmpFiles[$id]=$file; - }else{ + } else { $file=$this->tmpFiles[$id]; } $stream=fopen($file, $mode); |