Skip to content

Commit

Permalink
consistent wording
Browse files Browse the repository at this point in the history
  • Loading branch information
i-just committed Nov 19, 2024
1 parent 1b24fbd commit 499eed1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/console/controllers/ResaveController.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,11 +386,11 @@ public function actionAll(): int
$proceed = true;
// ask for confirmation
if ($this->interactive && !empty($actionsToSkip)) {
$this->output('Following commands, don’t support all the provided parameters:', Console::FG_YELLOW);
$this->output('Following commands, don’t support all the provided options:', Console::FG_YELLOW);
foreach ($actionsToSkip as $id) {
$invalidParams = array_map(
fn($param) => '--' . StringHelper::toKebabCase($param),
$this->getUnsupportedParams($id, $params)
$this->getUnsupportedOptions($id, $params)
);
$count = count($invalidParams);
$invalidParams = implode(', ', $invalidParams);
Expand Down Expand Up @@ -871,7 +871,7 @@ private function doesActionSupportsAllOptions(string $actionId, array $params):
* @param array $params
* @return array
*/
private function getUnsupportedParams(string $actionId, array $params): array
private function getUnsupportedOptions(string $actionId, array $params): array
{
$unsupportedParams = [];
$options = $this->options($actionId);
Expand Down

0 comments on commit 499eed1

Please sign in to comment.