Completed
Push — master ( fe2892...6427ed )
by Oleg
03:03
created
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/ChangeAttribute.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
                 case 'style': $this->setStyle($value); break;
78 78
                 case 'text': $this->setText($value); break;
79 79
                 default:
80
-                    throw new Exception('Unknown option found in the ChangeAttribute entity: ' . $name);
80
+                    throw new Exception('Unknown option found in the ChangeAttribute entity: '.$name);
81 81
             }
82 82
         }
83 83
     }
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
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
         
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/Metric.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
                 case 'field': $this->setField($value); break;
60 60
                 case 'scope': $this->setScope($value); break;
61 61
                 default:
62
-                    throw new Exception('Unknown option found in the Metric entity: ' . $name);
62
+                    throw new Exception('Unknown option found in the Metric entity: '.$name);
63 63
             }
64 64
         }
65 65
     }
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         // Remove options with empty values
80 80
         $cleanedOptions = array();
81 81
         foreach ($options as $name=>$value) {
82
-            if ($value!==null)
82
+            if ($value !== null)
83 83
                 $cleanedOptions[$name] = $value;
84 84
         }
85 85
         
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/Event.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                 case 'is_classic': $this->setIsClassic($value); break;
125 125
                 case 'is_editable': $this->setIsEditable($value); break;                
126 126
                 default:
127
-                    throw new Exception('Unknown option: ' . $name);
127
+                    throw new Exception('Unknown option: '.$name);
128 128
             }
129 129
         }
130 130
     }
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
             'category' => $this->getCategory(),
141 141
             'created' => $this->getCreated(),
142 142
             'description' => $this->getDescription(),
143
-            'event_filter' => $this->getEventFilter()?$this->getEventFilter()->toArray():null,
143
+            'event_filter' => $this->getEventFilter() ? $this->getEventFilter()->toArray() : null,
144 144
             'event_type' => $this->getEventType(),
145 145
             'key' => $this->getKey(),
146 146
             'name' => $this->getName(),
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         // Remove options with empty values
155 155
         $cleanedOptions = array();
156 156
         foreach ($options as $name=>$value) {
157
-            if ($value!==null)
157
+            if ($value !== null)
158 158
                 $cleanedOptions[$name] = $value;
159 159
         }
160 160
         
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/CssAttribute.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
                 case 'position': $this->setPosition($value); break;
55 55
                 case 'width': $this->setWidth($value); break;
56 56
                 default:
57
-                    throw new Exception('Unknown option found in the CssAttribute entity: ' . $name);
57
+                    throw new Exception('Unknown option found in the CssAttribute entity: '.$name);
58 58
             }
59 59
         }
60 60
     }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         // Remove options with empty values
82 82
         $cleanedOptions = array();
83 83
         foreach ($options as $name=>$value) {
84
-            if ($value!==null)
84
+            if ($value !== null)
85 85
                 $cleanedOptions[$name] = $value;
86 86
         }
87 87
         
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/Experiment.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
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
     }
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
             'last_modified' => $this->getLastModified(),
201 201
             'metrics' => array(),
202 202
             'name' => $this->getName(),
203
-            'schedule' => $this->getSchedule()?$this->getSchedule()->toArray():null,
203
+            'schedule' => $this->getSchedule() ? $this->getSchedule()->toArray() : null,
204 204
             'status' => $this->getStatus(),
205 205
             'variations' => array(),
206 206
             'id' => $this->getId(),
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
         // Remove options with empty values
225 225
         $cleanedOptions = array();
226 226
         foreach ($options as $name=>$value) {
227
-            if ($value!==null)
227
+            if ($value !== null)
228 228
                 $cleanedOptions[$name] = $value;
229 229
         }
230 230
         
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/Project.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
                 case 'last_modified': $this->setLastModified($value); break;
123 123
                 case 'socket_token': $this->setSocketToken($value); break;
124 124
                 default:
125
-                    throw new Exception('Unknown option found in the Project entity: ' . $name);
125
+                    throw new Exception('Unknown option found in the Project entity: '.$name);
126 126
             }
127 127
         }
128 128
     }
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
             'platform' => $this->getPlatform(),
141 141
             'sdks' => $this->getSdks(),
142 142
             'status' => $this->getStatus(),
143
-            'web_snippet' => $this->getWebSnippet()?$this->getWebSnippet()->toArray():null,
143
+            'web_snippet' => $this->getWebSnippet() ? $this->getWebSnippet()->toArray() : null,
144 144
             'created' => $this->getCreated(),
145 145
             'id' => $this->getId(),
146 146
             'is_classic' => $this->getIsClassic(),
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
         // Remove options with empty values
152 152
         $cleanedOptions = array();
153 153
         foreach ($options as $name=>$value) {
154
-            if ($value!==null)
154
+            if ($value !== null)
155 155
                 $cleanedOptions[$name] = $value;
156 156
         }
157 157
         
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/Audience.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
                 case 'last_modified': $this->setLastModified($value); break;
94 94
                 case 'is_classic': $this->getIsClassic($value); break;
95 95
                 default:
96
-                    throw new Exception('Unknown option: ' . $name);
96
+                    throw new Exception('Unknown option: '.$name);
97 97
             }
98 98
         }
99 99
     }
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         // Remove options with empty values
120 120
         $cleanedOptions = array();
121 121
         foreach ($options as $name=>$value) {
122
-            if ($value!==null)
122
+            if ($value !== null)
123 123
                 $cleanedOptions[$name] = $value;
124 124
         }
125 125
         
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/Change.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
                 case 'name': $this->setName($value); break;                
162 162
                 case 'operator': $this->setOperator($value); break;                
163 163
                 default:
164
-                    throw new Exception('Unknown option found in the Change entity: ' . $name);
164
+                    throw new Exception('Unknown option found in the Change entity: '.$name);
165 165
             }
166 166
         }
167 167
     }
@@ -183,10 +183,10 @@  discard block
 block discarded – undo
183 183
             'value' => $this->getValue(),
184 184
             'id' => $this->getId(),            
185 185
             'selector' => $this->getSelector(),
186
-            'attributes' => $this->getAttributes()?$this->getAttributes()->toArray():null,
186
+            'attributes' => $this->getAttributes() ? $this->getAttributes()->toArray() : null,
187 187
             'rearrange' => $this->getRearrange(),
188 188
             'config' => $this->getConfig(),
189
-            'css' => $this->getCss()?$this->getCss()->toArray():null,
189
+            'css' => $this->getCss() ? $this->getCss()->toArray() : null,
190 190
             'name' => $this->getName(),
191 191
             'operator' => $this->getOperator(),
192 192
         );
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
         // Remove options with empty values
195 195
         $cleanedOptions = array();
196 196
         foreach ($options as $name=>$value) {
197
-            if ($value!==null)
197
+            if ($value !== null)
198 198
                 $cleanedOptions[$name] = $value;
199 199
         }
200 200
         
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/Attribute.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
                 case 'id': $this->setId($value); break;
80 80
                 case 'last_modified': $this->setLastModified($value); break;
81 81
                 default:
82
-                    throw new Exception('Unknown option found in the Attribute entity: ' . $name);
82
+                    throw new Exception('Unknown option found in the Attribute entity: '.$name);
83 83
             }
84 84
         }
85 85
     }
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         // Remove options with empty values
104 104
         $cleanedOptions = array();
105 105
         foreach ($options as $name=>$value) {
106
-            if ($value!==null)
106
+            if ($value !== null)
107 107
                 $cleanedOptions[$name] = $value;
108 108
         }
109 109
         
Please login to merge, or discard this patch.