Completed
Push — master ( 761b5c...f27f71 )
by Oleg
03:34
created
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/Experiment.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
                 case 'page_ids': $this->setPageIds($value); break;
206 206
                 case 'latest': $this->setLatest($value); break;
207 207
                 default:
208
-                    throw new Exception('Unknown option found in the Experiment entity: ' . $name);
208
+                    throw new Exception('Unknown option found in the Experiment entity: '.$name);
209 209
             }
210 210
         }
211 211
     }
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
             'key' => $this->getKey(),
226 226
             'last_modified' => $this->getLastModified(),
227 227
             'name' => $this->getName(),
228
-            'schedule' => $this->getSchedule()?$this->getSchedule()->toArray():null,
228
+            'schedule' => $this->getSchedule() ? $this->getSchedule()->toArray() : null,
229 229
             'status' => $this->getStatus(),            
230 230
             'id' => $this->getId(),
231 231
             'is_classic' => $this->getIsClassic(),
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
         // Remove options with empty values
268 268
         $cleanedOptions = array();
269 269
         foreach ($options as $name=>$value) {
270
-            if ($value!==null)
270
+            if ($value !== null)
271 271
                 $cleanedOptions[$name] = $value;
272 272
         }
273 273
         
Please login to merge, or discard this patch.