@@ -72,8 +72,8 @@ public function enterNode(Node $node): void
7272 *
7373 * @see FileVisitorTest::test_it_should_return_errors_for_const_outside_namespace
7474 */
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 ' )
7777 ) {
7878 if ($ this ->isSelfOrStaticOrParent ($ node ->class ->toString ())) {
7979 return ;
@@ -89,8 +89,8 @@ public function enterNode(Node $node): void
8989 *
9090 * @see FileVisitorTest::test_should_returns_all_dependencies
9191 */
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 ' )
9494 ) {
9595 if ($ this ->isSelfOrStaticOrParent ($ node ->class ->toString ())) {
9696 return ;
@@ -100,8 +100,8 @@ public function enterNode(Node $node): void
100100 ->addDependency (new ClassDependency ($ node ->class ->toString (), $ node ->getLine ()));
101101 }
102102
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 ' )
105105 ) {
106106 if ($ this ->isSelfOrStaticOrParent ($ node ->class ->toString ())) {
107107 return ;
@@ -110,11 +110,11 @@ public function enterNode(Node $node): void
110110 ->addDependency (new ClassDependency ($ node ->class ->toString (), $ node ->getLine ()));
111111 }
112112
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)
115115 ) {
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 ' )) {
118118 return ;
119119 }
120120
0 commit comments