| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public static function description($text) |
||
| 24 | { |
||
| 25 | $text = nl2br($text); |
||
| 26 | $text = str_replace(["\n", "\n\r", "\r\n", "\r"], '', $text); |
||
| 27 | |||
| 28 | $text = preg_replace_callback('/<json><br \/>(.*?)<\/json>/s', function($item) { |
||
| 29 | $s = '<br><pre class="apiDocu-json">' . str_replace("<br>", '', end($item)) . '</pre>'; |
||
| 30 | $s = preg_replace('/(\s)"([^"]+)"/', '$1<span class="apiDocu-string">"$2"</span>', $s); |
||
| 31 | $s = preg_replace('/\/\/(.*?)<br \/>/', '<span class="apiDocu-comment">//$1</span><br>', $s); |
||
| 32 | |||
| 33 | return $s; |
||
| 34 | }, $text); |
||
| 35 | |||
| 36 | $text = preg_replace('/\*\*([^*]*)\*\*/', '<strong>$1</strong>', $text); |
||
| 37 | |||
| 38 | return $text; |
||
| 39 | } |
||
| 40 | |||
| 42 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.