File tree Expand file tree Collapse file tree
rules/CodingStyle/Rector/FunctionLike Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -80,21 +80,27 @@ private function shouldSkip(
8080 if ($ callLike ->isFirstClassCallable ()) {
8181 return true ;
8282 }
83+
8384 if ($ this ->isChainedCall ($ callLike )) {
8485 return true ;
8586 }
87+
8688 if ($ this ->isUsingNamedArgs ($ args )) {
8789 return true ;
8890 }
91+
8992 if ($ this ->isUsingByRef ($ params )) {
9093 return true ;
9194 }
95+
9296 if ($ this ->isNotUsingSameParamsForArgs ($ params , $ args )) {
9397 return true ;
9498 }
99+
95100 if ($ this ->isDependantMethod ($ callLike , $ params )) {
96101 return true ;
97102 }
103+
98104 return $ this ->isUsingThisInNonObjectContext ($ callLike , $ scope );
99105 }
100106
@@ -227,6 +233,7 @@ private function isChainedCall(FuncCall|MethodCall|StaticCall $callLike): bool
227233 if (! $ callLike instanceof MethodCall) {
228234 return false ;
229235 }
236+
230237 return $ callLike ->var instanceof CallLike;
231238 }
232239}
You can’t perform that action at this time.
0 commit comments