Conditions | 5 |
Paths | 4 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | public function dump($value) |
||
37 | { |
||
38 | if (class_exists(CliDumper::class)) { |
||
39 | $data = $this->createVarCloner()->cloneVar($value); |
||
40 | |||
41 | if ($this->connection === null || $this->connection->write($data) === false) { |
||
42 | $dumper = in_array(PHP_SAPI, ['cli', 'phpdbg']) ? new CliDumper : new HtmlDumper; |
||
43 | $dumper->dump($data); |
||
44 | } |
||
45 | } else { |
||
46 | var_dump($value); |
||
47 | } |
||
48 | } |
||
49 | |||
58 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.