@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | $response = $this->postRequest('/private/api/v2/json/catalog_elements/set', $parameters); |
| 72 | 72 | |
| 73 | 73 | if (isset($response['catalog_elements']['add']['catalog_elements'])) { |
| 74 | - $result = array_map(function ($item) { |
|
| 74 | + $result = array_map(function($item) { |
|
| 75 | 75 | return $item['id']; |
| 76 | 76 | }, $response['catalog_elements']['add']['catalog_elements']); |
| 77 | 77 | } else { |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | */ |
| 157 | 157 | public function apiDeleteBatch(array $ids) |
| 158 | 158 | { |
| 159 | - array_walk($ids, function($id){ |
|
| 159 | + array_walk($ids, function($id) { |
|
| 160 | 160 | $this->checkId($id); |
| 161 | 161 | }); |
| 162 | 162 | |