1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Fix phpcs issues

This commit is contained in:
Matthew Brown 2019-10-13 12:38:16 -04:00
parent 3c00f3d029
commit 7e76d3386d
2 changed files with 6 additions and 7 deletions

View File

@ -372,7 +372,7 @@ class Analyzer
foreach ($process_file_paths as $pool_key => $file_paths) {
$count = count($file_paths);
$middle = intdiv($count, 4);
$middle = \intdiv($count, 4);
$remainder = $count % 4;
$new_file_paths = [];

View File

@ -307,8 +307,7 @@ class Taint
FileStorageProvider $file_storage_provider,
ClassLikeStorageProvider $classlike_storage_provider,
\Psalm\Config $config
) : array
{
) : array {
$files = [];
foreach (array_merge(self::$archived_sinks, $this->new_sinks) as $new_sink) {
@ -333,16 +332,16 @@ class Taint
}
}
$files = array_filter(
$files = \array_filter(
$files,
function($file) use ($config) {
function ($file) use ($config) {
return $config->isInProjectDirs($file);
}
);
$arr = array_values($files);
$arr = \array_values($files);
return array_combine($arr, $arr);
return \array_combine($arr, $arr);
}
public function clearNewSinksAndSources() : void