Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a42c1bc authored by Akhil's avatar Akhil 🙂
Browse files

Run linter

parent a52c3fb4
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ declare(strict_types=1);

namespace OCA\EcloudAccounts\AppInfo;

use OCA\EcloudAccounts\Filesystem\StorageWrapper;
use OCA\EcloudAccounts\Listeners\BeforeTemplateRenderedListener;
use OCA\EcloudAccounts\Listeners\BeforeUserDeletedListener;
use OCA\EcloudAccounts\Listeners\PasswordUpdatedListener;
@@ -44,7 +45,6 @@ use OCP\User\Events\BeforeUserDeletedEvent;
use OCP\User\Events\PasswordUpdatedEvent;
use OCP\User\Events\UserChangedEvent;
use OCP\Util;
use OCA\EcloudAccounts\Filesystem\StorageWrapper;

class Application extends App implements IBootstrap {
	public const APP_ID = 'ecloud-accounts';
+16 −0
Original line number Diff line number Diff line
@@ -31,4 +31,20 @@ class CacheWrapper extends Wrapper {
		}
		return $entry;
	}

	public function get($fileId) {
		throw new OCP\Files\Cache\CacheEntryNotFoundException('User data cache access is disabled.');
	}

	public function insert($file, $data) {
		throw new \OCP\Files\Cache\CacheUpdateForbiddenException('User data cache insert is disabled.');
	}

	public function update($id, $data) {
		throw new \OCP\Files\Cache\CacheUpdateForbiddenException('User data cache update is disabled.');
	}

	public function remove($fileId) {
		throw new \OCP\Files\Cache\CacheUpdateForbiddenException('User data cache removal is disabled.');
	}
}
+0 −1
Original line number Diff line number Diff line
@@ -10,7 +10,6 @@ use OC\Files\Storage\Wrapper\Wrapper;
use OCP\Files\ForbiddenException;
use OCP\Files\Storage\IStorage;
use OCP\Files\Storage\IWriteStreamStorage;
use OCA\EcloudAccounts\Filesystem\CacheWrapper;

class StorageWrapper extends Wrapper implements IWriteStreamStorage {
	/**