Code Duplication    Length = 6-6 lines in 2 locations

src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/InstancePropertyFetchAnalyzer.php 1 location

@@ 266-271 (lines=6) @@
263
                $codebase->analyzer->incrementMixedCount($statements_analyzer->getFilePath());
264
            }
265
266
            if ($stmt->name instanceof PhpParser\Node\Identifier) {
267
                $codebase->analyzer->addMixedMemberName(
268
                    '$' . $stmt->name->name,
269
                    $context->calling_method_id ?: $statements_analyzer->getFileName()
270
                );
271
            }
272
273
            if (IssueBuffer::accepts(
274
                new MixedPropertyFetch(

src/Psalm/Internal/Analyzer/Statements/Expression/Assignment/InstancePropertyAssignmentAnalyzer.php 1 location

@@ 170-175 (lines=6) @@
167
                    $codebase->analyzer->incrementMixedCount($statements_analyzer->getFilePath());
168
                }
169
170
                if ($stmt->name instanceof PhpParser\Node\Identifier) {
171
                    $codebase->analyzer->addMixedMemberName(
172
                        '$' . $stmt->name->name,
173
                        $context->calling_method_id ?: $statements_analyzer->getFileName()
174
                    );
175
                }
176
177
                if (IssueBuffer::accepts(
178
                    new MixedPropertyAssignment(