| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function decorate(&$docComment) |
||
| 26 | { |
||
| 27 | $docComment = trim($docComment); |
||
| 28 | |||
| 29 | // Remove leading slash |
||
| 30 | $docComment = preg_replace('~^/~ms', '', $docComment); |
||
| 31 | |||
| 32 | // Remove trailing slash |
||
| 33 | $docComment = preg_replace('~/$~ms', '', $docComment); |
||
| 34 | |||
| 35 | // Remove stars and one space |
||
| 36 | $docComment = preg_replace('~^\s*\**~ms', '', $docComment); |
||
| 37 | |||
| 38 | // Remove leading spaces. Other whitespace must be preserved. |
||
| 39 | $docComment = preg_replace('~^ {1}~ms', '', $docComment); |
||
| 40 | } |
||
| 41 | |||
| 43 |