diff --git a/composer.lock b/composer.lock index d156314..e0f799c 100644 --- a/composer.lock +++ b/composer.lock @@ -813,16 +813,16 @@ }, { "name": "nextcloud/coding-standard", - "version": "v1.2.1", + "version": "v1.2.3", "source": { "type": "git", "url": "https://github.com/nextcloud/coding-standard.git", - "reference": "cf5f18d989ec62fb4cdc7fc92a36baf34b3d829e" + "reference": "bc9c53a5306114b60c4363057aff9c2ed10a54da" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nextcloud/coding-standard/zipball/cf5f18d989ec62fb4cdc7fc92a36baf34b3d829e", - "reference": "cf5f18d989ec62fb4cdc7fc92a36baf34b3d829e", + "url": "https://api.github.com/repos/nextcloud/coding-standard/zipball/bc9c53a5306114b60c4363057aff9c2ed10a54da", + "reference": "bc9c53a5306114b60c4363057aff9c2ed10a54da", "shasum": "" }, "require": { @@ -848,9 +848,9 @@ "description": "Nextcloud coding standards for the php cs fixer", "support": { "issues": "https://github.com/nextcloud/coding-standard/issues", - "source": "https://github.com/nextcloud/coding-standard/tree/v1.2.1" + "source": "https://github.com/nextcloud/coding-standard/tree/v1.2.3" }, - "time": "2024-02-01T14:54:37+00:00" + "time": "2024-08-23T14:32:32+00:00" }, { "name": "nextcloud/ocp", @@ -1073,16 +1073,16 @@ }, { "name": "php-cs-fixer/shim", - "version": "v3.49.0", + "version": "v3.62.0", "source": { "type": "git", "url": "https://github.com/PHP-CS-Fixer/shim.git", - "reference": "f7d3219cac46632f12362c9aa7c2ac0d2fe92c52" + "reference": "7a91d5ce45c486f5b445d95901228507a02f60ae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/shim/zipball/f7d3219cac46632f12362c9aa7c2ac0d2fe92c52", - "reference": "f7d3219cac46632f12362c9aa7c2ac0d2fe92c52", + "url": "https://api.github.com/repos/PHP-CS-Fixer/shim/zipball/7a91d5ce45c486f5b445d95901228507a02f60ae", + "reference": "7a91d5ce45c486f5b445d95901228507a02f60ae", "shasum": "" }, "require": { @@ -1119,9 +1119,9 @@ "description": "A tool to automatically fix PHP code style", "support": { "issues": "https://github.com/PHP-CS-Fixer/shim/issues", - "source": "https://github.com/PHP-CS-Fixer/shim/tree/v3.49.0" + "source": "https://github.com/PHP-CS-Fixer/shim/tree/v3.62.0" }, - "time": "2024-02-02T00:42:09+00:00" + "time": "2024-08-07T17:03:46+00:00" }, { "name": "phpdocumentor/reflection-common", diff --git a/lib/Command/Compare.php b/lib/Command/Compare.php index c92dcfd..4ae417e 100644 --- a/lib/Command/Compare.php +++ b/lib/Command/Compare.php @@ -155,10 +155,10 @@ private function compareSingle(OutputInterface $output, array $from, array $to, [$added, $removed] = $this->diffQueries($fromQueries, $toQueries); foreach ($removed as $query) { - $output->writeln(" - " . $query['sql'] . ""); + $output->writeln(' - ' . $query['sql'] . ''); } foreach ($added as $query) { - $output->writeln(" + " . $query['sql'] . ""); + $output->writeln(' + ' . $query['sql'] . ''); if ($backtrace) { $prefixLength = strlen($this->filePrefix($query['backtrace'])); $backtrace = array_map(function ($trace) use ($prefixLength) { @@ -171,7 +171,7 @@ private function compareSingle(OutputInterface $output, array $from, array $to, return strlen($item['call']); }, $backtrace)); foreach ($backtrace as $trace) { - $output->writeln(" " . str_pad($trace['call'], $callLength) . ' - ' . $trace['line']); + $output->writeln(' ' . str_pad($trace['call'], $callLength) . ' - ' . $trace['line']); } } } diff --git a/lib/Command/Disable.php b/lib/Command/Disable.php index edd2bac..25379a2 100644 --- a/lib/Command/Disable.php +++ b/lib/Command/Disable.php @@ -28,7 +28,7 @@ protected function configure() { protected function execute(InputInterface $input, OutputInterface $output): int { $this->config->setSystemValue('profiler', false); - $output->writeln("Note: debug mode has been left enabled"); + $output->writeln('Note: debug mode has been left enabled'); return 0; } } diff --git a/lib/Command/ListCommand.php b/lib/Command/ListCommand.php index 67d9255..96bc32b 100644 --- a/lib/Command/ListCommand.php +++ b/lib/Command/ListCommand.php @@ -32,7 +32,7 @@ protected function configure() { ->addOption('limit', null, InputOption::VALUE_REQUIRED, 'Maximum number of profiles to return') ->addOption('url', null, InputOption::VALUE_REQUIRED, 'Url to list profiles for') ->addOption('since', null, InputOption::VALUE_REQUIRED, 'Minimum date for listed profiles, as unix timestamp') - ->addOption('before', null, InputOption::VALUE_REQUIRED, 'Maximum date for listed profiles, as unix timestamp'); + ->addOption('before', null, InputOption::VALUE_REQUIRED, 'Maximum date for listed profiles, as unix timestamp'); } protected function execute(InputInterface $input, OutputInterface $output): int { diff --git a/lib/DataCollector/MemoryDataCollector.php b/lib/DataCollector/MemoryDataCollector.php index f59a5c9..6042678 100644 --- a/lib/DataCollector/MemoryDataCollector.php +++ b/lib/DataCollector/MemoryDataCollector.php @@ -50,7 +50,7 @@ private function convertToBytes(string $memoryLimit) { } elseif (str_starts_with($max, '0')) { $max = \intval($max, 8); } else { - $max = (int) $max; + $max = (int)$max; } switch (substr($memoryLimit, -1)) {