|
@@ 1316-1320 (lines=5) @@
|
| 1313 |
|
throw new DropboxClientException("Invalid Response."); |
| 1314 |
|
} |
| 1315 |
|
|
| 1316 |
|
if ($body['.tag'] == 'complete') { |
| 1317 |
|
$entries = isset($body['entries']) ? $body['entries'] : []; |
| 1318 |
|
|
| 1319 |
|
return new DeletedList($entries); |
| 1320 |
|
} |
| 1321 |
|
|
| 1322 |
|
if (!isset($body['async_job_id'])) { |
| 1323 |
|
throw new DropboxClientException("Could not retrieve Async Job ID."); |
|
@@ 1351-1355 (lines=5) @@
|
| 1348 |
|
$status = isset($body['.tag']) ? $body['.tag'] : ''; |
| 1349 |
|
|
| 1350 |
|
//If status is complete |
| 1351 |
|
if ($status === 'complete') { |
| 1352 |
|
$entries = isset($body['entries']) ? $body['entries'] : []; |
| 1353 |
|
|
| 1354 |
|
return new DeletedList($entries); |
| 1355 |
|
} |
| 1356 |
|
|
| 1357 |
|
//Return the status |
| 1358 |
|
return $status; |