@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | } |
| 89 | 89 | case 'unit': $this->setUnit($value); break; |
| 90 | 90 | default: |
| 91 | - throw new Exception('Unknown option: ' . $name); |
|
| 91 | + throw new Exception('Unknown option: '.$name); |
|
| 92 | 92 | } |
| 93 | 93 | } |
| 94 | 94 | } |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | // Remove options with empty values |
| 116 | 116 | $cleanedOptions = array(); |
| 117 | 117 | foreach ($options as $name=>$value) { |
| 118 | - if ($value!==null) |
|
| 118 | + if ($value !== null) |
|
| 119 | 119 | $cleanedOptions[$name] = $value; |
| 120 | 120 | } |
| 121 | 121 | |
@@ -91,8 +91,9 @@ |
||
| 91 | 91 | // Remove options with empty values |
| 92 | 92 | $cleanedOptions = array(); |
| 93 | 93 | foreach ($options as $name=>$value) { |
| 94 | - if ($value!==null) |
|
| 95 | - $cleanedOptions[$name] = $value; |
|
| 94 | + if ($value!==null) { |
|
| 95 | + $cleanedOptions[$name] = $value; |
|
| 96 | + } |
|
| 96 | 97 | } |
| 97 | 98 | |
| 98 | 99 | return $cleanedOptions; |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | case 'code_revision': $this->setCodeRevision($value); break; |
| 99 | 99 | case 'js_file_size': $this->setJsFileSize($value); break; |
| 100 | 100 | default: |
| 101 | - throw new Exception('Unknown option: ' . $name); |
|
| 101 | + throw new Exception('Unknown option: '.$name); |
|
| 102 | 102 | } |
| 103 | 103 | } |
| 104 | 104 | } |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | // Remove options with empty values |
| 125 | 125 | $cleanedOptions = array(); |
| 126 | 126 | foreach ($options as $name=>$value) { |
| 127 | - if ($value!==null) |
|
| 127 | + if ($value !== null) |
|
| 128 | 128 | $cleanedOptions[$name] = $value; |
| 129 | 129 | } |
| 130 | 130 | |
@@ -91,8 +91,9 @@ |
||
| 91 | 91 | // Remove options with empty values |
| 92 | 92 | $cleanedOptions = array(); |
| 93 | 93 | foreach ($options as $name=>$value) { |
| 94 | - if ($value!==null) |
|
| 95 | - $cleanedOptions[$name] = $value; |
|
| 94 | + if ($value!==null) { |
|
| 95 | + $cleanedOptions[$name] = $value; |
|
| 96 | + } |
|
| 96 | 97 | } |
| 97 | 98 | |
| 98 | 99 | return $cleanedOptions; |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | case 'stop_time': $this->setStopTime($value); break; |
| 43 | 43 | case 'time_zone': $this->setTimezone($value); break; |
| 44 | 44 | default: |
| 45 | - throw new Exception('Unknown option: ' . $name); |
|
| 45 | + throw new Exception('Unknown option: '.$name); |
|
| 46 | 46 | } |
| 47 | 47 | } |
| 48 | 48 | } |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | // Remove options with empty values |
| 62 | 62 | $cleanedOptions = array(); |
| 63 | 63 | foreach ($options as $name=>$value) { |
| 64 | - if ($value!==null) |
|
| 64 | + if ($value !== null) |
|
| 65 | 65 | $cleanedOptions[$name] = $value; |
| 66 | 66 | } |
| 67 | 67 | |
@@ -91,8 +91,9 @@ |
||
| 91 | 91 | // Remove options with empty values |
| 92 | 92 | $cleanedOptions = array(); |
| 93 | 93 | foreach ($options as $name=>$value) { |
| 94 | - if ($value!==null) |
|
| 95 | - $cleanedOptions[$name] = $value; |
|
| 94 | + if ($value!==null) { |
|
| 95 | + $cleanedOptions[$name] = $value; |
|
| 96 | + } |
|
| 96 | 97 | } |
| 97 | 98 | |
| 98 | 99 | return $cleanedOptions; |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | case 'unit': $this->setUnit($value); break; |
| 75 | 75 | case 'variation_results': $this->setVariationResults($value); break; |
| 76 | 76 | default: |
| 77 | - throw new Exception('Unknown option: ' . $name); |
|
| 77 | + throw new Exception('Unknown option: '.$name); |
|
| 78 | 78 | } |
| 79 | 79 | } |
| 80 | 80 | } |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | case 'id': $this->setId($value); break; |
| 162 | 162 | case 'is_classic': $this->setIsClassic($value); break; |
| 163 | 163 | default: |
| 164 | - throw new Exception('Unknown option: ' . $name); |
|
| 164 | + throw new Exception('Unknown option: '.$name); |
|
| 165 | 165 | } |
| 166 | 166 | } |
| 167 | 167 | } |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | 'last_modified' => $this->getLastModified(), |
| 184 | 184 | 'metrics' => array(), |
| 185 | 185 | 'name' => $this->getName(), |
| 186 | - 'schedule' => $this->getSchedule()?$this->getSchedule()->toArray():null, |
|
| 186 | + 'schedule' => $this->getSchedule() ? $this->getSchedule()->toArray() : null, |
|
| 187 | 187 | 'status' => $this->getStatus(), |
| 188 | 188 | 'variations' => array(), |
| 189 | 189 | 'id' => $this->getId(), |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | // Remove options with empty values |
| 206 | 206 | $cleanedOptions = array(); |
| 207 | 207 | foreach ($options as $name=>$value) { |
| 208 | - if ($value!==null) |
|
| 208 | + if ($value !== null) |
|
| 209 | 209 | $cleanedOptions[$name] = $value; |
| 210 | 210 | } |
| 211 | 211 | |
@@ -91,8 +91,9 @@ |
||
| 91 | 91 | // Remove options with empty values |
| 92 | 92 | $cleanedOptions = array(); |
| 93 | 93 | foreach ($options as $name=>$value) { |
| 94 | - if ($value!==null) |
|
| 95 | - $cleanedOptions[$name] = $value; |
|
| 94 | + if ($value!==null) { |
|
| 95 | + $cleanedOptions[$name] = $value; |
|
| 96 | + } |
|
| 96 | 97 | } |
| 97 | 98 | |
| 98 | 99 | return $cleanedOptions; |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | case 'value': $this->setValue($value); break; |
| 69 | 69 | case 'visitors_remaining': $this->setVisitorsRemaining($value); break; |
| 70 | 70 | default: |
| 71 | - throw new Exception('Unknown option: ' . $name); |
|
| 71 | + throw new Exception('Unknown option: '.$name); |
|
| 72 | 72 | } |
| 73 | 73 | } |
| 74 | 74 | } |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | // Remove options with empty values |
| 91 | 91 | $cleanedOptions = array(); |
| 92 | 92 | foreach ($options as $name=>$value) { |
| 93 | - if ($value!==null) |
|
| 93 | + if ($value !== null) |
|
| 94 | 94 | $cleanedOptions[$name] = $value; |
| 95 | 95 | } |
| 96 | 96 | |
@@ -91,8 +91,9 @@ |
||
| 91 | 91 | // Remove options with empty values |
| 92 | 92 | $cleanedOptions = array(); |
| 93 | 93 | foreach ($options as $name=>$value) { |
| 94 | - if ($value!==null) |
|
| 95 | - $cleanedOptions[$name] = $value; |
|
| 94 | + if ($value!==null) { |
|
| 95 | + $cleanedOptions[$name] = $value; |
|
| 96 | + } |
|
| 96 | 97 | } |
| 97 | 98 | |
| 98 | 99 | return $cleanedOptions; |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | } |
| 43 | 43 | case 'page_id': $this->setPageId($value); break; |
| 44 | 44 | default: |
| 45 | - throw new Exception('Unknown option: ' . $name); |
|
| 45 | + throw new Exception('Unknown option: '.$name); |
|
| 46 | 46 | } |
| 47 | 47 | } |
| 48 | 48 | } |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | // Remove options with empty values |
| 65 | 65 | $cleanedOptions = array(); |
| 66 | 66 | foreach ($options as $name=>$value) { |
| 67 | - if ($value!==null) |
|
| 67 | + if ($value !== null) |
|
| 68 | 68 | $cleanedOptions[$name] = $value; |
| 69 | 69 | } |
| 70 | 70 | |
@@ -91,8 +91,9 @@ |
||
| 91 | 91 | // Remove options with empty values |
| 92 | 92 | $cleanedOptions = array(); |
| 93 | 93 | foreach ($options as $name=>$value) { |
| 94 | - if ($value!==null) |
|
| 95 | - $cleanedOptions[$name] = $value; |
|
| 94 | + if ($value!==null) { |
|
| 95 | + $cleanedOptions[$name] = $value; |
|
| 96 | + } |
|
| 96 | 97 | } |
| 97 | 98 | |
| 98 | 99 | return $cleanedOptions; |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | case 'reach': $this->setReach(new ExperimentVariationReach($value)); break; |
| 76 | 76 | case 'start_time': $this->setStartTime($value); break; |
| 77 | 77 | default: |
| 78 | - throw new Exception('Unknown option: ' . $name); |
|
| 78 | + throw new Exception('Unknown option: '.$name); |
|
| 79 | 79 | } |
| 80 | 80 | } |
| 81 | 81 | } |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | 'end_time' => $this->getEndTime(), |
| 91 | 91 | 'experiment_id' => $this->getExperimentId(), |
| 92 | 92 | 'metrics' => array(), |
| 93 | - 'reach' => $this->getReach()?$this->getReach()->toArray():null, |
|
| 93 | + 'reach' => $this->getReach() ? $this->getReach()->toArray() : null, |
|
| 94 | 94 | 'start_time' => $this->getStartTime() |
| 95 | 95 | ); |
| 96 | 96 | |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | // Remove options with empty values |
| 102 | 102 | $cleanedOptions = array(); |
| 103 | 103 | foreach ($options as $name=>$value) { |
| 104 | - if ($value!==null) |
|
| 104 | + if ($value !== null) |
|
| 105 | 105 | $cleanedOptions[$name] = $value; |
| 106 | 106 | } |
| 107 | 107 | |
@@ -91,8 +91,9 @@ |
||
| 91 | 91 | // Remove options with empty values |
| 92 | 92 | $cleanedOptions = array(); |
| 93 | 93 | foreach ($options as $name=>$value) { |
| 94 | - if ($value!==null) |
|
| 95 | - $cleanedOptions[$name] = $value; |
|
| 94 | + if ($value!==null) { |
|
| 95 | + $cleanedOptions[$name] = $value; |
|
| 96 | + } |
|
| 96 | 97 | } |
| 97 | 98 | |
| 98 | 99 | return $cleanedOptions; |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | case 'id': $this->setId($value); break; |
| 85 | 85 | case 'last_modified': $this->setLastModified($value); break; |
| 86 | 86 | default: |
| 87 | - throw new Exception('Unknown option: ' . $name); |
|
| 87 | + throw new Exception('Unknown option: '.$name); |
|
| 88 | 88 | } |
| 89 | 89 | } |
| 90 | 90 | } |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | // Remove options with empty values |
| 110 | 110 | $cleanedOptions = array(); |
| 111 | 111 | foreach ($options as $name=>$value) { |
| 112 | - if ($value!==null) |
|
| 112 | + if ($value !== null) |
|
| 113 | 113 | $cleanedOptions[$name] = $value; |
| 114 | 114 | } |
| 115 | 115 | |
@@ -91,8 +91,9 @@ |
||
| 91 | 91 | // Remove options with empty values |
| 92 | 92 | $cleanedOptions = array(); |
| 93 | 93 | foreach ($options as $name=>$value) { |
| 94 | - if ($value!==null) |
|
| 95 | - $cleanedOptions[$name] = $value; |
|
| 94 | + if ($value!==null) { |
|
| 95 | + $cleanedOptions[$name] = $value; |
|
| 96 | + } |
|
| 96 | 97 | } |
| 97 | 98 | |
| 98 | 99 | return $cleanedOptions; |