summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests
diff options
context:
space:
mode:
authorScrutinizer Auto-Fixer <auto-fixer@scrutinizer-ci.com>2015-11-20 15:42:34 +0000
committerScrutinizer Auto-Fixer <auto-fixer@scrutinizer-ci.com>2015-11-20 15:42:34 +0000
commit5573029485f7ecea806d3c58f6f0204c2e0651ad (patch)
treeed6c44809da98543a8f95f31b8eded62ae422395 /apps/dav/tests
parentf3ff85832356e197ff03582d8ccab729dbc6d375 (diff)
downloadnextcloud-server-5573029485f7ecea806d3c58f6f0204c2e0651ad.tar.gz
nextcloud-server-5573029485f7ecea806d3c58f6f0204c2e0651ad.zip
Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
Diffstat (limited to 'apps/dav/tests')
-rw-r--r--apps/dav/tests/unit/connector/sabre/file.php5
-rw-r--r--apps/dav/tests/unit/connector/sabre/filesplugin.php3
-rw-r--r--apps/dav/tests/unit/connector/sabre/requesttest/auth.php4
3 files changed, 9 insertions, 3 deletions
diff --git a/apps/dav/tests/unit/connector/sabre/file.php b/apps/dav/tests/unit/connector/sabre/file.php
index 399634f8bee..0a52299cec7 100644
--- a/apps/dav/tests/unit/connector/sabre/file.php
+++ b/apps/dav/tests/unit/connector/sabre/file.php
@@ -41,6 +41,9 @@ class File extends \Test\TestCase {
parent::tearDown();
}
+ /**
+ * @param string $string
+ */
private function getStream($string) {
$stream = fopen('php://temp', 'r+');
fwrite($stream, $string);
@@ -239,7 +242,7 @@ class File extends \Test\TestCase {
* @param string $path path to put the file into
* @param string $viewRoot root to use for the view
*
- * @return result of the PUT operaiton which is usually the etag
+ * @return null|string of the PUT operaiton which is usually the etag
*/
private function doPut($path, $viewRoot = null) {
$view = \OC\Files\Filesystem::getView();
diff --git a/apps/dav/tests/unit/connector/sabre/filesplugin.php b/apps/dav/tests/unit/connector/sabre/filesplugin.php
index 2e3338fefa1..b33c8340f72 100644
--- a/apps/dav/tests/unit/connector/sabre/filesplugin.php
+++ b/apps/dav/tests/unit/connector/sabre/filesplugin.php
@@ -55,6 +55,9 @@ class FilesPlugin extends \Test\TestCase {
$this->plugin->initialize($this->server);
}
+ /**
+ * @param string $class
+ */
private function createTestNode($class) {
$node = $this->getMockBuilder($class)
->disableOriginalConstructor()
diff --git a/apps/dav/tests/unit/connector/sabre/requesttest/auth.php b/apps/dav/tests/unit/connector/sabre/requesttest/auth.php
index 41b554d11db..02b64ab070b 100644
--- a/apps/dav/tests/unit/connector/sabre/requesttest/auth.php
+++ b/apps/dav/tests/unit/connector/sabre/requesttest/auth.php
@@ -41,7 +41,7 @@ class Auth implements BackendInterface {
*
* @param \Sabre\DAV\Server $server
* @param string $realm
- * @return bool
+ * @return boolean|null
*/
function authenticate(\Sabre\DAV\Server $server, $realm) {
$userSession = \OC::$server->getUserSession();
@@ -61,7 +61,7 @@ class Auth implements BackendInterface {
*
* If nobody is currently logged in, this method should return null.
*
- * @return string|null
+ * @return string
*/
function getCurrentUser() {
return $this->user;