Navigation Menu

Skip to content

Commit

Permalink
Removing the case
Browse files Browse the repository at this point in the history
  • Loading branch information
fitorec authored and markstory committed Jun 11, 2012
1 parent fa2a75c commit 207b918
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Console/Command/Task/ModelTask.php
Expand Up @@ -169,7 +169,7 @@ public function inOptions($options, $prompt = null, $default = null) {
$valid = false;
$max = count($options);
while (!$valid) {
$len = strlen((count($options)+1).'');
$len = strlen((count($options)+1));
foreach ($options as $i => $option) {
$this->out(sprintf("%${len}d. %s", $i+1, $option));
}
Expand Down Expand Up @@ -846,7 +846,7 @@ public function listAll($useDbConfig = null) {
}
if ($this->interactive === true) {
$this->out(__d('cake_console', 'Possible Models based on your current database:'));
$len = strlen(($count+1).'');
$len = strlen(($count+1));
for ($i = 0; $i < $count; $i++) {
$this->out(sprintf("%${len}d. %s", $i+1, $this->_modelNames[$i]));
}
Expand Down

0 comments on commit 207b918

Please sign in to comment.