Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
40 | private function find($collection, $filter = [], $sort = [], $limit = 1, $offset = 0) |
||
41 | { |
||
42 | /** @var \MongoCollection $collection */ |
||
43 | $collection = $this->getClient()->{$this->databaseName}->{$collection}; |
||
44 | |||
45 | $options = [];//['sort' => ['catid' => 1], 'limit' => 10]; |
||
46 | /** @var \MongoCursor $cursor */ |
||
47 | $cursor = $collection->find($filter, $options); |
||
48 | return iterator_to_array($cursor, false); |
||
49 | } |
||
50 | |||
67 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.