Skip to content

Commit

Permalink
Merge pull request #331 from nextcloud/dependabot/composer/nextcloud/…
Browse files Browse the repository at this point in the history
…coding-standard-1.3.2
  • Loading branch information
dependabot[bot] authored Dec 26, 2024
2 parents 8956708 + 1886c2f commit 44b48e9
Show file tree
Hide file tree
Showing 7 changed files with 81 additions and 34 deletions.
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

0 comments on commit 44b48e9

Please sign in to comment.