Skip to content

Commit 29396e1

Browse files
committed
Fixing CI
1 parent afd865d commit 29396e1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

generator/src/ComposerJsonEditor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ class ComposerJsonEditor
1313
*/
1414
public static function editFiles(array $modules): void
1515
{
16-
$files = \array_map(function(string $module) {
16+
$files = \array_map(function (string $module) {
1717
return 'generated/'.lcfirst($module).'.php';
1818
}, $modules);
1919
$composerContent = file_get_contents(__DIR__.'/../../composer.json');
2020
if ($composerContent === false) {
21-
throw new \Exception('Error while loading composer.json file for edition.');
21+
throw new \RuntimeException('Error while loading composer.json file for edition.');
2222
}
2323
$composerJson = \json_decode($composerContent, true);
2424
$composerJson['autoload']['files'] = $files;

generator/src/GenerateCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
4343

4444
$modules = [];
4545
foreach ($functions as $function) {
46-
$modules[$function->getModuleName()] = true;
46+
$modules[$function->getModuleName()] = $function->getModuleName();
4747
}
4848

4949
foreach ($modules as $moduleName => $foo) {
@@ -58,7 +58,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
5858
}
5959

6060
// Finally, let's edit the composer.json file
61-
ComposerJsonEditor::editFiles(\array_keys($modules));
61+
ComposerJsonEditor::editFiles($modules);
6262
}
6363

6464
private function rmGenerated(): void

0 commit comments

Comments
 (0)