Skip to content

Commit

Permalink
Merge pull request #95 from jweston491/patch-1
Browse files Browse the repository at this point in the history
Upgrade some WPPrinter methods to protected
  • Loading branch information
amostajo authored Feb 12, 2021
2 parents a845851 + caa3c26 commit 1be04c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Parser/WPPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ protected function pExpr_BinaryOp_Concat(BinaryOp\Concat $node, $mod = false, $l
*
* @see \PhpParser\PrettyPrinter\Standard@hasNodeWithComments
*/
private function hasNodeWithComments(array $nodes)
protected function hasNodeWithComments(array $nodes)
{
foreach ($nodes as $node) {
if ($node && $node->getComments()) {
Expand All @@ -577,7 +577,7 @@ private function hasNodeWithComments(array $nodes)
*
* @see \PhpParser\PrettyPrinter\Standard@pMaybeMultiline
*/
private function pMaybeMultiline(array $nodes, $trailingComma = false)
protected function pMaybeMultiline(array $nodes, $trailingComma = false)
{
if (!$this->hasReachedLineLength($nodes) && !$this->hasNodeWithComments($nodes)) {
return $this->pCommaSeparated($nodes);
Expand Down Expand Up @@ -621,4 +621,4 @@ private function hasNodeReachedLineLength(Node $node, $allowed = 60)
$string = $this->p($node);
return strlen($string) > $allowed;
}
}
}

0 comments on commit 1be04c5

Please sign in to comment.