@@ -245,8 +245,9 @@ |
||
245 | 245 | } |
246 | 246 | |
247 | 247 | foreach ($array as $key => $value) { |
248 | - if (is_null($value) || $value == '') |
|
249 | - unset($array[$key]); |
|
248 | + if (is_null($value) || $value == '') { |
|
249 | + unset($array[$key]); |
|
250 | + } |
|
250 | 251 | } |
251 | 252 | return $array; |
252 | 253 | } |
@@ -216,8 +216,9 @@ |
||
216 | 216 | 'typeOfVideo' => $this->typeOfVideo, |
217 | 217 | 'videoDimensions' => $this->videoDimensions]; |
218 | 218 | foreach ($array as $key => $value) { |
219 | - if (is_null($value) || $value == '') |
|
220 | - unset($array[$key]); |
|
219 | + if (is_null($value) || $value == '') { |
|
220 | + unset($array[$key]); |
|
221 | + } |
|
221 | 222 | } |
222 | 223 | return $array; |
223 | 224 | } |
@@ -146,8 +146,9 @@ |
||
146 | 146 | 'defaultCustomLayout' => $this->defaultCustomLayout, |
147 | 147 | 'customSessionId' => $this->customSessionId]; |
148 | 148 | foreach ($array as $key => $value) { |
149 | - if (is_null($value) || $value == '') |
|
150 | - unset($array[$key]); |
|
149 | + if (is_null($value) || $value == '') { |
|
150 | + unset($array[$key]); |
|
151 | + } |
|
151 | 152 | } |
152 | 153 | return $array; |
153 | 154 | } |
@@ -190,8 +190,9 @@ |
||
190 | 190 | { |
191 | 191 | $array = ['id' => $this->id, 'sessionId' => $this->sessionId, 'size' => $this->size, 'status' => $this->status, 'duration' => $this->duration, 'resolution' => $this->getResolution(), 'hasAudio' => $this->hasAudio(), 'hasVideo' => $this->hasVideo(), 'url' => $this->url, 'createdAt' => $this->createdAt]; |
192 | 192 | foreach ($array as $key => $value) { |
193 | - if (is_null($value) || $value == '') |
|
194 | - unset($array[$key]); |
|
193 | + if (is_null($value) || $value == '') { |
|
194 | + unset($array[$key]); |
|
195 | + } |
|
195 | 196 | } |
196 | 197 | return $array; |
197 | 198 | } |
@@ -60,8 +60,9 @@ |
||
60 | 60 | { |
61 | 61 | $array = ['role' => $this->role, 'data' => $this->data]; |
62 | 62 | foreach ($array as $key => $value) { |
63 | - if (is_null($value) || $value == '') |
|
64 | - unset($array[$key]); |
|
63 | + if (is_null($value) || $value == '') { |
|
64 | + unset($array[$key]); |
|
65 | + } |
|
65 | 66 | } |
66 | 67 | return $array; |
67 | 68 | } |
@@ -228,8 +228,9 @@ |
||
228 | 228 | |
229 | 229 | |
230 | 230 | foreach ($array as $key => $value) { |
231 | - if (is_null($value) || $value == '') |
|
232 | - unset($array[$key]); |
|
231 | + if (is_null($value) || $value == '') { |
|
232 | + unset($array[$key]); |
|
233 | + } |
|
233 | 234 | } |
234 | 235 | return $array; |
235 | 236 | } |
@@ -198,8 +198,9 @@ |
||
198 | 198 | 'resolution' => $this->resolution, |
199 | 199 | 'customLayout' => $this->customLayout]; |
200 | 200 | foreach ($array as $key => $value) { |
201 | - if (is_null($value) || $value == '') |
|
202 | - unset($array[$key]); |
|
201 | + if (is_null($value) || $value == '') { |
|
202 | + unset($array[$key]); |
|
203 | + } |
|
203 | 204 | } |
204 | 205 | return $array; |
205 | 206 | } |