summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-04-01 12:13:49 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-04-01 12:13:49 +0200
commit730efe25a4c386b2d2e4c1d1b0d16a71be7b9f28 (patch)
tree0138e7061b207582fcd163a93493b4afefa951e2 /apps/files
parentefcc2e87ab860c50f7904ac8e98914589a9c097a (diff)
downloadnextcloud-server-730efe25a4c386b2d2e4c1d1b0d16a71be7b9f28.tar.gz
nextcloud-server-730efe25a4c386b2d2e4c1d1b0d16a71be7b9f28.zip
Make scrutinizer happy
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/lib/activityhelper.php2
-rw-r--r--apps/files/tests/activitytest.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/lib/activityhelper.php b/apps/files/lib/activityhelper.php
index e05ae6c9831..f9ff722b1c2 100644
--- a/apps/files/lib/activityhelper.php
+++ b/apps/files/lib/activityhelper.php
@@ -60,7 +60,7 @@ class ActivityHelper {
$folders = $items = [];
foreach ($favorites as $favorite) {
$nodes = $rootFolder->getById($favorite);
- if ($nodes) {
+ if (!empty($nodes)) {
/** @var \OCP\Files\Node $node */
$node = array_shift($nodes);
$path = substr($node->getPath(), strlen($user . '/files/'));
diff --git a/apps/files/tests/activitytest.php b/apps/files/tests/activitytest.php
index b8766f95224..1f8d6330e51 100644
--- a/apps/files/tests/activitytest.php
+++ b/apps/files/tests/activitytest.php
@@ -95,7 +95,7 @@ class ActivityTest extends TestCase {
public function testTranslate() {
$this->assertFalse(
- $this->activityExtension->translate('files_sharing', '', '', array(), false, false, 'en'),
+ $this->activityExtension->translate('files_sharing', '', [], false, false, 'en'),
'Asserting that no translations are set for files_sharing'
);
}