Undefined property $request

Fixed call to undefined property, had to be a variable
Indent using spaces
Merge pull request #9 from dutchbridge/patch

Undefined property $request