@@ -61,7 +61,7 @@ |
||
| 61 | 61 | $response = $this->connection->sendPayload($payload); |
| 62 | 62 | $statusCode = $response->getStatusCode(); |
| 63 | 63 | if ($statusCode >= 200 && $statusCode < 300) { |
| 64 | - return new Token($response->getJsonResponse()['token']) ; |
|
| 64 | + return new Token($response->getJsonResponse()['token']); |
|
| 65 | 65 | } else { |
| 66 | 66 | throw new ResponseException($response); |
| 67 | 67 | } |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -spl_autoload_register(function ($className) { |
|
| 3 | +spl_autoload_register(function($className) { |
|
| 4 | 4 | $filename = __DIR__ . '/' . str_replace(array('\\', 'VideoPublisher/'), array('/', ''), ltrim($className, '\\')) . '.php'; |
| 5 | 5 | if (file_exists($filename)) { |
| 6 | 6 | require_once $filename; |
@@ -48,8 +48,8 @@ |
||
| 48 | 48 | $this->name = $data['streamName']; |
| 49 | 49 | $this->uuid = $data['uuid']; |
| 50 | 50 | $this->status = $data['status']; |
| 51 | - $this->enabled = (boolean)$data['enabled']; |
|
| 52 | - $this->viewable = (boolean)$data['viewable']; |
|
| 51 | + $this->enabled = (boolean) $data['enabled']; |
|
| 52 | + $this->viewable = (boolean) $data['viewable']; |
|
| 53 | 53 | $this->view = new StreamView($data['view']); |
| 54 | 54 | } |
| 55 | 55 | |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | $this->name = $data['streamName']; |
| 39 | 39 | $this->uuid = $data['uuid']; |
| 40 | 40 | $this->status = $data['status']; |
| 41 | - $this->enabled = (boolean)$data['enabled']; |
|
| 41 | + $this->enabled = (boolean) $data['enabled']; |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | /** |