Conditions | 3 |
Paths | 3 |
Total Lines | 18 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
39 | 4 | public function create(string $extension, string $content): ContentInterface |
|
40 | { |
||
41 | switch ($extension) { |
||
42 | /** |
||
43 | * Create JSON Content |
||
44 | * @todo Actually create a JsonContent |
||
|
|||
45 | */ |
||
46 | 4 | case static::EXT_JSON: |
|
47 | 1 | return new Content($content); |
|
48 | break; |
||
49 | /** |
||
50 | * Default TXT Content |
||
51 | */ |
||
52 | 3 | case static::EXT_TXT: |
|
53 | default: |
||
54 | 3 | return new Content($content); |
|
55 | } |
||
56 | } |
||
57 | } |
||
58 |
This check looks
TODO
comments that have been left in the code.``TODO``s show that something is left unfinished and should be attended to.