Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore(deps-dev): Bump nextcloud/coding-standard from 1.2.1 to 1.3.2 #331

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 67 additions & 20 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/Categories/FilesSharing.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ protected function countEntries($tableName) {
$row = $result->fetch();
$result->closeCursor();

return (int) $row['num_entries'];
return (int)$row['num_entries'];
}

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

return (int) $row['num_entries'];
return (int)$row['num_entries'];
}
}
6 changes: 3 additions & 3 deletions lib/Categories/Stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected function countUserEntries() {
$row = $result->fetch();
$result->closeCursor();

return (int) $row['num_entries'];
return (int)$row['num_entries'];
}

/**
Expand All @@ -101,7 +101,7 @@ protected function countStorages($type) {
$row = $result->fetch();
$result->closeCursor();

return (int) $row['num_entries'];
return (int)$row['num_entries'];
}

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

return (int) $row['num_entries'];
return (int)$row['num_entries'];
}
}
2 changes: 1 addition & 1 deletion lib/Collector.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function sendReport(): DataResponse {
}

if ($response->getStatusCode() === Http::STATUS_OK) {
$this->config->setAppValue('survey_client', 'last_sent', (string) time());
$this->config->setAppValue('survey_client', 'last_sent', (string)time());
$this->config->setAppValue('survey_client', 'last_report', json_encode($report));
return new DataResponse(
$report
Expand Down
4 changes: 2 additions & 2 deletions lib/Settings/AdminSection.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ public function getName() {

/**
* @return int whether the form should be rather on the top or bottom of
* the settings navigation. The sections are arranged in ascending order of
* the priority values. It is required to return a value between 0 and 99.
* the settings navigation. The sections are arranged in ascending order of
* the priority values. It is required to return a value between 0 and 99.
*/
public function getPriority() {
return 80;
Expand Down
8 changes: 4 additions & 4 deletions lib/Settings/AdminSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct(Collector $collector,
IConfig $config,
IL10N $l,
IDateTimeFormatter $dateTimeFormatter,
IJobList $jobList
IJobList $jobList,
) {
$this->collector = $collector;
$this->config = $config;
Expand All @@ -49,7 +49,7 @@ public function __construct(Collector $collector,
* @return TemplateResponse
*/
public function getForm() {
$lastSentReportTime = (int) $this->config->getAppValue('survey_client', 'last_sent', '0');
$lastSentReportTime = (int)$this->config->getAppValue('survey_client', 'last_sent', '0');
if ($lastSentReportTime === 0) {
$lastSentReportDate = $this->l->t('Never');
} else {
Expand Down Expand Up @@ -80,8 +80,8 @@ public function getSection() {

/**
* @return int whether the form should be rather on the top or bottom of
* the admin section. The forms are arranged in ascending order of the
* priority values. It is required to return a value between 0 and 100.
* the admin section. The forms are arranged in ascending order of the
* priority values. It is required to return a value between 0 and 100.
*/
public function getPriority() {
return 50;
Expand Down
4 changes: 2 additions & 2 deletions templates/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

/** @var $l \OCP\IL10N */
/** @var $_ array */
/** @var \OCP\IL10N $l */
/** @var array $_ */

script('survey_client', 'admin');
style('survey_client', 'admin');
Expand Down
Loading