| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | public function saveAll(array $docs):bool |
||
| 41 | { |
||
| 42 | $bulk = new BulkWrite(['ordered' => true]); |
||
| 43 | |||
| 44 | foreach ($docs as $doc) { |
||
| 45 | $doc->save($bulk); |
||
| 46 | } |
||
| 47 | |||
| 48 | $return = Mongo::get()->executeBulkWrite($this->collection, $bulk); |
||
| 49 | return (count($return->getWriteErrors()) == 0); |
||
| 50 | } |
||
| 51 | } |
||
| 52 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.