Skip to content

Commit

Permalink
Apply Rector with type coverage level at 0
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Feb 4, 2025
1 parent 9803b46 commit 46276b6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lizmap/modules/lizmap/lib/Commands/ProjectLoad.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
return 1;
}
$checker = new \Lizmap\CliHelpers\RepositoryWMSChecker();
$checker->checkAllRepository($nb, function ($str) use ($output) {$output->writeln($str); });
$checker->checkAllRepository($nb, function ($str) use ($output): void {$output->writeln($str); });

return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion lizmap/modules/lizmap/lib/Commands/WMTSCacheClean.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$fakeServer = new \Jelix\FakeServerConf\ApacheMod(\jApp::wwwPath(), '/index.php');
$fakeServer->setHttpRequest($req->getServerURI());

$WMTSCache = new \Lizmap\CliHelpers\WMTSCache(function ($str) use ($output) {$output->writeln($str); });
$WMTSCache = new \Lizmap\CliHelpers\WMTSCache(function ($str) use ($output): void {$output->writeln($str); });
$WMTSCache->clean(
$input->getArgument('repository'),
$input->getArgument('project'),
Expand Down
2 changes: 1 addition & 1 deletion lizmap/modules/lizmap/lib/Commands/WMTSCapabilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$fakeServer = new \Jelix\FakeServerConf\ApacheMod(\jApp::wwwPath(), '/index.php');
$fakeServer->setHttpRequest($req->getServerURI());

$WMTSCache = new \Lizmap\CliHelpers\WMTSCache(function ($str) use ($output) {$output->writeln($str); });
$WMTSCache = new \Lizmap\CliHelpers\WMTSCache(function ($str) use ($output): void {$output->writeln($str); });

return $WMTSCache->capabilities(
$input->getArgument('repository'),
Expand Down
2 changes: 1 addition & 1 deletion lizmap/modules/lizmap/lib/Commands/WMTSSeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected function execute(InputInterface $input, OutputInterface $output)

return 1;
}
$WMTSCache = new \Lizmap\CliHelpers\WMTSCache(function ($str) use ($output) {$output->writeln($str); });
$WMTSCache = new \Lizmap\CliHelpers\WMTSCache(function ($str) use ($output): void {$output->writeln($str); });

return $WMTSCache->seed(
$input->getArgument('repository'),
Expand Down
2 changes: 1 addition & 1 deletion tests/units/testslib/ContextForTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public function getUrl($selector, $params = array())
{
// simple url build
$keyWithVal4QueryString = array();
array_walk($params, function($v ,$key) use (&$keyWithVal4QueryString) {$keyWithVal4QueryString[]=$key.'='.$v;});
array_walk($params, function($v ,$key) use (&$keyWithVal4QueryString): void {$keyWithVal4QueryString[]=$key.'='.$v;});
return $selector.'?'.implode("&", $keyWithVal4QueryString);
}

Expand Down

0 comments on commit 46276b6

Please sign in to comment.