Skip to content

Commit

Permalink
Removed unused variables from Mage_Api_Model_Server_Handler_Abstract (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano authored Apr 1, 2024
1 parent 3f07e73 commit 8bb7561
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/code/core/Mage/Api/Model/Server/Handler/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,6 @@ public function call($sessionId, $apiPath, $args = [])
}

if (method_exists($model, $method)) {
$result = [];
if (isset($methodInfo->arguments) && ((string)$methodInfo->arguments) == 'array') {
$result = $model->$method((is_array($args) ? $args : [$args]));
} elseif (!is_array($args)) {
Expand Down Expand Up @@ -403,7 +402,6 @@ public function multiCall($sessionId, array $calls = [], $options = [])
}

if (method_exists($model, $method)) {
$callResult = [];
if (isset($methodInfo->arguments) && ((string)$methodInfo->arguments) == 'array') {
$callResult = $model->$method((is_array($args) ? $args : [$args]));
} elseif (!is_array($args)) {
Expand Down

0 comments on commit 8bb7561

Please sign in to comment.