ninjablocks/php-ninja-blocks — pull request #1 by clarkeash (2013-07-04 01:45:10+00:00)
Title: Changed 'var' to 'public'

I changed your use of the `var` keyword to use `public`. `var` is kinda depreciated and just aliases to `public`.

I am not sure if you guys are php devs or not but there are a few things in your code I would change:

- I think several of your variables should be private/protected instead of `public` (or `var` as you used)
- All classes should be in their own file
- method names should be camelCase:

````
public function GetDevices() {
return $this->MakeRequest("GET", "devices");
}
````

would be:

````
public function getDevices() {
//MakeRequest would also change to makeRequest
return $this->MakeRequest("GET", "devices");
}
````

I would also consider making this at least PSR-0 standard so that the library can easily be used with composer. I can help with that if you like.

Just a note: I haven't bought a ninja block, was considering it and came across your code (still considering it)