@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | case 'latest': $this->setLatest($value); break; |
217 | 217 | case 'url_targeting': $this->setUrlTargeting(new UrlTargeting($value)); break; |
218 | 218 | default: |
219 | - throw new Exception('Unknown option found in the Experiment entity: ' . $name); |
|
219 | + throw new Exception('Unknown option found in the Experiment entity: '.$name); |
|
220 | 220 | } |
221 | 221 | } |
222 | 222 | } |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | 'key' => $this->getKey(), |
237 | 237 | 'last_modified' => $this->getLastModified(), |
238 | 238 | 'name' => $this->getName(), |
239 | - 'schedule' => $this->getSchedule()?$this->getSchedule()->toArray():null, |
|
239 | + 'schedule' => $this->getSchedule() ? $this->getSchedule()->toArray() : null, |
|
240 | 240 | 'status' => $this->getStatus(), |
241 | 241 | 'id' => $this->getId(), |
242 | 242 | 'is_classic' => $this->getIsClassic(), |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | // Remove options with empty values |
280 | 280 | $cleanedOptions = array(); |
281 | 281 | foreach ($options as $name=>$value) { |
282 | - if ($value!==null) |
|
282 | + if ($value !== null) |
|
283 | 283 | $cleanedOptions[$name] = $value; |
284 | 284 | } |
285 | 285 |