| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 10 | public function run(Client $client) |
||
| 11 | {
|
||
| 12 | $schema = $client->getSpace('_vspace');
|
||
| 13 | $response = $schema->select([], Index::SPACE_NAME); |
||
| 14 | $data = $response->getData(); |
||
| 15 | foreach ($data as $row) {
|
||
| 16 | if ($row[1] == 0) {
|
||
| 17 | // user space |
||
| 18 | $client->evaluate('box.space.'.$row[2].':drop{}');
|
||
| 19 | } |
||
| 20 | } |
||
| 21 | } |
||
| 22 | } |