@@ -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; |
@@ -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; |
@@ -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; |
@@ -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; |
@@ -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; |
@@ -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; |
@@ -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; |
@@ -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 |