Skip to content

Commit

Permalink
Merge pull request #430 from nextcloud/dependabot/composer/nextcloud/…
Browse files Browse the repository at this point in the history
…coding-standard-1.2.3
  • Loading branch information
dependabot[bot] authored Aug 26, 2024
2 parents e4e7908 + 9c274eb commit bb27e3f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
24 changes: 12 additions & 12 deletions composer.lock

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

6 changes: 3 additions & 3 deletions lib/Command/Compare.php
Original file line number Diff line number Diff line change
Expand Up @@ -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("<error> - " . $query['sql'] . "</error>");
$output->writeln('<error> - ' . $query['sql'] . '</error>');
}
foreach ($added as $query) {
$output->writeln("<info> + " . $query['sql'] . "</info>");
$output->writeln('<info> + ' . $query['sql'] . '</info>');
if ($backtrace) {
$prefixLength = strlen($this->filePrefix($query['backtrace']));
$backtrace = array_map(function ($trace) use ($prefixLength) {
Expand All @@ -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']);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Command/Disable.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ protected function configure() {

protected function execute(InputInterface $input, OutputInterface $output): int {
$this->config->setSystemValue('profiler', false);
$output->writeln("<info>Note: debug mode has been left enabled</info>");
$output->writeln('<info>Note: debug mode has been left enabled</info>');
return 0;
}
}
2 changes: 1 addition & 1 deletion lib/Command/ListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion lib/DataCollector/MemoryDataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit bb27e3f

Please sign in to comment.