Skip to content

Commit 44b48e9

Browse files
Merge pull request #331 from nextcloud/dependabot/composer/nextcloud/coding-standard-1.3.2
2 parents 8956708 + 1886c2f commit 44b48e9

File tree

7 files changed

+81
-34
lines changed

7 files changed

+81
-34
lines changed

Diff for: composer.lock

+67-20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: lib/Categories/FilesSharing.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ protected function countEntries($tableName) {
8686
$row = $result->fetch();
8787
$result->closeCursor();
8888

89-
return (int) $row['num_entries'];
89+
return (int)$row['num_entries'];
9090
}
9191

9292
/**
@@ -108,6 +108,6 @@ protected function countShares($type, $noShareWith = false) {
108108
$row = $result->fetch();
109109
$result->closeCursor();
110110

111-
return (int) $row['num_entries'];
111+
return (int)$row['num_entries'];
112112
}
113113
}

Diff for: lib/Categories/Stats.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ protected function countUserEntries() {
7676
$row = $result->fetch();
7777
$result->closeCursor();
7878

79-
return (int) $row['num_entries'];
79+
return (int)$row['num_entries'];
8080
}
8181

8282
/**
@@ -101,7 +101,7 @@ protected function countStorages($type) {
101101
$row = $result->fetch();
102102
$result->closeCursor();
103103

104-
return (int) $row['num_entries'];
104+
return (int)$row['num_entries'];
105105
}
106106

107107
/**
@@ -121,6 +121,6 @@ protected function countEntries($tableName, $column = '*') {
121121
$row = $result->fetch();
122122
$result->closeCursor();
123123

124-
return (int) $row['num_entries'];
124+
return (int)$row['num_entries'];
125125
}
126126
}

Diff for: lib/Collector.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public function sendReport(): DataResponse {
150150
}
151151

152152
if ($response->getStatusCode() === Http::STATUS_OK) {
153-
$this->config->setAppValue('survey_client', 'last_sent', (string) time());
153+
$this->config->setAppValue('survey_client', 'last_sent', (string)time());
154154
$this->config->setAppValue('survey_client', 'last_report', json_encode($report));
155155
return new DataResponse(
156156
$report

Diff for: lib/Settings/AdminSection.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ public function getName() {
4444

4545
/**
4646
* @return int whether the form should be rather on the top or bottom of
47-
* the settings navigation. The sections are arranged in ascending order of
48-
* the priority values. It is required to return a value between 0 and 99.
47+
* the settings navigation. The sections are arranged in ascending order of
48+
* the priority values. It is required to return a value between 0 and 99.
4949
*/
5050
public function getPriority() {
5151
return 80;

Diff for: lib/Settings/AdminSettings.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function __construct(Collector $collector,
3636
IConfig $config,
3737
IL10N $l,
3838
IDateTimeFormatter $dateTimeFormatter,
39-
IJobList $jobList
39+
IJobList $jobList,
4040
) {
4141
$this->collector = $collector;
4242
$this->config = $config;
@@ -49,7 +49,7 @@ public function __construct(Collector $collector,
4949
* @return TemplateResponse
5050
*/
5151
public function getForm() {
52-
$lastSentReportTime = (int) $this->config->getAppValue('survey_client', 'last_sent', '0');
52+
$lastSentReportTime = (int)$this->config->getAppValue('survey_client', 'last_sent', '0');
5353
if ($lastSentReportTime === 0) {
5454
$lastSentReportDate = $this->l->t('Never');
5555
} else {
@@ -80,8 +80,8 @@ public function getSection() {
8080

8181
/**
8282
* @return int whether the form should be rather on the top or bottom of
83-
* the admin section. The forms are arranged in ascending order of the
84-
* priority values. It is required to return a value between 0 and 100.
83+
* the admin section. The forms are arranged in ascending order of the
84+
* priority values. It is required to return a value between 0 and 100.
8585
*/
8686
public function getPriority() {
8787
return 50;

Diff for: templates/admin.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* SPDX-License-Identifier: AGPL-3.0-or-later
66
*/
77

8-
/** @var $l \OCP\IL10N */
9-
/** @var $_ array */
8+
/** @var \OCP\IL10N $l */
9+
/** @var array $_ */
1010

1111
script('survey_client', 'admin');
1212
style('survey_client', 'admin');

0 commit comments

Comments
 (0)