1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 13:51:54 +01:00

Fix code style

This commit is contained in:
cgocast 2023-10-02 15:22:57 +02:00
parent 2eca720e9d
commit 6eb40e7897
2 changed files with 2 additions and 2 deletions

View File

@ -32,6 +32,7 @@ use Psalm\Type\Atomic\TNamedObject;
use Psalm\Type\Union;
use UnexpectedValueException;
use function array_merge;
use function in_array;
use function strlen;
@ -170,7 +171,6 @@ class BinaryOpAnalyzer
$removed_taints = $codebase->config->eventDispatcher->dispatchRemoveTaints($event);
if ($stmt_left_type && $stmt_left_type->parent_nodes) {
// numeric types can't be tainted html or has_quotes, neither can bool
if ($statements_analyzer->data_flow_graph instanceof TaintFlowGraph
&& $stmt_left_type->isSingle()
@ -191,7 +191,6 @@ class BinaryOpAnalyzer
}
if ($stmt_right_type && $stmt_right_type->parent_nodes) {
// numeric types can't be tainted html or has_quotes, neither can bool
if ($statements_analyzer->data_flow_graph instanceof TaintFlowGraph
&& $stmt_right_type->isSingle()

View File

@ -61,6 +61,7 @@ use Psalm\Type\Atomic\TMixed;
use Psalm\Type\Atomic\TNamedObject;
use Psalm\Type\Union;
use function array_merge;
use function count;
use function explode;
use function implode;