Mercurial > packages > magicforger
diff src/Replacer/TableReplacer.php @ 14:c969ed13c570 main-dev
Changes for various files
| author | luka |
|---|---|
| date | Mon, 23 Sep 2024 20:35:14 -0400 |
| parents | 3426c7e91c24 |
| children | 19b7a8de0019 |
line wrap: on
line diff
--- a/src/Replacer/TableReplacer.php Wed Apr 24 20:11:52 2024 -0400 +++ b/src/Replacer/TableReplacer.php Mon Sep 23 20:35:14 2024 -0400 @@ -19,7 +19,7 @@ { } - protected function getValuesForCreation() + protected function getValuesForCreation(): string { $insert = ''; foreach ($this->get_columns() as $column) { @@ -29,7 +29,7 @@ return $insert; } - protected function getAttributes() + protected function getAttributes(): string { $insert = ''; foreach ($this->get_columns() as $column) { @@ -39,7 +39,7 @@ return $insert; } - protected function getValuesForValidation() + protected function getValuesForValidation(): string { $insert = ''; foreach ($this->get_columns() as $column) { @@ -69,8 +69,8 @@ $replacements = [ '// {{ valuesForCreation }}' => self::getValuesForCreation(), '# {{ atributeInsertPoint }}' => self::getAttributes(), - '// {{ valuesForValidation }}' => self::getValuesForValidation(), - ]; + '// {{ valuesForValidation }}' => self::getValuesForValidation(), + ]; foreach ($replacements as $key => &$replacement) { $replacement = $replacement."\n".$key;
