Passed
Push — next ( d68df8...ee030a )
by Bas
03:07
created

Manager   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 12
ccs 4
cts 4
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A sanitizeRequestMetadata() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ArangoClient;
6
7
abstract class Manager
8
{
9
    /**
10
     * @param array<mixed> $data
11
     * @return array<mixed>
12
     */
13 27
    protected function sanitizeRequestMetadata(array $data): array
14
    {
15 27
        unset($data['error']);
16 27
        unset($data['code']);
17
18 27
        return $data;
19
    }
20
}
21