| Conditions | 5 |
| Paths | 4 |
| Total Lines | 22 |
| Code Lines | 12 |
| Lines | 6 |
| Ratio | 27.27 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | function s() |
||
| 36 | { |
||
| 37 | if (!Kint::$enabled_mode) { |
||
| 38 | return 0; |
||
| 39 | } |
||
| 40 | |||
| 41 | $stash = Kint::settings(); |
||
| 42 | |||
| 43 | View Code Duplication | if (Kint::$enabled_mode !== Kint::MODE_TEXT) { |
|
| 44 | Kint::$enabled_mode = Kint::MODE_PLAIN; |
||
| 45 | if (PHP_SAPI === 'cli' && Kint::$cli_detection === true) { |
||
| 46 | Kint::$enabled_mode = Kint::$mode_default_cli; |
||
| 47 | } |
||
| 48 | } |
||
| 49 | |||
| 50 | $args = func_get_args(); |
||
| 51 | $out = call_user_func_array(array('Kint', 'dump'), $args); |
||
| 52 | |||
| 53 | Kint::settings($stash); |
||
| 54 | |||
| 55 | return $out; |
||
| 56 | } |
||
| 57 | |||
| 60 |
Even though PHP does not care about the name of your methods, it is generally a good practice to choose method names which can be easily understood by other human readers.