Skip to content

Commit

Permalink
CLEANUP: Remove extra variable for readConfigurationByPath
Browse files Browse the repository at this point in the history
  • Loading branch information
d-g-codappix committed Apr 5, 2024
1 parent 491c101 commit 3935047
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 18 deletions.
18 changes: 7 additions & 11 deletions Classes/Sizes/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@ public function __construct(array $data)
{
parent::__construct($data);

$this->readConfiguration();
$this->scalingConfiguration = $this->readConfigurationByPath(
implode('.', [
'container',
$this->contentType,
])
);

$this->determineColumns();
}

Expand All @@ -59,16 +65,6 @@ public function getActiveColumn(): Column
return $this->activeColumn;
}

public function readConfiguration(): void
{
$configurationPath = implode('.', [
'container',
$this->contentType,
]);

$this->scalingConfiguration = $this->readConfigurationByPath($configurationPath);
}

private function determineColumns(): void
{
$sizesPath = implode('.', [
Expand Down
14 changes: 7 additions & 7 deletions Classes/Sizes/ContentElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ public function __construct(
) {
parent::__construct($data);

$configurationPath = implode('.', [
'contentelements',
$this->contentType,
$this->fieldName,
]);

$this->scalingConfiguration = $this->readConfigurationByPath($configurationPath);
$this->scalingConfiguration = $this->readConfigurationByPath(
implode('.', [
'contentelements',
$this->contentType,
$this->fieldName,
])
);
}
}

0 comments on commit 3935047

Please sign in to comment.