Skip to content

Commit

Permalink
Fixed console output errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tylercd100 committed Mar 13, 2018
1 parent 24c0e90 commit c1a4cea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

All notable changes to `laravel-licenser` will be documented in this file.

### 3.5.6
- Fixed console output errors

### 3.5.5
- Fixed type error for the `choice` function

Expand Down
6 changes: 4 additions & 2 deletions src/Commands/LicenseUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ public function handle()
// Perform the update
$license->set($this->getQuantity($license->maximum()));

$this->success("Done!");
$this->info("Done!");
}

protected function getQuantity($current = 0)
{
return intval($this->ask("Please select a new maximum value for this license. The current maximum is {$current}."));
return intval($this->ask("Please select a new maximum value for this license. (The current maximum is {$current})"));
}

protected function selectLicense($where = [])
Expand Down Expand Up @@ -76,6 +76,8 @@ final protected function getSelection($column, $where = [])
throw new \Exception("Could not find a {$column}", 1, $e);
}

$this->info("Selected: {$selection}");

return $selection;
}
}

0 comments on commit c1a4cea

Please sign in to comment.