Skip to content

Commit

Permalink
[ci-review] Rector Rectify
Browse files Browse the repository at this point in the history
  • Loading branch information
sabbelasichon authored and github-actions[bot] committed May 28, 2024
1 parent 7ecb1f6 commit 50b39cc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,15 @@ public function refactor(Node $node)
$tableNames = $this->valueResolver->getValue($tableArgument);

foreach (explode(',', $tableNames) as $tableName) {
if (! $tableName) {
if ($tableName === '' || $tableName === '0') {
continue;
}

$directoryName = dirname($this->file->getFilePath());
$newConfigurationFile = $directoryName . '/Configuration/TCA/Overrides/' . $tableName . '.php';
$this->writeConfigurationToFile($newConfigurationFile, $tableName);
}

return NodeTraverser::REMOVE_NODE;
}

Expand Down

0 comments on commit 50b39cc

Please sign in to comment.