1
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2025-07-29 22:41:11 +03:00

scripts/postfixadmin-cli.php

- replace usage of Inflector::camelize() with ucfirst() - for our usage,
  it gives the same result with easier understandable code
- remove unused PHP5 define

shells/shell.php:
- remove definition of unused variable $shellKey, which also removes
  the last usage of Inflector::underscore
- remove code that was commented out since a while

scripts/inflector.php:
- delete file, no longer needed


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1577 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
Christian Boltz
2013-11-14 21:15:55 +00:00
parent 84b160bd8e
commit 72f0818391
3 changed files with 3 additions and 72 deletions

View File

@ -146,7 +146,6 @@ class PostfixAdmin {
}
define('DS', DIRECTORY_SEPARATOR);
define('PHP5', (PHP_VERSION >= 5));
define('CORE_INCLUDE_PATH', dirname(__FILE__));
define('CORE_PATH', dirname(CORE_INCLUDE_PATH) ); # CORE_INCLUDE_PATH/../
@ -236,7 +235,7 @@ class PostfixAdmin {
$this->shell = $this->args[0];
$this->shiftArgs();
$this->shellName = Inflector::camelize($this->shell);
$this->shellName = ucfirst($this->shell);
$this->shellClass = $this->shellName . 'Handler';
@ -254,7 +253,7 @@ class PostfixAdmin {
}
$this->shellCommand = $command;
$this->shellClass = 'Cli' . Inflector::camelize($command);
$this->shellClass = 'Cli' . ucfirst($command);
if (ucfirst($command) == 'Add' || ucfirst($command) == 'Update') {
$this->shellClass = 'CliEdit';
@ -274,7 +273,7 @@ class PostfixAdmin {
return;
}
$task = Inflector::camelize($command);
$task = ucfirst($command);
$shell->new = 0;
if ($task == 'Add') {