Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/groupfolders.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-03-31 17:54:33 +0300
committerCarl Schwan <carl@carlschwan.eu>2022-04-04 13:46:54 +0300
commitd85b5966700f03eee443065864e4ad8d79832e9b (patch)
treee2a566f22fb527f9b6a2412e105085453aa7aa80 /lib/Command/Scan.php
parentd03094d3ddb65cb2e3e12d31ffe3c5d3cb1e03e0 (diff)
Modernize PHP code to php 7.4 standard
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'lib/Command/Scan.php')
-rw-r--r--lib/Command/Scan.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Command/Scan.php b/lib/Command/Scan.php
index 62933436..697322b4 100644
--- a/lib/Command/Scan.php
+++ b/lib/Command/Scan.php
@@ -32,8 +32,8 @@ use Symfony\Component\Console\Output\OutputInterface;
use OCP\Files\Cache\IScanner;
class Scan extends FolderCommand {
- private $foldersCounter = 0;
- private $filesCounter = 0;
+ private int $foldersCounter = 0;
+ private int $filesCounter = 0;
protected function configure() {
$this
@@ -91,7 +91,7 @@ class Scan extends FolderCommand {
return 0;
}
- protected function showSummary($headers, $rows, OutputInterface $output, float $duration) {
+ protected function showSummary($headers, $rows, OutputInterface $output, float $duration): void {
$niceDate = date('H:i:s', (int)$duration);
if (!$rows) {
$rows = [