Conditions | 5 |
Paths | 5 |
Total Lines | 16 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
43 | public function __construct(SwaggerDocument $document, array $options = []) |
||
44 | { |
||
45 | $this->document = $document; |
||
46 | foreach ($options as $key => $value) { |
||
47 | switch ($key) { |
||
48 | case 'proto': |
||
49 | break; |
||
50 | case 'host': |
||
51 | break; |
||
52 | case 'base': |
||
53 | break; |
||
54 | default: |
||
55 | throw new \InvalidArgumentException("Unknown option '$key'"); |
||
56 | } |
||
57 | } |
||
58 | } |
||
59 | |||
61 |
This check marks private properties in classes that are never used. Those properties can be removed.