Completed
Push — master ( 3dac5b...93296c )
by John
47:41 queued 07:34
created
lib/public/Remote/IUser.php 1 patch
Indentation   +91 added lines, -91 removed lines patch added patch discarded remove patch
@@ -29,107 +29,107 @@
 block discarded – undo
29 29
  * @deprecated 23.0.0
30 30
  */
31 31
 interface IUser {
32
-	/**
33
-	 * @return string
34
-	 *
35
-	 * @since 13.0.0
36
-	 * @deprecated 23.0.0
37
-	 */
38
-	public function getUserId();
32
+    /**
33
+     * @return string
34
+     *
35
+     * @since 13.0.0
36
+     * @deprecated 23.0.0
37
+     */
38
+    public function getUserId();
39 39
 
40
-	/**
41
-	 * @return string
42
-	 *
43
-	 * @since 13.0.0
44
-	 * @deprecated 23.0.0
45
-	 */
46
-	public function getEmail();
40
+    /**
41
+     * @return string
42
+     *
43
+     * @since 13.0.0
44
+     * @deprecated 23.0.0
45
+     */
46
+    public function getEmail();
47 47
 
48
-	/**
49
-	 * @return string
50
-	 *
51
-	 * @since 13.0.0
52
-	 * @deprecated 23.0.0
53
-	 */
54
-	public function getDisplayName();
48
+    /**
49
+     * @return string
50
+     *
51
+     * @since 13.0.0
52
+     * @deprecated 23.0.0
53
+     */
54
+    public function getDisplayName();
55 55
 
56
-	/**
57
-	 * @return string
58
-	 *
59
-	 * @since 13.0.0
60
-	 * @deprecated 23.0.0
61
-	 */
62
-	public function getPhone();
56
+    /**
57
+     * @return string
58
+     *
59
+     * @since 13.0.0
60
+     * @deprecated 23.0.0
61
+     */
62
+    public function getPhone();
63 63
 
64
-	/**
65
-	 * @return string
66
-	 *
67
-	 * @since 13.0.0
68
-	 * @deprecated 23.0.0
69
-	 */
70
-	public function getAddress();
64
+    /**
65
+     * @return string
66
+     *
67
+     * @since 13.0.0
68
+     * @deprecated 23.0.0
69
+     */
70
+    public function getAddress();
71 71
 
72
-	/**
73
-	 * @return string
74
-	 *
75
-	 * @since 13.0.0
76
-	 * @deprecated 23.0.0
77
-	 */
78
-	public function getWebsite();
72
+    /**
73
+     * @return string
74
+     *
75
+     * @since 13.0.0
76
+     * @deprecated 23.0.0
77
+     */
78
+    public function getWebsite();
79 79
 
80
-	/**
81
-	 * @return string
82
-	 *
83
-	 * @since 13.0.0
84
-	 * @deprecated 23.0.0
85
-	 */
86
-	public function getTwitter();
80
+    /**
81
+     * @return string
82
+     *
83
+     * @since 13.0.0
84
+     * @deprecated 23.0.0
85
+     */
86
+    public function getTwitter();
87 87
 
88
-	/**
89
-	 * @return string[]
90
-	 *
91
-	 * @since 13.0.0
92
-	 * @deprecated 23.0.0
93
-	 */
94
-	public function getGroups();
88
+    /**
89
+     * @return string[]
90
+     *
91
+     * @since 13.0.0
92
+     * @deprecated 23.0.0
93
+     */
94
+    public function getGroups();
95 95
 
96
-	/**
97
-	 * @return string
98
-	 *
99
-	 * @since 13.0.0
100
-	 * @deprecated 23.0.0
101
-	 */
102
-	public function getLanguage();
96
+    /**
97
+     * @return string
98
+     *
99
+     * @since 13.0.0
100
+     * @deprecated 23.0.0
101
+     */
102
+    public function getLanguage();
103 103
 
104
-	/**
105
-	 * @return int
106
-	 *
107
-	 * @since 13.0.0
108
-	 * @deprecated 23.0.0
109
-	 */
110
-	public function getUsedSpace();
104
+    /**
105
+     * @return int
106
+     *
107
+     * @since 13.0.0
108
+     * @deprecated 23.0.0
109
+     */
110
+    public function getUsedSpace();
111 111
 
112
-	/**
113
-	 * @return int
114
-	 *
115
-	 * @since 13.0.0
116
-	 * @deprecated 23.0.0
117
-	 */
118
-	public function getFreeSpace();
112
+    /**
113
+     * @return int
114
+     *
115
+     * @since 13.0.0
116
+     * @deprecated 23.0.0
117
+     */
118
+    public function getFreeSpace();
119 119
 
120
-	/**
121
-	 * @return int
122
-	 *
123
-	 * @since 13.0.0
124
-	 * @deprecated 23.0.0
125
-	 */
126
-	public function getTotalSpace();
120
+    /**
121
+     * @return int
122
+     *
123
+     * @since 13.0.0
124
+     * @deprecated 23.0.0
125
+     */
126
+    public function getTotalSpace();
127 127
 
128
-	/**
129
-	 * @return int
130
-	 *
131
-	 * @since 13.0.0
132
-	 * @deprecated 23.0.0
133
-	 */
134
-	public function getQuota();
128
+    /**
129
+     * @return int
130
+     *
131
+     * @since 13.0.0
132
+     * @deprecated 23.0.0
133
+     */
134
+    public function getQuota();
135 135
 }
Please login to merge, or discard this patch.
lib/public/Remote/ICredentials.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -29,19 +29,19 @@
 block discarded – undo
29 29
  * @deprecated 23.0.0
30 30
  */
31 31
 interface ICredentials {
32
-	/**
33
-	 * @return string
34
-	 *
35
-	 * @since 13.0.0
36
-	 * @deprecated 23.0.0
37
-	 */
38
-	public function getUsername();
32
+    /**
33
+     * @return string
34
+     *
35
+     * @since 13.0.0
36
+     * @deprecated 23.0.0
37
+     */
38
+    public function getUsername();
39 39
 
40
-	/**
41
-	 * @return string
42
-	 *
43
-	 * @since 13.0.0
44
-	 * @deprecated 23.0.0
45
-	 */
46
-	public function getPassword();
40
+    /**
41
+     * @return string
42
+     *
43
+     * @since 13.0.0
44
+     * @deprecated 23.0.0
45
+     */
46
+    public function getPassword();
47 47
 }
Please login to merge, or discard this patch.
lib/public/Remote/IInstanceFactory.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -27,12 +27,12 @@
 block discarded – undo
27 27
  * @deprecated 23.0.0
28 28
  */
29 29
 interface IInstanceFactory {
30
-	/**
31
-	 * @param string $url
32
-	 * @return IInstance
33
-	 *
34
-	 * @since 13.0.0
35
-	 * @deprecated 23.0.0
36
-	 */
37
-	public function getInstance($url);
30
+    /**
31
+     * @param string $url
32
+     * @return IInstance
33
+     *
34
+     * @since 13.0.0
35
+     * @deprecated 23.0.0
36
+     */
37
+    public function getInstance($url);
38 38
 }
Please login to merge, or discard this patch.
lib/public/Remote/Api/IUserApi.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -29,12 +29,12 @@
 block discarded – undo
29 29
  * @deprecated 23.0.0
30 30
  */
31 31
 interface IUserApi {
32
-	/**
33
-	 * @param string $userId
34
-	 * @return IUser
35
-	 *
36
-	 * @since 13.0.0
37
-	 * @deprecated 23.0.0
38
-	 */
39
-	public function getUser($userId);
32
+    /**
33
+     * @param string $userId
34
+     * @return IUser
35
+     *
36
+     * @since 13.0.0
37
+     * @deprecated 23.0.0
38
+     */
39
+    public function getUser($userId);
40 40
 }
Please login to merge, or discard this patch.
lib/public/Remote/Api/ICapabilitiesApi.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,11 +27,11 @@
 block discarded – undo
27 27
  * @deprecated 23.0.0
28 28
  */
29 29
 interface ICapabilitiesApi {
30
-	/**
31
-	 * @return array The capabilities in the form of [$appId => [$capability => $value]]
32
-	 *
33
-	 * @since 13.0.0
34
-	 * @deprecated 23.0.0
35
-	 */
36
-	public function getCapabilities();
30
+    /**
31
+     * @return array The capabilities in the form of [$appId => [$capability => $value]]
32
+     *
33
+     * @since 13.0.0
34
+     * @deprecated 23.0.0
35
+     */
36
+    public function getCapabilities();
37 37
 }
Please login to merge, or discard this patch.
lib/public/Remote/Api/IApiFactory.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -30,13 +30,13 @@
 block discarded – undo
30 30
  * @deprecated 23.0.0
31 31
  */
32 32
 interface IApiFactory {
33
-	/**
34
-	 * @param IInstance $instance
35
-	 * @param ICredentials $credentials
36
-	 * @return IApiCollection
37
-	 *
38
-	 * @since 13.0.0
39
-	 * @deprecated 23.0.0
40
-	 */
41
-	public function getApiCollection(IInstance $instance, ICredentials $credentials);
33
+    /**
34
+     * @param IInstance $instance
35
+     * @param ICredentials $credentials
36
+     * @return IApiCollection
37
+     *
38
+     * @since 13.0.0
39
+     * @deprecated 23.0.0
40
+     */
41
+    public function getApiCollection(IInstance $instance, ICredentials $credentials);
42 42
 }
Please login to merge, or discard this patch.
lib/public/Remote/Api/IApiCollection.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -29,19 +29,19 @@
 block discarded – undo
29 29
  * @deprecated 23.0.0
30 30
  */
31 31
 interface IApiCollection {
32
-	/**
33
-	 * @return IUserApi
34
-	 *
35
-	 * @since 13.0.0
36
-	 * @deprecated 23.0.0
37
-	 */
38
-	public function getUserApi();
32
+    /**
33
+     * @return IUserApi
34
+     *
35
+     * @since 13.0.0
36
+     * @deprecated 23.0.0
37
+     */
38
+    public function getUserApi();
39 39
 
40
-	/**
41
-	 * @return ICapabilitiesApi
42
-	 *
43
-	 * @since 13.0.0
44
-	 * @deprecated 23.0.0
45
-	 */
46
-	public function getCapabilitiesApi();
40
+    /**
41
+     * @return ICapabilitiesApi
42
+     *
43
+     * @since 13.0.0
44
+     * @deprecated 23.0.0
45
+     */
46
+    public function getCapabilitiesApi();
47 47
 }
Please login to merge, or discard this patch.
core/Command/Integrity/CheckCore.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 		$result = $this->checker->verifyCoreSignature();
69 69
 		$this->writeArrayInOutputFormat($input, $output, $result);
70 70
 		if (count($result) > 0) {
71
-			$output->writeln('<error>' . count($result) . ' errors found</error>', OutputInterface::VERBOSITY_VERBOSE);
71
+			$output->writeln('<error>'.count($result).' errors found</error>', OutputInterface::VERBOSITY_VERBOSE);
72 72
 			return 1;
73 73
 		}
74 74
 		$output->writeln('<info>No errors found</info>', OutputInterface::VERBOSITY_VERBOSE);
Please login to merge, or discard this patch.
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -18,38 +18,38 @@
 block discarded – undo
18 18
  * @package OC\Core\Command\Integrity
19 19
  */
20 20
 class CheckCore extends Base {
21
-	public function __construct(
22
-		private Checker $checker,
23
-	) {
24
-		parent::__construct();
25
-	}
21
+    public function __construct(
22
+        private Checker $checker,
23
+    ) {
24
+        parent::__construct();
25
+    }
26 26
 
27
-	/**
28
-	 * {@inheritdoc }
29
-	 */
30
-	protected function configure() {
31
-		parent::configure();
32
-		$this
33
-			->setName('integrity:check-core')
34
-			->setDescription('Check integrity of core code using a signature.');
35
-	}
27
+    /**
28
+     * {@inheritdoc }
29
+     */
30
+    protected function configure() {
31
+        parent::configure();
32
+        $this
33
+            ->setName('integrity:check-core')
34
+            ->setDescription('Check integrity of core code using a signature.');
35
+    }
36 36
 
37
-	/**
38
-	 * {@inheritdoc }
39
-	 */
40
-	protected function execute(InputInterface $input, OutputInterface $output): int {
41
-		if (!$this->checker->isCodeCheckEnforced()) {
42
-			$output->writeln('<comment>integrity:check-core can not be used on git checkouts</comment>');
43
-			return 2;
44
-		}
37
+    /**
38
+     * {@inheritdoc }
39
+     */
40
+    protected function execute(InputInterface $input, OutputInterface $output): int {
41
+        if (!$this->checker->isCodeCheckEnforced()) {
42
+            $output->writeln('<comment>integrity:check-core can not be used on git checkouts</comment>');
43
+            return 2;
44
+        }
45 45
 
46
-		$result = $this->checker->verifyCoreSignature();
47
-		$this->writeArrayInOutputFormat($input, $output, $result);
48
-		if (count($result) > 0) {
49
-			$output->writeln('<error>' . count($result) . ' errors found</error>', OutputInterface::VERBOSITY_VERBOSE);
50
-			return 1;
51
-		}
52
-		$output->writeln('<info>No errors found</info>', OutputInterface::VERBOSITY_VERBOSE);
53
-		return 0;
54
-	}
46
+        $result = $this->checker->verifyCoreSignature();
47
+        $this->writeArrayInOutputFormat($input, $output, $result);
48
+        if (count($result) > 0) {
49
+            $output->writeln('<error>' . count($result) . ' errors found</error>', OutputInterface::VERBOSITY_VERBOSE);
50
+            return 1;
51
+        }
52
+        $output->writeln('<info>No errors found</info>', OutputInterface::VERBOSITY_VERBOSE);
53
+        return 0;
54
+    }
55 55
 }
Please login to merge, or discard this patch.
lib/private/DB/QueryBuilder/ExpressionBuilder/OCIExpressionBuilder.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -168,11 +168,11 @@  discard block
 block discarded – undo
168 168
 	public function castColumn($column, $type): IQueryFunction {
169 169
 		if ($type === IQueryBuilder::PARAM_STR) {
170 170
 			$column = $this->helper->quoteColumnName($column);
171
-			return new QueryFunction('to_char(' . $column . ')');
171
+			return new QueryFunction('to_char('.$column.')');
172 172
 		}
173 173
 		if ($type === IQueryBuilder::PARAM_INT) {
174 174
 			$column = $this->helper->quoteColumnName($column);
175
-			return new QueryFunction('to_number(to_char(' . $column . '))');
175
+			return new QueryFunction('to_number(to_char('.$column.'))');
176 176
 		}
177 177
 
178 178
 		return parent::castColumn($column, $type);
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
 	 * @inheritdoc
183 183
 	 */
184 184
 	public function like($x, $y, $type = null): string {
185
-		return parent::like($x, $y, $type) . " ESCAPE '\\'";
185
+		return parent::like($x, $y, $type)." ESCAPE '\\'";
186 186
 	}
187 187
 
188 188
 	/**
Please login to merge, or discard this patch.
Indentation   +78 added lines, -78 removed lines patch added patch discarded remove patch
@@ -14,93 +14,93 @@
 block discarded – undo
14 14
 use OCP\DB\QueryBuilder\IQueryFunction;
15 15
 
16 16
 class OCIExpressionBuilder extends ExpressionBuilder {
17
-	/**
18
-	 * @param mixed $column
19
-	 * @param mixed|null $type
20
-	 * @return array|IQueryFunction|string
21
-	 */
22
-	protected function prepareColumn($column, $type) {
23
-		if ($type === IQueryBuilder::PARAM_STR && !is_array($column) && !($column instanceof IParameter) && !($column instanceof ILiteral)) {
24
-			$column = $this->castColumn($column, $type);
25
-		}
17
+    /**
18
+     * @param mixed $column
19
+     * @param mixed|null $type
20
+     * @return array|IQueryFunction|string
21
+     */
22
+    protected function prepareColumn($column, $type) {
23
+        if ($type === IQueryBuilder::PARAM_STR && !is_array($column) && !($column instanceof IParameter) && !($column instanceof ILiteral)) {
24
+            $column = $this->castColumn($column, $type);
25
+        }
26 26
 
27
-		return parent::prepareColumn($column, $type);
28
-	}
27
+        return parent::prepareColumn($column, $type);
28
+    }
29 29
 
30
-	/**
31
-	 * @inheritdoc
32
-	 */
33
-	public function in($x, $y, $type = null): string {
34
-		$x = $this->prepareColumn($x, $type);
35
-		$y = $this->prepareColumn($y, $type);
30
+    /**
31
+     * @inheritdoc
32
+     */
33
+    public function in($x, $y, $type = null): string {
34
+        $x = $this->prepareColumn($x, $type);
35
+        $y = $this->prepareColumn($y, $type);
36 36
 
37
-		return $this->expressionBuilder->in($x, $y);
38
-	}
37
+        return $this->expressionBuilder->in($x, $y);
38
+    }
39 39
 
40
-	/**
41
-	 * @inheritdoc
42
-	 */
43
-	public function notIn($x, $y, $type = null): string {
44
-		$x = $this->prepareColumn($x, $type);
45
-		$y = $this->prepareColumn($y, $type);
40
+    /**
41
+     * @inheritdoc
42
+     */
43
+    public function notIn($x, $y, $type = null): string {
44
+        $x = $this->prepareColumn($x, $type);
45
+        $y = $this->prepareColumn($y, $type);
46 46
 
47
-		return $this->expressionBuilder->notIn($x, $y);
48
-	}
47
+        return $this->expressionBuilder->notIn($x, $y);
48
+    }
49 49
 
50
-	/**
51
-	 * Creates a $x = '' statement, because Oracle needs a different check
52
-	 *
53
-	 * @param string|ILiteral|IParameter|IQueryFunction $x The field in string format to be inspected by the comparison.
54
-	 * @return string
55
-	 * @since 13.0.0
56
-	 */
57
-	public function emptyString($x): string {
58
-		return $this->isNull($x);
59
-	}
50
+    /**
51
+     * Creates a $x = '' statement, because Oracle needs a different check
52
+     *
53
+     * @param string|ILiteral|IParameter|IQueryFunction $x The field in string format to be inspected by the comparison.
54
+     * @return string
55
+     * @since 13.0.0
56
+     */
57
+    public function emptyString($x): string {
58
+        return $this->isNull($x);
59
+    }
60 60
 
61
-	/**
62
-	 * Creates a `$x <> ''` statement, because Oracle needs a different check
63
-	 *
64
-	 * @param string|ILiteral|IParameter|IQueryFunction $x The field in string format to be inspected by the comparison.
65
-	 * @return string
66
-	 * @since 13.0.0
67
-	 */
68
-	public function nonEmptyString($x): string {
69
-		return $this->isNotNull($x);
70
-	}
61
+    /**
62
+     * Creates a `$x <> ''` statement, because Oracle needs a different check
63
+     *
64
+     * @param string|ILiteral|IParameter|IQueryFunction $x The field in string format to be inspected by the comparison.
65
+     * @return string
66
+     * @since 13.0.0
67
+     */
68
+    public function nonEmptyString($x): string {
69
+        return $this->isNotNull($x);
70
+    }
71 71
 
72
-	/**
73
-	 * Returns a IQueryFunction that casts the column to the given type
74
-	 *
75
-	 * @param string|IQueryFunction $column
76
-	 * @param mixed $type One of IQueryBuilder::PARAM_*
77
-	 * @psalm-param IQueryBuilder::PARAM_* $type
78
-	 * @return IQueryFunction
79
-	 */
80
-	public function castColumn($column, $type): IQueryFunction {
81
-		if ($type === IQueryBuilder::PARAM_STR) {
82
-			$column = $this->helper->quoteColumnName($column);
83
-			return new QueryFunction('to_char(' . $column . ')');
84
-		}
85
-		if ($type === IQueryBuilder::PARAM_INT) {
86
-			$column = $this->helper->quoteColumnName($column);
87
-			return new QueryFunction('to_number(to_char(' . $column . '))');
88
-		}
72
+    /**
73
+     * Returns a IQueryFunction that casts the column to the given type
74
+     *
75
+     * @param string|IQueryFunction $column
76
+     * @param mixed $type One of IQueryBuilder::PARAM_*
77
+     * @psalm-param IQueryBuilder::PARAM_* $type
78
+     * @return IQueryFunction
79
+     */
80
+    public function castColumn($column, $type): IQueryFunction {
81
+        if ($type === IQueryBuilder::PARAM_STR) {
82
+            $column = $this->helper->quoteColumnName($column);
83
+            return new QueryFunction('to_char(' . $column . ')');
84
+        }
85
+        if ($type === IQueryBuilder::PARAM_INT) {
86
+            $column = $this->helper->quoteColumnName($column);
87
+            return new QueryFunction('to_number(to_char(' . $column . '))');
88
+        }
89 89
 
90
-		return parent::castColumn($column, $type);
91
-	}
90
+        return parent::castColumn($column, $type);
91
+    }
92 92
 
93
-	/**
94
-	 * @inheritdoc
95
-	 */
96
-	public function like($x, $y, $type = null): string {
97
-		return parent::like($x, $y, $type) . " ESCAPE '\\'";
98
-	}
93
+    /**
94
+     * @inheritdoc
95
+     */
96
+    public function like($x, $y, $type = null): string {
97
+        return parent::like($x, $y, $type) . " ESCAPE '\\'";
98
+    }
99 99
 
100
-	/**
101
-	 * @inheritdoc
102
-	 */
103
-	public function iLike($x, $y, $type = null): string {
104
-		return $this->like($this->functionBuilder->lower($x), $this->functionBuilder->lower($y));
105
-	}
100
+    /**
101
+     * @inheritdoc
102
+     */
103
+    public function iLike($x, $y, $type = null): string {
104
+        return $this->like($this->functionBuilder->lower($x), $this->functionBuilder->lower($y));
105
+    }
106 106
 }
Please login to merge, or discard this patch.