Completed
Push — master ( 3808f8...455fb7 )
by Julius
39:53 queued 15s
created
apps/workflowengine/lib/Settings/Personal.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -28,11 +28,11 @@
 block discarded – undo
28 28
 use OCP\WorkflowEngine\IManager;
29 29
 
30 30
 class Personal extends ASettings {
31
-	public function getScope(): int {
32
-		return IManager::SCOPE_USER;
33
-	}
31
+    public function getScope(): int {
32
+        return IManager::SCOPE_USER;
33
+    }
34 34
 
35
-	public function getSection(): ?string {
36
-		return $this->manager->isUserScopeEnabled() ? 'workflow' : null;
37
-	}
35
+    public function getSection(): ?string {
36
+        return $this->manager->isUserScopeEnabled() ? 'workflow' : null;
37
+    }
38 38
 }
Please login to merge, or discard this patch.
lib/private/Remote/Api/OCS.php 1 patch
Indentation   +62 added lines, -62 removed lines patch added patch discarded remove patch
@@ -32,70 +32,70 @@
 block discarded – undo
32 32
 use OCP\Remote\Api\IUserApi;
33 33
 
34 34
 class OCS extends ApiBase implements ICapabilitiesApi, IUserApi {
35
-	/**
36
-	 * @param string $method
37
-	 * @param string $url
38
-	 * @param array $body
39
-	 * @param array $query
40
-	 * @param array $headers
41
-	 * @return array
42
-	 * @throws ForbiddenException
43
-	 * @throws NotFoundException
44
-	 * @throws \Exception
45
-	 */
46
-	protected function request($method, $url, array $body = [], array $query = [], array $headers = []) {
47
-		try {
48
-			$response = json_decode(parent::request($method, 'ocs/v2.php/' . $url, $body, $query, $headers), true);
49
-		} catch (ClientException $e) {
50
-			if ($e->getResponse()->getStatusCode() === 404) {
51
-				throw new NotFoundException();
52
-			} elseif ($e->getResponse()->getStatusCode() === 403 || $e->getResponse()->getStatusCode() === 401) {
53
-				throw new ForbiddenException();
54
-			} else {
55
-				throw $e;
56
-			}
57
-		}
58
-		if (!isset($response['ocs']) || !isset($response['ocs']['meta'])) {
59
-			throw new \Exception('Invalid ocs response');
60
-		}
61
-		if ($response['ocs']['meta']['statuscode'] === OCSController::RESPOND_UNAUTHORISED) {
62
-			throw new ForbiddenException();
63
-		}
64
-		if ($response['ocs']['meta']['statuscode'] === OCSController::RESPOND_NOT_FOUND) {
65
-			throw new NotFoundException();
66
-		}
67
-		if ($response['ocs']['meta']['status'] !== 'ok') {
68
-			throw new \Exception('Unknown ocs error ' . $response['ocs']['meta']['message']);
69
-		}
35
+    /**
36
+     * @param string $method
37
+     * @param string $url
38
+     * @param array $body
39
+     * @param array $query
40
+     * @param array $headers
41
+     * @return array
42
+     * @throws ForbiddenException
43
+     * @throws NotFoundException
44
+     * @throws \Exception
45
+     */
46
+    protected function request($method, $url, array $body = [], array $query = [], array $headers = []) {
47
+        try {
48
+            $response = json_decode(parent::request($method, 'ocs/v2.php/' . $url, $body, $query, $headers), true);
49
+        } catch (ClientException $e) {
50
+            if ($e->getResponse()->getStatusCode() === 404) {
51
+                throw new NotFoundException();
52
+            } elseif ($e->getResponse()->getStatusCode() === 403 || $e->getResponse()->getStatusCode() === 401) {
53
+                throw new ForbiddenException();
54
+            } else {
55
+                throw $e;
56
+            }
57
+        }
58
+        if (!isset($response['ocs']) || !isset($response['ocs']['meta'])) {
59
+            throw new \Exception('Invalid ocs response');
60
+        }
61
+        if ($response['ocs']['meta']['statuscode'] === OCSController::RESPOND_UNAUTHORISED) {
62
+            throw new ForbiddenException();
63
+        }
64
+        if ($response['ocs']['meta']['statuscode'] === OCSController::RESPOND_NOT_FOUND) {
65
+            throw new NotFoundException();
66
+        }
67
+        if ($response['ocs']['meta']['status'] !== 'ok') {
68
+            throw new \Exception('Unknown ocs error ' . $response['ocs']['meta']['message']);
69
+        }
70 70
 
71
-		return $response['ocs']['data'];
72
-	}
71
+        return $response['ocs']['data'];
72
+    }
73 73
 
74
-	/**
75
-	 * @param array $data
76
-	 * @param string $type
77
-	 * @param string[] $keys
78
-	 * @throws \Exception
79
-	 */
80
-	private function checkResponseArray(array $data, $type, array $keys) {
81
-		foreach ($keys as $key) {
82
-			if (!array_key_exists($key, $data)) {
83
-				throw new \Exception('Invalid ' . $type . ' response, expected field ' . $key . ' not found');
84
-			}
85
-		}
86
-	}
74
+    /**
75
+     * @param array $data
76
+     * @param string $type
77
+     * @param string[] $keys
78
+     * @throws \Exception
79
+     */
80
+    private function checkResponseArray(array $data, $type, array $keys) {
81
+        foreach ($keys as $key) {
82
+            if (!array_key_exists($key, $data)) {
83
+                throw new \Exception('Invalid ' . $type . ' response, expected field ' . $key . ' not found');
84
+            }
85
+        }
86
+    }
87 87
 
88
-	public function getUser($userId) {
89
-		$result = $this->request('get', 'cloud/users/' . $userId);
90
-		$this->checkResponseArray($result, 'user', User::EXPECTED_KEYS);
91
-		return new User($result);
92
-	}
88
+    public function getUser($userId) {
89
+        $result = $this->request('get', 'cloud/users/' . $userId);
90
+        $this->checkResponseArray($result, 'user', User::EXPECTED_KEYS);
91
+        return new User($result);
92
+    }
93 93
 
94
-	/**
95
-	 * @return array The capabilities in the form of [$appId => [$capability => $value]]
96
-	 */
97
-	public function getCapabilities() {
98
-		$result = $this->request('get', 'cloud/capabilities');
99
-		return $result['capabilities'];
100
-	}
94
+    /**
95
+     * @return array The capabilities in the form of [$appId => [$capability => $value]]
96
+     */
97
+    public function getCapabilities() {
98
+        $result = $this->request('get', 'cloud/capabilities');
99
+        return $result['capabilities'];
100
+    }
101 101
 }
Please login to merge, or discard this patch.
lib/public/DB/QueryBuilder/ICompositeExpression.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -29,39 +29,39 @@
 block discarded – undo
29 29
  * @since 8.2.0
30 30
  */
31 31
 interface ICompositeExpression {
32
-	/**
33
-	 * Adds multiple parts to composite expression.
34
-	 *
35
-	 * @param array $parts
36
-	 *
37
-	 * @return ICompositeExpression
38
-	 * @since 8.2.0
39
-	 */
40
-	public function addMultiple(array $parts = []): ICompositeExpression;
32
+    /**
33
+     * Adds multiple parts to composite expression.
34
+     *
35
+     * @param array $parts
36
+     *
37
+     * @return ICompositeExpression
38
+     * @since 8.2.0
39
+     */
40
+    public function addMultiple(array $parts = []): ICompositeExpression;
41 41
 
42
-	/**
43
-	 * Adds an expression to composite expression.
44
-	 *
45
-	 * @param mixed $part
46
-	 *
47
-	 * @return ICompositeExpression
48
-	 * @since 8.2.0
49
-	 */
50
-	public function add($part): ICompositeExpression;
42
+    /**
43
+     * Adds an expression to composite expression.
44
+     *
45
+     * @param mixed $part
46
+     *
47
+     * @return ICompositeExpression
48
+     * @since 8.2.0
49
+     */
50
+    public function add($part): ICompositeExpression;
51 51
 
52
-	/**
53
-	 * Retrieves the amount of expressions on composite expression.
54
-	 *
55
-	 * @return integer
56
-	 * @since 8.2.0
57
-	 */
58
-	public function count(): int;
52
+    /**
53
+     * Retrieves the amount of expressions on composite expression.
54
+     *
55
+     * @return integer
56
+     * @since 8.2.0
57
+     */
58
+    public function count(): int;
59 59
 
60
-	/**
61
-	 * Returns the type of this composite expression (AND/OR).
62
-	 *
63
-	 * @return string
64
-	 * @since 8.2.0
65
-	 */
66
-	public function getType(): string;
60
+    /**
61
+     * Returns the type of this composite expression (AND/OR).
62
+     *
63
+     * @return string
64
+     * @since 8.2.0
65
+     */
66
+    public function getType(): string;
67 67
 }
Please login to merge, or discard this patch.
apps/admin_audit/lib/Actions/Versions.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -29,20 +29,20 @@
 block discarded – undo
29 29
 namespace OCA\AdminAudit\Actions;
30 30
 
31 31
 class Versions extends Action {
32
-	public function rollback(array $params): void {
33
-		$this->log('Version "%s" of "%s" was restored.',
34
-			[
35
-				'version' => $params['revision'],
36
-				'path' => $params['path']
37
-			],
38
-			['version', 'path']
39
-		);
40
-	}
32
+    public function rollback(array $params): void {
33
+        $this->log('Version "%s" of "%s" was restored.',
34
+            [
35
+                'version' => $params['revision'],
36
+                'path' => $params['path']
37
+            ],
38
+            ['version', 'path']
39
+        );
40
+    }
41 41
 
42
-	public function delete(array $params): void {
43
-		$this->log('Version "%s" was deleted.',
44
-			['path' => $params['path']],
45
-			['path']
46
-		);
47
-	}
42
+    public function delete(array $params): void {
43
+        $this->log('Version "%s" was deleted.',
44
+            ['path' => $params['path']],
45
+            ['path']
46
+        );
47
+    }
48 48
 }
Please login to merge, or discard this patch.
apps/admin_audit/lib/Actions/Trashbin.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -29,15 +29,15 @@
 block discarded – undo
29 29
 namespace OCA\AdminAudit\Actions;
30 30
 
31 31
 class Trashbin extends Action {
32
-	public function delete(array $params): void {
33
-		$this->log('File "%s" deleted from trash bin.',
34
-			['path' => $params['path']], ['path']
35
-		);
36
-	}
32
+    public function delete(array $params): void {
33
+        $this->log('File "%s" deleted from trash bin.',
34
+            ['path' => $params['path']], ['path']
35
+        );
36
+    }
37 37
 
38
-	public function restore(array $params): void {
39
-		$this->log('File "%s" restored from trash bin.',
40
-			['path' => $params['filePath']], ['path']
41
-		);
42
-	}
38
+    public function restore(array $params): void {
39
+        $this->log('File "%s" restored from trash bin.',
40
+            ['path' => $params['filePath']], ['path']
41
+        );
42
+    }
43 43
 }
Please login to merge, or discard this patch.
lib/public/Share/Exceptions/AlreadySharedException.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -29,22 +29,22 @@
 block discarded – undo
29 29
  * @since 22.0.0
30 30
  */
31 31
 class AlreadySharedException extends GenericShareException {
32
-	/** @var IShare */
33
-	private $existingShare;
32
+    /** @var IShare */
33
+    private $existingShare;
34 34
 
35
-	/**
36
-	 * @since 22.0.0
37
-	 */
38
-	public function __construct(string $message, IShare $existingShare) {
39
-		parent::__construct($message);
35
+    /**
36
+     * @since 22.0.0
37
+     */
38
+    public function __construct(string $message, IShare $existingShare) {
39
+        parent::__construct($message);
40 40
 
41
-		$this->existingShare = $existingShare;
42
-	}
41
+        $this->existingShare = $existingShare;
42
+    }
43 43
 
44
-	/**
45
-	 * @since 22.0.0
46
-	 */
47
-	public function getExistingShare(): IShare {
48
-		return $this->existingShare;
49
-	}
44
+    /**
45
+     * @since 22.0.0
46
+     */
47
+    public function getExistingShare(): IShare {
48
+        return $this->existingShare;
49
+    }
50 50
 }
Please login to merge, or discard this patch.
lib/private/Files/Cache/MoveFromCacheTrait.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -30,31 +30,31 @@
 block discarded – undo
30 30
  * Fallback implementation for moveFromCache
31 31
  */
32 32
 trait MoveFromCacheTrait {
33
-	/**
34
-	 * store meta data for a file or folder
35
-	 *
36
-	 * @param string $file
37
-	 * @param array $data
38
-	 *
39
-	 * @return int file id
40
-	 * @throws \RuntimeException
41
-	 */
42
-	abstract public function put($file, array $data);
33
+    /**
34
+     * store meta data for a file or folder
35
+     *
36
+     * @param string $file
37
+     * @param array $data
38
+     *
39
+     * @return int file id
40
+     * @throws \RuntimeException
41
+     */
42
+    abstract public function put($file, array $data);
43 43
 
44
-	abstract public function copyFromCache(ICache $sourceCache, ICacheEntry $sourceEntry, string $targetPath): int;
44
+    abstract public function copyFromCache(ICache $sourceCache, ICacheEntry $sourceEntry, string $targetPath): int;
45 45
 
46
-	/**
47
-	 * Move a file or folder in the cache
48
-	 *
49
-	 * @param \OCP\Files\Cache\ICache $sourceCache
50
-	 * @param string $sourcePath
51
-	 * @param string $targetPath
52
-	 */
53
-	public function moveFromCache(ICache $sourceCache, $sourcePath, $targetPath) {
54
-		$sourceEntry = $sourceCache->get($sourcePath);
46
+    /**
47
+     * Move a file or folder in the cache
48
+     *
49
+     * @param \OCP\Files\Cache\ICache $sourceCache
50
+     * @param string $sourcePath
51
+     * @param string $targetPath
52
+     */
53
+    public function moveFromCache(ICache $sourceCache, $sourcePath, $targetPath) {
54
+        $sourceEntry = $sourceCache->get($sourcePath);
55 55
 
56
-		$this->copyFromCache($sourceCache, $sourceEntry, $targetPath);
56
+        $this->copyFromCache($sourceCache, $sourceEntry, $targetPath);
57 57
 
58
-		$sourceCache->remove($sourcePath);
59
-	}
58
+        $sourceCache->remove($sourcePath);
59
+    }
60 60
 }
Please login to merge, or discard this patch.
core/Migrations/Version21000Date20210309185127.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -31,22 +31,22 @@
 block discarded – undo
31 31
 use OCP\Migration\SimpleMigrationStep;
32 32
 
33 33
 class Version21000Date20210309185127 extends SimpleMigrationStep {
34
-	/**
35
-	 * @param IOutput $output
36
-	 * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
37
-	 * @param array $options
38
-	 * @return null|ISchemaWrapper
39
-	 */
40
-	public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper {
41
-		/** @var ISchemaWrapper $schema */
42
-		$schema = $schemaClosure();
34
+    /**
35
+     * @param IOutput $output
36
+     * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
37
+     * @param array $options
38
+     * @return null|ISchemaWrapper
39
+     */
40
+    public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper {
41
+        /** @var ISchemaWrapper $schema */
42
+        $schema = $schemaClosure();
43 43
 
44
-		$table = $schema->getTable('known_users');
45
-		if (!$table->hasIndex('ku_known_user')) {
46
-			$table->addIndex(['known_user'], 'ku_known_user');
47
-			return $schema;
48
-		}
44
+        $table = $schema->getTable('known_users');
45
+        if (!$table->hasIndex('ku_known_user')) {
46
+            $table->addIndex(['known_user'], 'ku_known_user');
47
+            return $schema;
48
+        }
49 49
 
50
-		return null;
51
-	}
50
+        return null;
51
+    }
52 52
 }
Please login to merge, or discard this patch.
lib/public/Files/Search/ISearchQuery.php 1 patch
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -29,49 +29,49 @@
 block discarded – undo
29 29
  * @since 12.0.0
30 30
  */
31 31
 interface ISearchQuery {
32
-	/**
33
-	 * @return ISearchOperator
34
-	 * @since 12.0.0
35
-	 */
36
-	public function getSearchOperation();
32
+    /**
33
+     * @return ISearchOperator
34
+     * @since 12.0.0
35
+     */
36
+    public function getSearchOperation();
37 37
 
38
-	/**
39
-	 * Get the maximum number of results to return
40
-	 *
41
-	 * @return integer
42
-	 * @since 12.0.0
43
-	 */
44
-	public function getLimit();
38
+    /**
39
+     * Get the maximum number of results to return
40
+     *
41
+     * @return integer
42
+     * @since 12.0.0
43
+     */
44
+    public function getLimit();
45 45
 
46
-	/**
47
-	 * Get the offset for returned results
48
-	 *
49
-	 * @return integer
50
-	 * @since 12.0.0
51
-	 */
52
-	public function getOffset();
46
+    /**
47
+     * Get the offset for returned results
48
+     *
49
+     * @return integer
50
+     * @since 12.0.0
51
+     */
52
+    public function getOffset();
53 53
 
54
-	/**
55
-	 * The fields and directions to order by
56
-	 *
57
-	 * @return ISearchOrder[]
58
-	 * @since 12.0.0
59
-	 */
60
-	public function getOrder();
54
+    /**
55
+     * The fields and directions to order by
56
+     *
57
+     * @return ISearchOrder[]
58
+     * @since 12.0.0
59
+     */
60
+    public function getOrder();
61 61
 
62
-	/**
63
-	 * The user that issued the search
64
-	 *
65
-	 * @return ?IUser
66
-	 * @since 12.0.0
67
-	 */
68
-	public function getUser();
62
+    /**
63
+     * The user that issued the search
64
+     *
65
+     * @return ?IUser
66
+     * @since 12.0.0
67
+     */
68
+    public function getUser();
69 69
 
70
-	/**
71
-	 * Whether or not the search should be limited to the users home storage
72
-	 *
73
-	 * @return bool
74
-	 * @since 18.0.0
75
-	 */
76
-	public function limitToHome(): bool;
70
+    /**
71
+     * Whether or not the search should be limited to the users home storage
72
+     *
73
+     * @return bool
74
+     * @since 18.0.0
75
+     */
76
+    public function limitToHome(): bool;
77 77
 }
Please login to merge, or discard this patch.