Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | public function dpParseValueByContent() |
||
12 | { |
||
13 | return [ |
||
14 | [['test', 'yes'], true], |
||
15 | [['test', 'no'], false], |
||
16 | [['test', '0'], 0], |
||
17 | [['test', 'test'], 'test'], |
||
18 | [['test', '0123'], '0123'], |
||
19 | [['test', '1234'], 1234], |
||
20 | [['test', '18446744073709551615'], '18446744073709551615'], |
||
21 | [['After', 'test1 test2'], ['test1', 'test2']], |
||
22 | [ |
||
23 | ['Timestamp', 'Do 2019-02-04 12:00:00 CET'], |
||
24 | date_create_immutable_from_format('* Y-m-d H:i:s e', 'Do 2019-02-04 12:00:00 CET') |
||
25 | ], |
||
26 | [['Environment', 'FOO=bar BAZ=foo'], ['FOO' => 'bar', 'BAZ' => 'foo']], |
||
27 | ]; |
||
28 | } |
||
29 | |||
40 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.