@@ -72,8 +72,8 @@ public function enterNode(Node $node): void
72
72
*
73
73
* @see FileVisitorTest::test_it_should_return_errors_for_const_outside_namespace
74
74
*/
75
- if ($ node instanceof Node \Expr \ClassConstFetch &&
76
- method_exists ($ node ->class , 'toString ' )
75
+ if ($ node instanceof Node \Expr \ClassConstFetch
76
+ && method_exists ($ node ->class , 'toString ' )
77
77
) {
78
78
if ($ this ->isSelfOrStaticOrParent ($ node ->class ->toString ())) {
79
79
return ;
@@ -89,8 +89,8 @@ public function enterNode(Node $node): void
89
89
*
90
90
* @see FileVisitorTest::test_should_returns_all_dependencies
91
91
*/
92
- if ($ node instanceof Node \Expr \StaticCall &&
93
- method_exists ($ node ->class , 'toString ' )
92
+ if ($ node instanceof Node \Expr \StaticCall
93
+ && method_exists ($ node ->class , 'toString ' )
94
94
) {
95
95
if ($ this ->isSelfOrStaticOrParent ($ node ->class ->toString ())) {
96
96
return ;
@@ -100,8 +100,8 @@ public function enterNode(Node $node): void
100
100
->addDependency (new ClassDependency ($ node ->class ->toString (), $ node ->getLine ()));
101
101
}
102
102
103
- if ($ node instanceof Node \Expr \Instanceof_ &&
104
- method_exists ($ node ->class , 'toString ' )
103
+ if ($ node instanceof Node \Expr \Instanceof_
104
+ && method_exists ($ node ->class , 'toString ' )
105
105
) {
106
106
if ($ this ->isSelfOrStaticOrParent ($ node ->class ->toString ())) {
107
107
return ;
@@ -110,11 +110,11 @@ public function enterNode(Node $node): void
110
110
->addDependency (new ClassDependency ($ node ->class ->toString (), $ node ->getLine ()));
111
111
}
112
112
113
- if ($ node instanceof Node \Expr \New_ &&
114
- !($ node ->class instanceof Node \Expr \Variable)
113
+ if ($ node instanceof Node \Expr \New_
114
+ && !($ node ->class instanceof Node \Expr \Variable)
115
115
) {
116
- if ((method_exists ($ node ->class , 'isAnonymous ' ) && $ node ->class ->isAnonymous ()) ||
117
- !method_exists ($ node ->class , 'toString ' )) {
116
+ if ((method_exists ($ node ->class , 'isAnonymous ' ) && $ node ->class ->isAnonymous ())
117
+ || !method_exists ($ node ->class , 'toString ' )) {
118
118
return ;
119
119
}
120
120
0 commit comments