| Conditions | 3 | 
| Paths | 4 | 
| Total Lines | 15 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 8 | 
| CRAP Score | 3 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 37 | 2 | public function insert(string $table, array $data, array $headers)  | 
            |
| 
                                                                                                    
                        
                         | 
                |||
| 38 |     { | 
            ||
| 39 | 2 | $client = $this->get(Client::class);  | 
            |
| 40 | 2 |         if (count($data) < $this->bucketSize) { | 
            |
| 41 | 2 | $buckets = [$data];  | 
            |
| 42 |         } else { | 
            ||
| 43 | 1 | $buckets = array_chunk($data, $this->bucketSize);  | 
            |
| 44 | }  | 
            ||
| 45 | |||
| 46 | 2 |         foreach ($buckets as $bucket) { | 
            |
| 47 | 2 |             $client->insert('tester', $bucket, $headers); | 
            |
| 48 | }  | 
            ||
| 49 | |||
| 50 | 2 | return count($buckets);  | 
            |
| 51 | }  | 
            ||
| 52 | }  | 
            ||
| 53 | 
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.