mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-08 04:22:40 +00:00
remove unused local variables and a few improvements
This commit is contained in:
parent
f25f35353d
commit
3f4d24bfc0
38 changed files with 77 additions and 95 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue