@@ -459,14 +459,6 @@ protected function pScalar_LNumber(LNumber $lNumber): string|int
459459 return parent ::pScalar_LNumber ($ lNumber );
460460 }
461461
462- private function resolveIndentSpaces (): string
463- {
464- $ indentSize = SimpleParameterProvider::provideIntParameter (Option::INDENT_SIZE );
465-
466- return str_repeat ($ this ->getIndentCharacter (), $ this ->indentLevel ) .
467- str_repeat ($ this ->getIndentCharacter (), $ indentSize );
468- }
469-
470462 protected function pExpr_MethodCall (MethodCall $ methodCall ): string
471463 {
472464 if (SimpleParameterProvider::provideBoolParameter (Option::NEW_LINE_ON_FLUENT_CALL ) === false ) {
@@ -482,7 +474,11 @@ protected function pExpr_MethodCall(MethodCall $methodCall): string
482474 $ arg ->value ->setAttribute (AttributeKey::ORIGINAL_NODE , null );
483475 }
484476
485- return $ this ->pDereferenceLhs ($ methodCall ->var ) . "\n" . $ this ->resolveIndentSpaces () . "-> " . $ this ->pObjectProperty ($ methodCall ->name )
477+ return $ this ->pDereferenceLhs (
478+ $ methodCall ->var
479+ ) . "\n" . $ this ->resolveIndentSpaces () . '-> ' . $ this ->pObjectProperty (
480+ $ methodCall ->name
481+ )
486482 . '( ' . $ this ->pMaybeMultiline ($ methodCall ->args ) . ') ' ;
487483 }
488484
@@ -503,6 +499,14 @@ protected function pParam(Param $param): string
503499 . ($ param ->default instanceof Expr ? ' = ' . $ this ->p ($ param ->default ) : '' );
504500 }
505501
502+ private function resolveIndentSpaces (): string
503+ {
504+ $ indentSize = SimpleParameterProvider::provideIntParameter (Option::INDENT_SIZE );
505+
506+ return str_repeat ($ this ->getIndentCharacter (), $ this ->indentLevel ) .
507+ str_repeat ($ this ->getIndentCharacter (), $ indentSize );
508+ }
509+
506510 /**
507511 * Must be a method to be able to react to changed parameter in tests
508512 */
0 commit comments