@@ -51,8 +51,9 @@ |
||
51 | 51 | // Remove options with empty values |
52 | 52 | $cleanedOptions = array(); |
53 | 53 | foreach ($options as $name=>$value) { |
54 | - if ($value!==null) |
|
55 | - $cleanedOptions[$name] = $value; |
|
54 | + if ($value!==null) { |
|
55 | + $cleanedOptions[$name] = $value; |
|
56 | + } |
|
56 | 57 | } |
57 | 58 | |
58 | 59 | return $cleanedOptions; |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | case 'variation_id': $this->setVariationId($value); break; |
50 | 50 | case 'variation_reach': $this->setVariationReach($value); break; |
51 | 51 | default: |
52 | - throw new Exception('Unknown option: ' . $name); |
|
52 | + throw new Exception('Unknown option: '.$name); |
|
53 | 53 | } |
54 | 54 | } |
55 | 55 | } |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | // Remove options with empty values |
70 | 70 | $cleanedOptions = array(); |
71 | 71 | foreach ($options as $name=>$value) { |
72 | - if ($value!==null) |
|
72 | + if ($value !== null) |
|
73 | 73 | $cleanedOptions[$name] = $value; |
74 | 74 | } |
75 | 75 |
@@ -51,8 +51,9 @@ |
||
51 | 51 | // Remove options with empty values |
52 | 52 | $cleanedOptions = array(); |
53 | 53 | foreach ($options as $name=>$value) { |
54 | - if ($value!==null) |
|
55 | - $cleanedOptions[$name] = $value; |
|
54 | + if ($value!==null) { |
|
55 | + $cleanedOptions[$name] = $value; |
|
56 | + } |
|
56 | 57 | } |
57 | 58 | |
58 | 59 | return $cleanedOptions; |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | case 'last_modified': $this->setLastModified($value); break; |
116 | 116 | case 'socket_token': $this->setSocketToken($value); break; |
117 | 117 | default: |
118 | - throw new Exception('Unknown option: ' . $name); |
|
118 | + throw new Exception('Unknown option: '.$name); |
|
119 | 119 | } |
120 | 120 | } |
121 | 121 | } |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | 'dcp_service_id' => $this->getDcpServiceId(), |
133 | 133 | 'platform' => $this->getPlatform(), |
134 | 134 | 'status' => $this->getStatus(), |
135 | - 'web_snippet' => $this->getWebSnippet()?$this->getWebSnippet()->toArray():null, |
|
135 | + 'web_snippet' => $this->getWebSnippet() ? $this->getWebSnippet()->toArray() : null, |
|
136 | 136 | 'created' => $this->getCreated(), |
137 | 137 | 'id' => $this->getId(), |
138 | 138 | 'is_classic' => $this->getIsClassic(), |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | // Remove options with empty values |
144 | 144 | $cleanedOptions = array(); |
145 | 145 | foreach ($options as $name=>$value) { |
146 | - if ($value!==null) |
|
146 | + if ($value !== null) |
|
147 | 147 | $cleanedOptions[$name] = $value; |
148 | 148 | } |
149 | 149 |
@@ -51,8 +51,9 @@ |
||
51 | 51 | // Remove options with empty values |
52 | 52 | $cleanedOptions = array(); |
53 | 53 | foreach ($options as $name=>$value) { |
54 | - if ($value!==null) |
|
55 | - $cleanedOptions[$name] = $value; |
|
54 | + if ($value!==null) { |
|
55 | + $cleanedOptions[$name] = $value; |
|
56 | + } |
|
56 | 57 | } |
57 | 58 | |
58 | 59 | 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 |
@@ -51,8 +51,9 @@ |
||
51 | 51 | // Remove options with empty values |
52 | 52 | $cleanedOptions = array(); |
53 | 53 | foreach ($options as $name=>$value) { |
54 | - if ($value!==null) |
|
55 | - $cleanedOptions[$name] = $value; |
|
54 | + if ($value!==null) { |
|
55 | + $cleanedOptions[$name] = $value; |
|
56 | + } |
|
56 | 57 | } |
57 | 58 | |
58 | 59 | return $cleanedOptions; |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | case 'id': $this->setId($value); break; |
121 | 121 | case 'last_modified': $this->setLastModified($value); break; |
122 | 122 | default: |
123 | - throw new Exception('Unknown option: ' . $name); |
|
123 | + throw new Exception('Unknown option: '.$name); |
|
124 | 124 | } |
125 | 125 | } |
126 | 126 | } |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | // Remove options with empty values |
151 | 151 | $cleanedOptions = array(); |
152 | 152 | foreach ($options as $name=>$value) { |
153 | - if ($value!==null) |
|
153 | + if ($value !== null) |
|
154 | 154 | $cleanedOptions[$name] = $value; |
155 | 155 | } |
156 | 156 |
@@ -51,8 +51,9 @@ |
||
51 | 51 | // Remove options with empty values |
52 | 52 | $cleanedOptions = array(); |
53 | 53 | foreach ($options as $name=>$value) { |
54 | - if ($value!==null) |
|
55 | - $cleanedOptions[$name] = $value; |
|
54 | + if ($value!==null) { |
|
55 | + $cleanedOptions[$name] = $value; |
|
56 | + } |
|
56 | 57 | } |
57 | 58 | |
58 | 59 | return $cleanedOptions; |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | case 'variation_id': $this->setVariationId($value); break; |
72 | 72 | case 'weight': $this->setWeight($value); break; |
73 | 73 | default: |
74 | - throw new Exception('Unknown option: ' . $name); |
|
74 | + throw new Exception('Unknown option: '.$name); |
|
75 | 75 | } |
76 | 76 | } |
77 | 77 | } |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | // Remove options with empty values |
98 | 98 | $cleanedOptions = array(); |
99 | 99 | foreach ($options as $name=>$value) { |
100 | - if ($value!==null) |
|
100 | + if ($value !== null) |
|
101 | 101 | $cleanedOptions[$name] = $value; |
102 | 102 | } |
103 | 103 |
@@ -51,8 +51,9 @@ |
||
51 | 51 | // Remove options with empty values |
52 | 52 | $cleanedOptions = array(); |
53 | 53 | foreach ($options as $name=>$value) { |
54 | - if ($value!==null) |
|
55 | - $cleanedOptions[$name] = $value; |
|
54 | + if ($value!==null) { |
|
55 | + $cleanedOptions[$name] = $value; |
|
56 | + } |
|
56 | 57 | } |
57 | 58 | |
58 | 59 | 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 |
@@ -51,8 +51,9 @@ |
||
51 | 51 | // Remove options with empty values |
52 | 52 | $cleanedOptions = array(); |
53 | 53 | foreach ($options as $name=>$value) { |
54 | - if ($value!==null) |
|
55 | - $cleanedOptions[$name] = $value; |
|
54 | + if ($value!==null) { |
|
55 | + $cleanedOptions[$name] = $value; |
|
56 | + } |
|
56 | 57 | } |
57 | 58 | |
58 | 59 | return $cleanedOptions; |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | case 'filter_type': $this->setFilterType($value); break; |
36 | 36 | case 'selector': $this->setSelector($value); break; |
37 | 37 | default: |
38 | - throw new Exception('Unknown option: ' . $name); |
|
38 | + throw new Exception('Unknown option: '.$name); |
|
39 | 39 | } |
40 | 40 | } |
41 | 41 | } |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | // Remove options with empty values |
54 | 54 | $cleanedOptions = array(); |
55 | 55 | foreach ($options as $name=>$value) { |
56 | - if ($value!==null) |
|
56 | + if ($value !== null) |
|
57 | 57 | $cleanedOptions[$name] = $value; |
58 | 58 | } |
59 | 59 |
@@ -51,8 +51,9 @@ |
||
51 | 51 | // Remove options with empty values |
52 | 52 | $cleanedOptions = array(); |
53 | 53 | foreach ($options as $name=>$value) { |
54 | - if ($value!==null) |
|
55 | - $cleanedOptions[$name] = $value; |
|
54 | + if ($value!==null) { |
|
55 | + $cleanedOptions[$name] = $value; |
|
56 | + } |
|
56 | 57 | } |
57 | 58 | |
58 | 59 | 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 |
@@ -51,8 +51,9 @@ |
||
51 | 51 | // Remove options with empty values |
52 | 52 | $cleanedOptions = array(); |
53 | 53 | foreach ($options as $name=>$value) { |
54 | - if ($value!==null) |
|
55 | - $cleanedOptions[$name] = $value; |
|
54 | + if ($value!==null) { |
|
55 | + $cleanedOptions[$name] = $value; |
|
56 | + } |
|
56 | 57 | } |
57 | 58 | |
58 | 59 | 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 |