Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ajthinking committed Dec 28, 2021
1 parent a50d530 commit 36626cc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/Support/PSR2PrettyPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __construct($options = [])
// Fix empty line before class definition
protected function pStmt_Class(Class_ $node)
{
return PHP_EOL . $this->pClassCommon($node, ' ' . $node->name); // $this->pStmts($node->stmts)
return PHP_EOL . $this->pClassCommon($node, ' ' . $node->name);
}

// Fix empty line before class definition
Expand Down Expand Up @@ -81,7 +81,6 @@ protected function implementsSeparated($nodes)
*/
protected function pSeparatedStmts(array $nodes, bool $indent = true) : string
{

if ($indent) {
$this->indent();
}
Expand Down
7 changes: 7 additions & 0 deletions src/Traits/HasDirectiveDefaults.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ public function add($value = Types::NO_VALUE)
return $this;
}

public function after($value)
{
dd("NOT IMPLEMENTED");

return $this->directive('after', $value);
}

public function include($value = Types::NO_VALUE)
{
return $this->unique($value = Types::NO_VALUE);
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/PrettyPrintTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@
->render();

$this->assertSingleLineEmptyArray('fillable', $output);
});
});

0 comments on commit 36626cc

Please sign in to comment.