|
@@ -54,7 +54,7 @@ class IndentShell extends AppShell {
|
|
|
|
|
|
|
|
$folder = realpath($folder);
|
|
$folder = realpath($folder);
|
|
|
if (!file_exists($folder)) {
|
|
if (!file_exists($folder)) {
|
|
|
- die('folder not exists: ' . $folder . '');
|
|
|
|
|
|
|
+ $this->error('folder not exists: ' . $folder . '');
|
|
|
}
|
|
}
|
|
|
$this->_paths[] = $folder;
|
|
$this->_paths[] = $folder;
|
|
|
} elseif ($this->args[0] === 'app') {
|
|
} elseif ($this->args[0] === 'app') {
|
|
@@ -232,7 +232,7 @@ class IndentShell extends AppShell {
|
|
|
$pos++;
|
|
$pos++;
|
|
|
$spaces += $this->settings['spacesPerTab'];
|
|
$spaces += $this->settings['spacesPerTab'];
|
|
|
} else {
|
|
} else {
|
|
|
- die('???');
|
|
|
|
|
|
|
+ $this->error('???');
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$newPiece = mb_substr($newPiece, 1);
|
|
$newPiece = mb_substr($newPiece, 1);
|