remove unused local variables and a few improvements

This commit is contained in:
Ceeram 2012-12-20 13:47:03 +01:00
parent f25f35353d
commit 3f4d24bfc0
38 changed files with 77 additions and 95 deletions

View file

@ -293,7 +293,7 @@ class ConsoleShell extends AppShell {
if ($this->_isValidModel($modelToSave)) {
// Extract the array of data we are trying to build
list($foo, $data) = explode("->save", $command);
list(, $data) = explode("->save", $command);
$data = preg_replace('/^\(*(array)?\(*(.+?)\)*$/i', '\\2', $data);
$saveCommand = "\$this->{$modelToSave}->save(array('{$modelToSave}' => array({$data})));";
//@codingStandardsIgnoreStart