Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.

Commit 986ccd0

Browse files
committed
Correct method calls
1 parent 6eb55e2 commit 986ccd0

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

shift-cli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ $taskManifest = new TaskManifest(
1717
$defaults['tasks'],
1818
);
1919

20-
Configuration::setDefaults($defaults['run']);
20+
Configuration::setDefaultTasks($defaults['run']);
2121

2222
$application = new Application();
2323
$application->add(new DiscoverCommand($taskManifest));

src/Commands/PublishCommand.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
2828
return 1;
2929
}
3030

31-
file_put_contents('shift-cli.json', json_encode($this->defaultConfig(), JSON_PRETTY_PRINT));
31+
file_put_contents('shift-cli.json', json_encode(Configuration::defaults(), JSON_PRETTY_PRINT));
3232

3333
return 0;
3434
}
35-
36-
private function defaultConfig(): array
37-
{
38-
return array_replace(Configuration::defaults(), [
39-
'ignore' => [],
40-
]);
41-
}
4235
}

0 commit comments

Comments
 (0)