Skip to content

Commit

Permalink
remove useless empty constructorn change new param node from scalar t…
Browse files Browse the repository at this point in the history
…o boolean
  • Loading branch information
JoMessina committed May 27, 2024
1 parent e14c1d1 commit 320bdd5
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 17 deletions.
4 changes: 0 additions & 4 deletions src/Builder/Capacity/Extractor/Get.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ final class Get implements Builder
private Node\Expr|Node\Identifier|null $endpoint = null;
private ?Node\Expr $identifier = null;

public function __construct()
{
}

public function withEndpoint(Node\Expr|Node\Identifier $endpoint): self
{
$this->endpoint = $endpoint;
Expand Down
4 changes: 0 additions & 4 deletions src/Builder/Capacity/Extractor/ListPerPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ final class ListPerPage implements Builder
private ?Node\Expr $search = null;
private ?Node\Expr $code = null;

public function __construct()
{
}

public function withEndpoint(Node\Expr|Node\Identifier $endpoint): self
{
$this->endpoint = $endpoint;
Expand Down
4 changes: 0 additions & 4 deletions src/Builder/Capacity/Lookup/Get.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ final class Get implements Builder
private ?Node\Expr $code = null;
private ?string $type = '';

public function __construct()
{
}

public function withEndpoint(Node\Expr|Node\Identifier $endpoint): self
{
$this->endpoint = $endpoint;
Expand Down
4 changes: 0 additions & 4 deletions src/Builder/Capacity/Lookup/ListPerPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ final class ListPerPage implements Builder
private ?Node\Expr $search = null;
private ?Node\Expr $code = null;

public function __construct()
{
}

public function withEndpoint(Node\Expr|Node\Identifier $endpoint): self
{
$this->endpoint = $endpoint;
Expand Down
3 changes: 2 additions & 1 deletion src/Configuration/Extractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ public function getConfigTreeBuilder(): Config\Definition\Builder\TreeBuilder
->then(asExpression())
->end()
->end()
->scalarNode('with_enriched_attributes')
->booleanNode('with_enriched_attributes')
->defaultFalse()
->validate()
->ifTrue(isExpression())
->then(asExpression())
Expand Down

0 comments on commit 320bdd5

Please sign in to comment.