Skip to content

Commit

Permalink
Added doc blocks and applyed Winter code styling
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxwilko committed Jun 30, 2021
1 parent 0707951 commit 45aadb7
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/Config/WinterPrinter.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
<?php

namespace Winter\Storm\Config;
<?php namespace Winter\Storm\Config;

use PhpParser\Node\Expr\ArrayItem;
use PhpParser\PrettyPrinter\Standard;

/**
* Class WinterPrinter
* @package Winter\Storm\Config
*/
class WinterPrinter extends Standard
{
/**
* @param array $nodes
* @param bool $trailingComma
* @return string
*/
protected function pMaybeMultiline(array $nodes, bool $trailingComma = false)
{
if ($this->hasNodeWithComments($nodes) || (isset($nodes[0]) && $nodes[0] instanceof ArrayItem)) {
Expand All @@ -16,6 +23,10 @@ protected function pMaybeMultiline(array $nodes, bool $trailingComma = false)
}
}

/**
* @param array $comments
* @return string
*/
protected function pComments(array $comments): string
{
$formattedComments = [];
Expand Down

0 comments on commit 45aadb7

Please sign in to comment.