Luracast/Restler — pull request #47 by nickl- (2012-06-01 04:19:35+00:00)
Title: Restler && Content Negotiation using Accept == TRUE

I initially only set out to validate the expression and heading to this pull request but since it was such an effort to work with the source code I decided to go another extra mile, wait make that two extra miles, so that I don't have to put myself through this again.

Things that MUST happen before I would consider working with this code base again, and some other friendly suggestions which you MAY consider.

* Please pick a code convention and stick with it.

Which one is it now?

```php
params;
$comment = trim($comment[1]);
//Get all the lines and strip the * from the first character
if(preg_match_all('#^\s*\*(.*)#m', $comment, $lines) === false)
return $this->params;
$this->parseLines($lines[1]);
return $this->params;
```

If you have to use single line if statements keep them on a single line or at the very least add some indentation.

```php