| Total Complexity | 13 |
| Total Lines | 54 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class Output |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @param mixed $data |
||
| 9 | * @param string $identifier |
||
| 10 | */ |
||
| 11 | public static function variable($data, $identifier = '') { |
||
| 18 | } |
||
| 19 | |||
| 20 | private static function get_variable_text_with_title($data, $title) { |
||
| 29 | } |
||
| 30 | |||
| 31 | private static function get_variable_text($var) { |
||
| 32 | switch (gettype($var)) { |
||
| 33 | case 'string': |
||
| 34 | return self::string_text($var); |
||
| 35 | case 'integer': |
||
| 36 | case 'double': |
||
| 37 | return self::number_text($var); |
||
| 38 | case 'boolean': |
||
| 39 | return self::bool_text($var); |
||
| 40 | case 'NULL': |
||
| 41 | return 'null'; |
||
| 42 | default: |
||
| 43 | return print_r($var, true); |
||
| 44 | } |
||
| 45 | } |
||
| 46 | |||
| 47 | private static function string_text($string) { |
||
| 48 | return 'string: "' . $string . '"'; |
||
| 49 | } |
||
| 50 | |||
| 51 | private static function number_text($int) { |
||
| 52 | return 'number: ' . $int; |
||
| 53 | } |
||
| 54 | |||
| 55 | private static function bool_text($bool) { |
||
| 59 | } |
||
| 60 | } |