@@ -71,19 +71,19 @@ discard block |
||
| 71 | 71 | if (!empty($ids)) { |
| 72 | 72 | $postData['ids'] = implode(',', $ids); |
| 73 | 73 | } |
| 74 | - if($title) { |
|
| 74 | + if ($title) { |
|
| 75 | 75 | $postData['title'] = $title; |
| 76 | 76 | } |
| 77 | - if($description) { |
|
| 77 | + if ($description) { |
|
| 78 | 78 | $postData['description'] = $description; |
| 79 | 79 | } |
| 80 | - if($privacy) { |
|
| 80 | + if ($privacy) { |
|
| 81 | 81 | $postData['privacy'] = $privacy; |
| 82 | 82 | } |
| 83 | - if($layout) { |
|
| 83 | + if ($layout) { |
|
| 84 | 84 | $postData['layout'] = $layout; |
| 85 | 85 | } |
| 86 | - if($cover) { |
|
| 86 | + if ($cover) { |
|
| 87 | 87 | $postData['cover'] = $cover; |
| 88 | 88 | } |
| 89 | 89 | |
@@ -129,19 +129,19 @@ discard block |
||
| 129 | 129 | if (!empty($ids)) { |
| 130 | 130 | $postData['ids'] = implode(',', $ids); |
| 131 | 131 | } |
| 132 | - if($title) { |
|
| 132 | + if ($title) { |
|
| 133 | 133 | $postData['title'] = $title; |
| 134 | 134 | } |
| 135 | - if($description) { |
|
| 135 | + if ($description) { |
|
| 136 | 136 | $postData['description'] = $description; |
| 137 | 137 | } |
| 138 | - if($privacy) { |
|
| 138 | + if ($privacy) { |
|
| 139 | 139 | $postData['privacy'] = $privacy; |
| 140 | 140 | } |
| 141 | - if($layout) { |
|
| 141 | + if ($layout) { |
|
| 142 | 142 | $postData['layout'] = $layout; |
| 143 | 143 | } |
| 144 | - if($cover) { |
|
| 144 | + if ($cover) { |
|
| 145 | 145 | $postData['cover'] = $cover; |
| 146 | 146 | } |
| 147 | 147 | |
@@ -166,11 +166,11 @@ |
||
| 166 | 166 | $headers = []; |
| 167 | 167 | |
| 168 | 168 | $headers['Authorization'] = 'Client-ID ' . $this->client->getClientId(); |
| 169 | - if($this->client->getToken() && $this->client->getToken()->getAccessToken()) { |
|
| 169 | + if ($this->client->getToken() && $this->client->getToken()->getAccessToken()) { |
|
| 170 | 170 | $headers['Authorization'] = 'Bearer ' . $this->client->getToken()->getAccessToken(); |
| 171 | 171 | } |
| 172 | 172 | |
| 173 | - if($this->client->getMashapeKey()) { |
|
| 173 | + if ($this->client->getMashapeKey()) { |
|
| 174 | 174 | $headers['X-Mashape-Key'] = $this->client->getMashapeKey(); |
| 175 | 175 | } |
| 176 | 176 | |
@@ -108,7 +108,7 @@ |
||
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | $interfaces = class_implements($fqn); |
| 111 | - if($interfaces && !in_array($interface, $interfaces)) { |
|
| 111 | + if ($interfaces && !in_array($interface, $interfaces)) { |
|
| 112 | 112 | throw new \InvalidArgumentException($fqn . 'must implement ' . $interface); |
| 113 | 113 | } |
| 114 | 114 | } |