| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | class Json extends Lorem |
||
| 29 | { |
||
| 30 | /** |
||
| 31 | * Generate a json list containing words |
||
| 32 | * |
||
| 33 | * @example ["ut", "eaque", "rerum", "voluptatem"] |
||
| 34 | * @param int $nb how many words to return |
||
| 35 | * |
||
| 36 | * @return array|string |
||
| 37 | */ |
||
| 38 | public static function jsonWordsList($nb = 3) |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Generate a json containing words as an object |
||
| 50 | * |
||
| 51 | * @example ["ut", "eaque", "rerum", "voluptatem"] |
||
| 52 | * @param int $nb how many words to return |
||
| 53 | * |
||
| 54 | * @return array|string |
||
| 55 | */ |
||
| 56 | public static function jsonWordsObject($nb = 3) |
||
| 67 |