@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | case 'page_ids': $this->setPageIds($value); break; |
206 | 206 | case 'latest': $this->setLatest($value); break; |
207 | 207 | default: |
208 | - throw new Exception('Unknown option found in the Experiment entity: ' . $name); |
|
208 | + throw new Exception('Unknown option found in the Experiment entity: '.$name); |
|
209 | 209 | } |
210 | 210 | } |
211 | 211 | } |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | 'key' => $this->getKey(), |
226 | 226 | 'last_modified' => $this->getLastModified(), |
227 | 227 | 'name' => $this->getName(), |
228 | - 'schedule' => $this->getSchedule()?$this->getSchedule()->toArray():null, |
|
228 | + 'schedule' => $this->getSchedule() ? $this->getSchedule()->toArray() : null, |
|
229 | 229 | 'status' => $this->getStatus(), |
230 | 230 | 'id' => $this->getId(), |
231 | 231 | 'is_classic' => $this->getIsClassic(), |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | // Remove options with empty values |
268 | 268 | $cleanedOptions = array(); |
269 | 269 | foreach ($options as $name=>$value) { |
270 | - if ($value!==null) |
|
270 | + if ($value !== null) |
|
271 | 271 | $cleanedOptions[$name] = $value; |
272 | 272 | } |
273 | 273 |