File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lib/PhpParser/PrettyPrinter Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1040,7 +1040,7 @@ protected function pNewVariable(Node $node) {
1040
1040
* @param Node[] $nodes
1041
1041
* @return bool
1042
1042
*/
1043
- private function hasNodeWithComments (array $ nodes ) {
1043
+ protected function hasNodeWithComments (array $ nodes ) {
1044
1044
foreach ($ nodes as $ node ) {
1045
1045
if ($ node && $ node ->getComments ()) {
1046
1046
return true ;
@@ -1049,15 +1049,15 @@ private function hasNodeWithComments(array $nodes) {
1049
1049
return false ;
1050
1050
}
1051
1051
1052
- private function pMaybeMultiline (array $ nodes , bool $ trailingComma = false ) {
1052
+ protected function pMaybeMultiline (array $ nodes , bool $ trailingComma = false ) {
1053
1053
if (!$ this ->hasNodeWithComments ($ nodes )) {
1054
1054
return $ this ->pCommaSeparated ($ nodes );
1055
1055
} else {
1056
1056
return $ this ->pCommaSeparatedMultiline ($ nodes , $ trailingComma ) . $ this ->nl ;
1057
1057
}
1058
1058
}
1059
1059
1060
- private function pAttrGroups (array $ nodes , bool $ inline = false ): string {
1060
+ protected function pAttrGroups (array $ nodes , bool $ inline = false ): string {
1061
1061
$ result = '' ;
1062
1062
$ sep = $ inline ? ' ' : $ this ->nl ;
1063
1063
foreach ($ nodes as $ node ) {
You can’t perform that action at this time.
0 commit comments