Skip to content

Apply fixes from StyleCI #219

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

Merged
merged 1 commit into from
Sep 19, 2023
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
2 changes: 1 addition & 1 deletion spec/PHPCR/Shell/Config/ProfileLoaderSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function it_should_save_a_given_profile(
password: leech

EOT
, 0600)->shouldBeCalled();
, 0600)->shouldBeCalled();
$this->saveProfile($profile);
}
}
4 changes: 2 additions & 2 deletions src/PHPCR/Shell/Config/Profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ protected function validateDomain($domain)
/**
* Set a domain configuration.
*
* @param string $domain
* @param $key
* @param string $domain
* @param $key
* @param array|null $value
*/
public function set($domain, $key, $value = null)
Expand Down
10 changes: 5 additions & 5 deletions src/PHPCR/Shell/Console/Command/Phpcr/NodeListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ public function execute(InputInterface $input, OutputInterface $output)
if ($config['show_execution_time_list']) {
$output->writeln(
sprintf(
'%s nodes, %s properties in set (%s sec)',
$this->nbNodes,
$this->nbProperties,
number_format($this->time, $config['execution_time_expansion'])
)
'%s nodes, %s properties in set (%s sec)',
$this->nbNodes,
$this->nbProperties,
number_format($this->time, $config['execution_time_expansion'])
)
);
}

Expand Down
8 changes: 4 additions & 4 deletions src/PHPCR/Shell/Console/Helper/ResultFormatterHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ public function formatQueryResult(QueryResultInterface $result, OutputInterface
if (true === $this->config['show_execution_time_query']) {
$output->writeln(
sprintf(
'%s rows in set (%s sec)',
count($result->getRows()),
number_format($elapsed, $this->config['execution_time_expansion'])
)
'%s rows in set (%s sec)',
count($result->getRows()),
number_format($elapsed, $this->config['execution_time_expansion'])
)
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/PHPCR/Shell/Helper/EditorHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function testFromValue()
Two
Three
EOT
,
,
$res
);
}
Expand Down