@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | case 'earliest': $this->setEarliest($value); break; |
199 | 199 | case 'page_ids': $this->setPageIds($value); break; |
200 | 200 | default: |
201 | - throw new Exception('Unknown option found in the Experiment entity: ' . $name); |
|
201 | + throw new Exception('Unknown option found in the Experiment entity: '.$name); |
|
202 | 202 | } |
203 | 203 | } |
204 | 204 | } |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | 'key' => $this->getKey(), |
219 | 219 | 'last_modified' => $this->getLastModified(), |
220 | 220 | 'name' => $this->getName(), |
221 | - 'schedule' => $this->getSchedule()?$this->getSchedule()->toArray():null, |
|
221 | + 'schedule' => $this->getSchedule() ? $this->getSchedule()->toArray() : null, |
|
222 | 222 | 'status' => $this->getStatus(), |
223 | 223 | 'id' => $this->getId(), |
224 | 224 | 'is_classic' => $this->getIsClassic(), |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | // Remove options with empty values |
260 | 260 | $cleanedOptions = array(); |
261 | 261 | foreach ($options as $name=>$value) { |
262 | - if ($value!==null) |
|
262 | + if ($value !== null) |
|
263 | 263 | $cleanedOptions[$name] = $value; |
264 | 264 | } |
265 | 265 |
@@ -63,9 +63,9 @@ discard block |
||
63 | 63 | case 'aggregator': $this->setAggregator($value); break; |
64 | 64 | case 'field': $this->setField($value); break; |
65 | 65 | case 'scope': $this->setScope($value); break; |
66 | - case 'winning_direction' : $this->setWinningDirection($value); break; |
|
66 | + case 'winning_direction' : $this->setWinningDirection($value); break; |
|
67 | 67 | default: |
68 | - throw new Exception('Unknown option found in the Metric entity: ' . $name); |
|
68 | + throw new Exception('Unknown option found in the Metric entity: '.$name); |
|
69 | 69 | } |
70 | 70 | } |
71 | 71 | } |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | // Remove options with empty values |
87 | 87 | $cleanedOptions = array(); |
88 | 88 | foreach ($options as $name=>$value) { |
89 | - if ($value!==null) |
|
89 | + if ($value !== null) |
|
90 | 90 | $cleanedOptions[$name] = $value; |
91 | 91 | } |
92 | 92 |