@@ -405,7 +405,7 @@ |
||
405 | 405 | } |
406 | 406 | |
407 | 407 | /** |
408 | - * @return mixed |
|
408 | + * @return string |
|
409 | 409 | */ |
410 | 410 | public function getSection() |
411 | 411 | { |
@@ -92,7 +92,7 @@ |
||
92 | 92 | /** |
93 | 93 | * Checks if $fqn is an instantiable class and implements necessary interface |
94 | 94 | * @param string $fqn |
95 | - * @param $interface |
|
95 | + * @param string $interface |
|
96 | 96 | * @throws \InvalidArgumentException |
97 | 97 | */ |
98 | 98 | protected function checkClass($fqn, $interface) |
@@ -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 | } |
@@ -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 |