@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | case 'type': $this->setType($value); break; |
179 | 179 | case 'audience_conditions': $this->setAudienceConditions($value); break; |
180 | 180 | default: |
181 | - throw new Exception('Unknown option found in the Experiment entity: ' . $name); |
|
181 | + throw new Exception('Unknown option found in the Experiment entity: '.$name); |
|
182 | 182 | } |
183 | 183 | } |
184 | 184 | } |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | 'key' => $this->getKey(), |
199 | 199 | 'last_modified' => $this->getLastModified(), |
200 | 200 | 'name' => $this->getName(), |
201 | - 'schedule' => $this->getSchedule()?$this->getSchedule()->toArray():null, |
|
201 | + 'schedule' => $this->getSchedule() ? $this->getSchedule()->toArray() : null, |
|
202 | 202 | 'status' => $this->getStatus(), |
203 | 203 | 'id' => $this->getId(), |
204 | 204 | 'is_classic' => $this->getIsClassic(), |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | // Remove options with empty values |
237 | 237 | $cleanedOptions = array(); |
238 | 238 | foreach ($options as $name=>$value) { |
239 | - if ($value!==null) |
|
239 | + if ($value !== null) |
|
240 | 240 | $cleanedOptions[$name] = $value; |
241 | 241 | } |
242 | 242 |