1
0
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:
Matthew Brown 2017-05-26 20:17:56 -04:00
parent 22a716f4da
commit 93e7486d5e
3 changed files with 9 additions and 3 deletions

View File

@ -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();

View File

@ -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();

View File

@ -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 {