mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
Reduce line length
This commit is contained in:
parent
22a716f4da
commit
93e7486d5e
@ -1103,7 +1103,9 @@ class CallChecker
|
||||
if ($stmt->class instanceof PhpParser\Node\Name) {
|
||||
$fq_class_name = null;
|
||||
|
||||
if (count($stmt->class->parts) === 1 && in_array($stmt->class->parts[0], ['self', 'static', 'parent'], true)) {
|
||||
if (count($stmt->class->parts) === 1
|
||||
&& in_array($stmt->class->parts[0], ['self', 'static', 'parent'], true)
|
||||
) {
|
||||
if ($stmt->class->parts[0] === 'parent') {
|
||||
$fq_class_name = $statements_checker->getParentFQCLN();
|
||||
|
||||
|
@ -574,7 +574,9 @@ class FetchChecker
|
||||
$fq_class_name = null;
|
||||
|
||||
if ($stmt->class instanceof PhpParser\Node\Name) {
|
||||
if (count($stmt->class->parts) === 1 && in_array($stmt->class->parts[0], ['self', 'static', 'parent'], true)) {
|
||||
if (count($stmt->class->parts) === 1
|
||||
&& in_array($stmt->class->parts[0], ['self', 'static', 'parent'], true)
|
||||
) {
|
||||
if ($stmt->class->parts[0] === 'parent') {
|
||||
$fq_class_name = $statements_checker->getParentFQCLN();
|
||||
|
||||
|
@ -1416,7 +1416,9 @@ class ExpressionChecker
|
||||
&& is_string($stmt->name)
|
||||
&& $stmt->class instanceof PhpParser\Node\Name
|
||||
) {
|
||||
if (count($stmt->class->parts) === 1 && in_array($stmt->class->parts[0], ['self', 'static', 'parent'], true)) {
|
||||
if (count($stmt->class->parts) === 1
|
||||
&& in_array($stmt->class->parts[0], ['self', 'static', 'parent'], true)
|
||||
) {
|
||||
if (!$this_class_name) {
|
||||
$fq_class_name = $stmt->class->parts[0];
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user