Passed
Push — master ( 1259fa...35ef63 )
by John
22:19 queued 13s
created
apps/files_sharing/lib/Command/ExiprationNotification.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 		//Current time
66 66
 		$minTime = $this->time->getDateTime();
67 67
 		$minTime->add(new \DateInterval('P1D'));
68
-		$minTime->setTime(0,0,0);
68
+		$minTime->setTime(0, 0, 0);
69 69
 
70 70
 		$maxTime = clone $minTime;
71 71
 		$maxTime->setTime(23, 59, 59);
Please login to merge, or discard this patch.
Indentation   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -36,64 +36,64 @@
 block discarded – undo
36 36
 use Symfony\Component\Console\Output\OutputInterface;
37 37
 
38 38
 class ExiprationNotification extends Command {
39
-	/** @var NotificationManager */
40
-	private $notificationManager;
41
-	/** @var IDBConnection */
42
-	private $connection;
43
-	/** @var ITimeFactory */
44
-	private $time;
45
-	/** @var ShareManager */
46
-	private $shareManager;
39
+    /** @var NotificationManager */
40
+    private $notificationManager;
41
+    /** @var IDBConnection */
42
+    private $connection;
43
+    /** @var ITimeFactory */
44
+    private $time;
45
+    /** @var ShareManager */
46
+    private $shareManager;
47 47
 
48
-	public function __construct(ITimeFactory $time,
49
-								NotificationManager $notificationManager,
50
-								IDBConnection $connection,
51
-								ShareManager $shareManager) {
52
-		parent::__construct();
48
+    public function __construct(ITimeFactory $time,
49
+                                NotificationManager $notificationManager,
50
+                                IDBConnection $connection,
51
+                                ShareManager $shareManager) {
52
+        parent::__construct();
53 53
 
54
-		$this->notificationManager = $notificationManager;
55
-		$this->connection = $connection;
56
-		$this->time = $time;
57
-		$this->shareManager = $shareManager;
58
-	}
54
+        $this->notificationManager = $notificationManager;
55
+        $this->connection = $connection;
56
+        $this->time = $time;
57
+        $this->shareManager = $shareManager;
58
+    }
59 59
 
60
-	protected function configure() {
61
-		$this
62
-			->setName('sharing:expiration-notification')
63
-			->setDescription('Notify share initiators when a share will expire the next day.');
64
-	}
60
+    protected function configure() {
61
+        $this
62
+            ->setName('sharing:expiration-notification')
63
+            ->setDescription('Notify share initiators when a share will expire the next day.');
64
+    }
65 65
 
66
-	public function execute(InputInterface $input, OutputInterface $output): int {
67
-		//Current time
68
-		$minTime = $this->time->getDateTime();
69
-		$minTime->add(new \DateInterval('P1D'));
70
-		$minTime->setTime(0,0,0);
66
+    public function execute(InputInterface $input, OutputInterface $output): int {
67
+        //Current time
68
+        $minTime = $this->time->getDateTime();
69
+        $minTime->add(new \DateInterval('P1D'));
70
+        $minTime->setTime(0,0,0);
71 71
 
72
-		$maxTime = clone $minTime;
73
-		$maxTime->setTime(23, 59, 59);
72
+        $maxTime = clone $minTime;
73
+        $maxTime->setTime(23, 59, 59);
74 74
 
75
-		$shares = $this->shareManager->getAllShares();
75
+        $shares = $this->shareManager->getAllShares();
76 76
 
77
-		$now = $this->time->getDateTime();
77
+        $now = $this->time->getDateTime();
78 78
 
79
-		/** @var IShare $share */
80
-		foreach ($shares as $share) {
81
-			if ($share->getExpirationDate() === null
82
-				|| $share->getExpirationDate()->getTimestamp() < $minTime->getTimestamp()
83
-				|| $share->getExpirationDate()->getTimestamp() > $maxTime->getTimestamp()) {
84
-				continue;
85
-			}
79
+        /** @var IShare $share */
80
+        foreach ($shares as $share) {
81
+            if ($share->getExpirationDate() === null
82
+                || $share->getExpirationDate()->getTimestamp() < $minTime->getTimestamp()
83
+                || $share->getExpirationDate()->getTimestamp() > $maxTime->getTimestamp()) {
84
+                continue;
85
+            }
86 86
 
87
-			$notification = $this->notificationManager->createNotification();
88
-			$notification->setApp('files_sharing')
89
-				->setDateTime($now)
90
-				->setObject('share', $share->getFullId())
91
-				->setSubject('expiresTomorrow');
87
+            $notification = $this->notificationManager->createNotification();
88
+            $notification->setApp('files_sharing')
89
+                ->setDateTime($now)
90
+                ->setObject('share', $share->getFullId())
91
+                ->setSubject('expiresTomorrow');
92 92
 
93
-			// Only send to initiator for now
94
-			$notification->setUser($share->getSharedBy());
95
-			$this->notificationManager->notify($notification);
96
-		}
97
-		return 0;
98
-	}
93
+            // Only send to initiator for now
94
+            $notification->setUser($share->getSharedBy());
95
+            $this->notificationManager->notify($notification);
96
+        }
97
+        return 0;
98
+    }
99 99
 }
Please login to merge, or discard this patch.
apps/files_trashbin/lib/Trash/TrashItem.php 1 patch
Indentation   +152 added lines, -152 removed lines patch added patch discarded remove patch
@@ -25,164 +25,164 @@
 block discarded – undo
25 25
 use OCP\IUser;
26 26
 
27 27
 class TrashItem implements ITrashItem {
28
-	/** @var ITrashBackend */
29
-	private $backend;
30
-	/** @var string */
31
-	private $orignalLocation;
32
-	/** @var int */
33
-	private $deletedTime;
34
-	/** @var string */
35
-	private $trashPath;
36
-	/** @var FileInfo */
37
-	private $fileInfo;
38
-	/** @var IUser */
39
-	private $user;
40
-
41
-	public function __construct(
42
-		ITrashBackend $backend,
43
-		string $originalLocation,
44
-		int $deletedTime,
45
-		string $trashPath,
46
-		FileInfo $fileInfo,
47
-		IUser $user
48
-	) {
49
-		$this->backend = $backend;
50
-		$this->orignalLocation = $originalLocation;
51
-		$this->deletedTime = $deletedTime;
52
-		$this->trashPath = $trashPath;
53
-		$this->fileInfo = $fileInfo;
54
-		$this->user = $user;
55
-	}
56
-
57
-	public function getTrashBackend(): ITrashBackend {
58
-		return $this->backend;
59
-	}
60
-
61
-	public function getOriginalLocation(): string {
62
-		return $this->orignalLocation;
63
-	}
64
-
65
-	public function getDeletedTime(): int {
66
-		return $this->deletedTime;
67
-	}
68
-
69
-	public function getTrashPath(): string {
70
-		return $this->trashPath;
71
-	}
72
-
73
-	public function isRootItem(): bool {
74
-		return substr_count($this->getTrashPath(), '/') === 1;
75
-	}
76
-
77
-	public function getUser(): IUser {
78
-		return $this->user;
79
-	}
80
-
81
-	public function getEtag() {
82
-		return $this->fileInfo->getEtag();
83
-	}
84
-
85
-	public function getSize($includeMounts = true) {
86
-		return $this->fileInfo->getSize($includeMounts);
87
-	}
88
-
89
-	public function getMtime() {
90
-		return $this->fileInfo->getMtime();
91
-	}
92
-
93
-	public function getName() {
94
-		return $this->fileInfo->getName();
95
-	}
96
-
97
-	public function getInternalPath() {
98
-		return $this->fileInfo->getInternalPath();
99
-	}
100
-
101
-	public function getPath() {
102
-		return $this->fileInfo->getPath();
103
-	}
104
-
105
-	public function getMimetype() {
106
-		return $this->fileInfo->getMimetype();
107
-	}
108
-
109
-	public function getMimePart() {
110
-		return $this->fileInfo->getMimePart();
111
-	}
112
-
113
-	public function getStorage() {
114
-		return $this->fileInfo->getStorage();
115
-	}
116
-
117
-	public function getId() {
118
-		return $this->fileInfo->getId();
119
-	}
120
-
121
-	public function isEncrypted() {
122
-		return $this->fileInfo->isEncrypted();
123
-	}
124
-
125
-	public function getPermissions() {
126
-		return $this->fileInfo->getPermissions();
127
-	}
128
-
129
-	public function getType() {
130
-		return $this->fileInfo->getType();
131
-	}
132
-
133
-	public function isReadable() {
134
-		return $this->fileInfo->isReadable();
135
-	}
136
-
137
-	public function isUpdateable() {
138
-		return $this->fileInfo->isUpdateable();
139
-	}
140
-
141
-	public function isCreatable() {
142
-		return $this->fileInfo->isCreatable();
143
-	}
144
-
145
-	public function isDeletable() {
146
-		return $this->fileInfo->isDeletable();
147
-	}
148
-
149
-	public function isShareable() {
150
-		return $this->fileInfo->isShareable();
151
-	}
152
-
153
-	public function isShared() {
154
-		return $this->fileInfo->isShared();
155
-	}
28
+    /** @var ITrashBackend */
29
+    private $backend;
30
+    /** @var string */
31
+    private $orignalLocation;
32
+    /** @var int */
33
+    private $deletedTime;
34
+    /** @var string */
35
+    private $trashPath;
36
+    /** @var FileInfo */
37
+    private $fileInfo;
38
+    /** @var IUser */
39
+    private $user;
40
+
41
+    public function __construct(
42
+        ITrashBackend $backend,
43
+        string $originalLocation,
44
+        int $deletedTime,
45
+        string $trashPath,
46
+        FileInfo $fileInfo,
47
+        IUser $user
48
+    ) {
49
+        $this->backend = $backend;
50
+        $this->orignalLocation = $originalLocation;
51
+        $this->deletedTime = $deletedTime;
52
+        $this->trashPath = $trashPath;
53
+        $this->fileInfo = $fileInfo;
54
+        $this->user = $user;
55
+    }
56
+
57
+    public function getTrashBackend(): ITrashBackend {
58
+        return $this->backend;
59
+    }
60
+
61
+    public function getOriginalLocation(): string {
62
+        return $this->orignalLocation;
63
+    }
64
+
65
+    public function getDeletedTime(): int {
66
+        return $this->deletedTime;
67
+    }
68
+
69
+    public function getTrashPath(): string {
70
+        return $this->trashPath;
71
+    }
72
+
73
+    public function isRootItem(): bool {
74
+        return substr_count($this->getTrashPath(), '/') === 1;
75
+    }
76
+
77
+    public function getUser(): IUser {
78
+        return $this->user;
79
+    }
80
+
81
+    public function getEtag() {
82
+        return $this->fileInfo->getEtag();
83
+    }
84
+
85
+    public function getSize($includeMounts = true) {
86
+        return $this->fileInfo->getSize($includeMounts);
87
+    }
88
+
89
+    public function getMtime() {
90
+        return $this->fileInfo->getMtime();
91
+    }
92
+
93
+    public function getName() {
94
+        return $this->fileInfo->getName();
95
+    }
96
+
97
+    public function getInternalPath() {
98
+        return $this->fileInfo->getInternalPath();
99
+    }
100
+
101
+    public function getPath() {
102
+        return $this->fileInfo->getPath();
103
+    }
104
+
105
+    public function getMimetype() {
106
+        return $this->fileInfo->getMimetype();
107
+    }
108
+
109
+    public function getMimePart() {
110
+        return $this->fileInfo->getMimePart();
111
+    }
112
+
113
+    public function getStorage() {
114
+        return $this->fileInfo->getStorage();
115
+    }
116
+
117
+    public function getId() {
118
+        return $this->fileInfo->getId();
119
+    }
120
+
121
+    public function isEncrypted() {
122
+        return $this->fileInfo->isEncrypted();
123
+    }
124
+
125
+    public function getPermissions() {
126
+        return $this->fileInfo->getPermissions();
127
+    }
128
+
129
+    public function getType() {
130
+        return $this->fileInfo->getType();
131
+    }
132
+
133
+    public function isReadable() {
134
+        return $this->fileInfo->isReadable();
135
+    }
136
+
137
+    public function isUpdateable() {
138
+        return $this->fileInfo->isUpdateable();
139
+    }
140
+
141
+    public function isCreatable() {
142
+        return $this->fileInfo->isCreatable();
143
+    }
144
+
145
+    public function isDeletable() {
146
+        return $this->fileInfo->isDeletable();
147
+    }
148
+
149
+    public function isShareable() {
150
+        return $this->fileInfo->isShareable();
151
+    }
152
+
153
+    public function isShared() {
154
+        return $this->fileInfo->isShared();
155
+    }
156 156
 
157
-	public function isMounted() {
158
-		return $this->fileInfo->isMounted();
159
-	}
157
+    public function isMounted() {
158
+        return $this->fileInfo->isMounted();
159
+    }
160 160
 
161
-	public function getMountPoint() {
162
-		return $this->fileInfo->getMountPoint();
163
-	}
161
+    public function getMountPoint() {
162
+        return $this->fileInfo->getMountPoint();
163
+    }
164 164
 
165
-	public function getOwner() {
166
-		return $this->fileInfo->getOwner();
167
-	}
165
+    public function getOwner() {
166
+        return $this->fileInfo->getOwner();
167
+    }
168 168
 
169
-	public function getChecksum() {
170
-		return $this->fileInfo->getChecksum();
171
-	}
169
+    public function getChecksum() {
170
+        return $this->fileInfo->getChecksum();
171
+    }
172 172
 
173
-	public function getExtension(): string {
174
-		return $this->fileInfo->getExtension();
175
-	}
173
+    public function getExtension(): string {
174
+        return $this->fileInfo->getExtension();
175
+    }
176 176
 
177
-	public function getTitle(): string {
178
-		return $this->getOriginalLocation();
179
-	}
177
+    public function getTitle(): string {
178
+        return $this->getOriginalLocation();
179
+    }
180 180
 
181
-	public function getCreationTime(): int {
182
-		return $this->fileInfo->getCreationTime();
183
-	}
181
+    public function getCreationTime(): int {
182
+        return $this->fileInfo->getCreationTime();
183
+    }
184 184
 
185
-	public function getUploadTime(): int {
186
-		return $this->fileInfo->getUploadTime();
187
-	}
185
+    public function getUploadTime(): int {
186
+        return $this->fileInfo->getUploadTime();
187
+    }
188 188
 }
Please login to merge, or discard this patch.
apps/files_sharing/lib/Migration/SetAcceptedStatus.php 1 patch
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -33,47 +33,47 @@
 block discarded – undo
33 33
 
34 34
 class SetAcceptedStatus implements IRepairStep {
35 35
 
36
-	/** @var IDBConnection */
37
-	private $connection;
36
+    /** @var IDBConnection */
37
+    private $connection;
38 38
 
39
-	/** @var  IConfig */
40
-	private $config;
39
+    /** @var  IConfig */
40
+    private $config;
41 41
 
42 42
 
43
-	public function __construct(IDBConnection $connection, IConfig $config) {
44
-		$this->connection = $connection;
45
-		$this->config = $config;
46
-	}
43
+    public function __construct(IDBConnection $connection, IConfig $config) {
44
+        $this->connection = $connection;
45
+        $this->config = $config;
46
+    }
47 47
 
48
-	/**
49
-	 * Returns the step's name
50
-	 *
51
-	 * @return string
52
-	 * @since 9.1.0
53
-	 */
54
-	public function getName(): string {
55
-		return 'Set existing shares as accepted';
56
-	}
48
+    /**
49
+     * Returns the step's name
50
+     *
51
+     * @return string
52
+     * @since 9.1.0
53
+     */
54
+    public function getName(): string {
55
+        return 'Set existing shares as accepted';
56
+    }
57 57
 
58
-	/**
59
-	 * @param IOutput $output
60
-	 */
61
-	public function run(IOutput $output): void {
62
-		if (!$this->shouldRun()) {
63
-			return;
64
-		}
58
+    /**
59
+     * @param IOutput $output
60
+     */
61
+    public function run(IOutput $output): void {
62
+        if (!$this->shouldRun()) {
63
+            return;
64
+        }
65 65
 
66
-		$query = $this->connection->getQueryBuilder();
67
-		$query
68
-			->update('share')
69
-			->set('accepted', $query->createNamedParameter(IShare::STATUS_ACCEPTED))
70
-			->where($query->expr()->in('share_type', $query->createNamedParameter([IShare::TYPE_USER, IShare::TYPE_GROUP, IShare::TYPE_USERGROUP], IQueryBuilder::PARAM_INT_ARRAY)));
71
-		$query->execute();
72
-	}
66
+        $query = $this->connection->getQueryBuilder();
67
+        $query
68
+            ->update('share')
69
+            ->set('accepted', $query->createNamedParameter(IShare::STATUS_ACCEPTED))
70
+            ->where($query->expr()->in('share_type', $query->createNamedParameter([IShare::TYPE_USER, IShare::TYPE_GROUP, IShare::TYPE_USERGROUP], IQueryBuilder::PARAM_INT_ARRAY)));
71
+        $query->execute();
72
+    }
73 73
 
74
-	protected function shouldRun() {
75
-		$appVersion = $this->config->getAppValue('files_sharing', 'installed_version', '0.0.0');
76
-		return version_compare($appVersion, '1.10.1', '<');
77
-	}
74
+    protected function shouldRun() {
75
+        $appVersion = $this->config->getAppValue('files_sharing', 'installed_version', '0.0.0');
76
+        return version_compare($appVersion, '1.10.1', '<');
77
+    }
78 78
 
79 79
 }
Please login to merge, or discard this patch.
lib/private/AppFramework/Routing/RouteActionHandler.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -29,21 +29,21 @@
 block discarded – undo
29 29
 use OC\AppFramework\DependencyInjection\DIContainer;
30 30
 
31 31
 class RouteActionHandler {
32
-	private $controllerName;
33
-	private $actionName;
34
-	private $container;
32
+    private $controllerName;
33
+    private $actionName;
34
+    private $container;
35 35
 
36
-	/**
37
-	 * @param string $controllerName
38
-	 * @param string $actionName
39
-	 */
40
-	public function __construct(DIContainer $container, $controllerName, $actionName) {
41
-		$this->controllerName = $controllerName;
42
-		$this->actionName = $actionName;
43
-		$this->container = $container;
44
-	}
36
+    /**
37
+     * @param string $controllerName
38
+     * @param string $actionName
39
+     */
40
+    public function __construct(DIContainer $container, $controllerName, $actionName) {
41
+        $this->controllerName = $controllerName;
42
+        $this->actionName = $actionName;
43
+        $this->container = $container;
44
+    }
45 45
 
46
-	public function __invoke($params) {
47
-		App::main($this->controllerName, $this->actionName, $this->container, $params);
48
-	}
46
+    public function __invoke($params) {
47
+        App::main($this->controllerName, $this->actionName, $this->container, $params);
48
+    }
49 49
 }
Please login to merge, or discard this patch.
apps/dav/lib/Upload/RootCollection.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -29,28 +29,28 @@
 block discarded – undo
29 29
 
30 30
 class RootCollection extends AbstractPrincipalCollection {
31 31
 
32
-	/** @var CleanupService */
33
-	private $cleanupService;
34
-
35
-	public function __construct(PrincipalBackend\BackendInterface $principalBackend,
36
-								string $principalPrefix,
37
-								CleanupService $cleanupService) {
38
-		parent::__construct($principalBackend, $principalPrefix);
39
-		$this->cleanupService = $cleanupService;
40
-	}
41
-
42
-	/**
43
-	 * @inheritdoc
44
-	 */
45
-	public function getChildForPrincipal(array $principalInfo): UploadHome {
46
-		return new UploadHome($principalInfo, $this->cleanupService);
47
-	}
48
-
49
-	/**
50
-	 * @inheritdoc
51
-	 */
52
-	public function getName(): string {
53
-		return 'uploads';
54
-	}
32
+    /** @var CleanupService */
33
+    private $cleanupService;
34
+
35
+    public function __construct(PrincipalBackend\BackendInterface $principalBackend,
36
+                                string $principalPrefix,
37
+                                CleanupService $cleanupService) {
38
+        parent::__construct($principalBackend, $principalPrefix);
39
+        $this->cleanupService = $cleanupService;
40
+    }
41
+
42
+    /**
43
+     * @inheritdoc
44
+     */
45
+    public function getChildForPrincipal(array $principalInfo): UploadHome {
46
+        return new UploadHome($principalInfo, $this->cleanupService);
47
+    }
48
+
49
+    /**
50
+     * @inheritdoc
51
+     */
52
+    public function getName(): string {
53
+        return 'uploads';
54
+    }
55 55
 
56 56
 }
Please login to merge, or discard this patch.
apps/files_trashbin/lib/Sabre/RestoreFolder.php 1 patch
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -30,48 +30,48 @@
 block discarded – undo
30 30
 use Sabre\DAV\INode;
31 31
 
32 32
 class RestoreFolder implements ICollection, IMoveTarget {
33
-	public function createFile($name, $data = null) {
34
-		throw new Forbidden();
35
-	}
33
+    public function createFile($name, $data = null) {
34
+        throw new Forbidden();
35
+    }
36 36
 
37
-	public function createDirectory($name) {
38
-		throw new Forbidden();
39
-	}
37
+    public function createDirectory($name) {
38
+        throw new Forbidden();
39
+    }
40 40
 
41
-	public function getChild($name) {
42
-		return null;
43
-	}
41
+    public function getChild($name) {
42
+        return null;
43
+    }
44 44
 
45
-	public function delete() {
46
-		throw new Forbidden();
47
-	}
45
+    public function delete() {
46
+        throw new Forbidden();
47
+    }
48 48
 
49
-	public function getName() {
50
-		return 'restore';
51
-	}
49
+    public function getName() {
50
+        return 'restore';
51
+    }
52 52
 
53
-	public function setName($name) {
54
-		throw new Forbidden();
55
-	}
53
+    public function setName($name) {
54
+        throw new Forbidden();
55
+    }
56 56
 
57
-	public function getLastModified(): int {
58
-		return 0;
59
-	}
57
+    public function getLastModified(): int {
58
+        return 0;
59
+    }
60 60
 
61
-	public function getChildren(): array {
62
-		return [];
63
-	}
61
+    public function getChildren(): array {
62
+        return [];
63
+    }
64 64
 
65
-	public function childExists($name): bool {
66
-		return false;
67
-	}
65
+    public function childExists($name): bool {
66
+        return false;
67
+    }
68 68
 
69
-	public function moveInto($targetName, $sourcePath, INode $sourceNode): bool {
70
-		if (!($sourceNode instanceof ITrash)) {
71
-			return false;
72
-		}
69
+    public function moveInto($targetName, $sourcePath, INode $sourceNode): bool {
70
+        if (!($sourceNode instanceof ITrash)) {
71
+            return false;
72
+        }
73 73
 
74
-		return $sourceNode->restore();
75
-	}
74
+        return $sourceNode->restore();
75
+    }
76 76
 
77 77
 }
Please login to merge, or discard this patch.
apps/files_versions/lib/Sabre/RestoreFolder.php 1 patch
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -31,49 +31,49 @@
 block discarded – undo
31 31
 use Sabre\DAV\INode;
32 32
 
33 33
 class RestoreFolder implements ICollection, IMoveTarget {
34
-	public function createFile($name, $data = null) {
35
-		throw new Forbidden();
36
-	}
34
+    public function createFile($name, $data = null) {
35
+        throw new Forbidden();
36
+    }
37 37
 
38
-	public function createDirectory($name) {
39
-		throw new Forbidden();
40
-	}
38
+    public function createDirectory($name) {
39
+        throw new Forbidden();
40
+    }
41 41
 
42
-	public function getChild($name) {
43
-		return null;
44
-	}
42
+    public function getChild($name) {
43
+        return null;
44
+    }
45 45
 
46
-	public function delete() {
47
-		throw new Forbidden();
48
-	}
46
+    public function delete() {
47
+        throw new Forbidden();
48
+    }
49 49
 
50
-	public function getName() {
51
-		return 'restore';
52
-	}
50
+    public function getName() {
51
+        return 'restore';
52
+    }
53 53
 
54
-	public function setName($name) {
55
-		throw new Forbidden();
56
-	}
54
+    public function setName($name) {
55
+        throw new Forbidden();
56
+    }
57 57
 
58
-	public function getLastModified(): int {
59
-		return 0;
60
-	}
58
+    public function getLastModified(): int {
59
+        return 0;
60
+    }
61 61
 
62
-	public function getChildren(): array {
63
-		return [];
64
-	}
62
+    public function getChildren(): array {
63
+        return [];
64
+    }
65 65
 
66
-	public function childExists($name): bool {
67
-		return false;
68
-	}
66
+    public function childExists($name): bool {
67
+        return false;
68
+    }
69 69
 
70
-	public function moveInto($targetName, $sourcePath, INode $sourceNode): bool {
71
-		if (!($sourceNode instanceof VersionFile)) {
72
-			return false;
73
-		}
70
+    public function moveInto($targetName, $sourcePath, INode $sourceNode): bool {
71
+        if (!($sourceNode instanceof VersionFile)) {
72
+            return false;
73
+        }
74 74
 
75
-		$sourceNode->rollBack();
76
-		return true;
77
-	}
75
+        $sourceNode->rollBack();
76
+        return true;
77
+    }
78 78
 
79 79
 }
Please login to merge, or discard this patch.
apps/cloud_federation_api/lib/Config.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -33,26 +33,26 @@
 block discarded – undo
33 33
  */
34 34
 class Config {
35 35
 
36
-	/** @var ICloudFederationProviderManager */
37
-	private $cloudFederationProviderManager;
36
+    /** @var ICloudFederationProviderManager */
37
+    private $cloudFederationProviderManager;
38 38
 
39
-	public function __construct(ICloudFederationProviderManager $cloudFederationProviderManager) {
40
-		$this->cloudFederationProviderManager = $cloudFederationProviderManager;
41
-	}
39
+    public function __construct(ICloudFederationProviderManager $cloudFederationProviderManager) {
40
+        $this->cloudFederationProviderManager = $cloudFederationProviderManager;
41
+    }
42 42
 
43
-	/**
44
-	 * get a list of supported share types
45
-	 *
46
-	 * @param string $resourceType
47
-	 * @return array
48
-	 */
49
-	public function getSupportedShareTypes($resourceType) {
50
-		try {
51
-			$provider = $this->cloudFederationProviderManager->getCloudFederationProvider($resourceType);
52
-			return $provider->getSupportedShareTypes();
53
-		} catch (\Exception $e) {
54
-			return [];
55
-		}
56
-	}
43
+    /**
44
+     * get a list of supported share types
45
+     *
46
+     * @param string $resourceType
47
+     * @return array
48
+     */
49
+    public function getSupportedShareTypes($resourceType) {
50
+        try {
51
+            $provider = $this->cloudFederationProviderManager->getCloudFederationProvider($resourceType);
52
+            return $provider->getSupportedShareTypes();
53
+        } catch (\Exception $e) {
54
+            return [];
55
+        }
56
+    }
57 57
 
58 58
 }
Please login to merge, or discard this patch.
core/Command/Group/Add.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 		$gid = $input->getArgument('groupid');
66 66
 		$group = $this->groupManager->get($gid);
67 67
 		if ($group) {
68
-			$output->writeln('<error>Group "' . $gid . '" already exists.</error>');
68
+			$output->writeln('<error>Group "'.$gid.'" already exists.</error>');
69 69
 			return 1;
70 70
 		} else {
71 71
 			$group = $this->groupManager->createGroup($gid);
@@ -73,9 +73,9 @@  discard block
 block discarded – undo
73 73
 				$output->writeln('<error>Could not create group</error>');
74 74
 				return 2;
75 75
 			}
76
-			$output->writeln('Created group "' . $group->getGID() . '"');
76
+			$output->writeln('Created group "'.$group->getGID().'"');
77 77
 
78
-			$displayName = trim((string)$input->getOption('display-name'));
78
+			$displayName = trim((string) $input->getOption('display-name'));
79 79
 			if ($displayName !== '') {
80 80
 				$group->setDisplayName($displayName);
81 81
 			}
Please login to merge, or discard this patch.
Indentation   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -36,49 +36,49 @@
 block discarded – undo
36 36
 use Symfony\Component\Console\Output\OutputInterface;
37 37
 
38 38
 class Add extends Base {
39
-	protected IGroupManager $groupManager;
39
+    protected IGroupManager $groupManager;
40 40
 
41
-	public function __construct(IGroupManager $groupManager) {
42
-		$this->groupManager = $groupManager;
43
-		parent::__construct();
44
-	}
41
+    public function __construct(IGroupManager $groupManager) {
42
+        $this->groupManager = $groupManager;
43
+        parent::__construct();
44
+    }
45 45
 
46
-	protected function configure() {
47
-		$this
48
-			->setName('group:add')
49
-			->setDescription('Add a group')
50
-			->addArgument(
51
-				'groupid',
52
-				InputArgument::REQUIRED,
53
-				'Group id'
54
-			)
55
-			->addOption(
56
-				'display-name',
57
-				null,
58
-				InputOption::VALUE_REQUIRED,
59
-				'Group name used in the web UI (can contain any characters)'
60
-			);
61
-	}
46
+    protected function configure() {
47
+        $this
48
+            ->setName('group:add')
49
+            ->setDescription('Add a group')
50
+            ->addArgument(
51
+                'groupid',
52
+                InputArgument::REQUIRED,
53
+                'Group id'
54
+            )
55
+            ->addOption(
56
+                'display-name',
57
+                null,
58
+                InputOption::VALUE_REQUIRED,
59
+                'Group name used in the web UI (can contain any characters)'
60
+            );
61
+    }
62 62
 
63
-	protected function execute(InputInterface $input, OutputInterface $output): int {
64
-		$gid = $input->getArgument('groupid');
65
-		$group = $this->groupManager->get($gid);
66
-		if ($group) {
67
-			$output->writeln('<error>Group "' . $gid . '" already exists.</error>');
68
-			return 1;
69
-		} else {
70
-			$group = $this->groupManager->createGroup($gid);
71
-			if (!$group instanceof IGroup) {
72
-				$output->writeln('<error>Could not create group</error>');
73
-				return 2;
74
-			}
75
-			$output->writeln('Created group "' . $group->getGID() . '"');
63
+    protected function execute(InputInterface $input, OutputInterface $output): int {
64
+        $gid = $input->getArgument('groupid');
65
+        $group = $this->groupManager->get($gid);
66
+        if ($group) {
67
+            $output->writeln('<error>Group "' . $gid . '" already exists.</error>');
68
+            return 1;
69
+        } else {
70
+            $group = $this->groupManager->createGroup($gid);
71
+            if (!$group instanceof IGroup) {
72
+                $output->writeln('<error>Could not create group</error>');
73
+                return 2;
74
+            }
75
+            $output->writeln('Created group "' . $group->getGID() . '"');
76 76
 
77
-			$displayName = trim((string)$input->getOption('display-name'));
78
-			if ($displayName !== '') {
79
-				$group->setDisplayName($displayName);
80
-			}
81
-		}
82
-		return 0;
83
-	}
77
+            $displayName = trim((string)$input->getOption('display-name'));
78
+            if ($displayName !== '') {
79
+                $group->setDisplayName($displayName);
80
+            }
81
+        }
82
+        return 0;
83
+    }
84 84
 }
Please login to merge, or discard this patch.