Fix CollpaseFunctions for functions with headers over several lines

Example:

```
public function func
     (arg1,
     arg2)
 {

 }
```