Completed
Push — master ( 68d1eb...a242c7 )
by Oleg
02:30
created
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/Experiment.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
                 case 'latest': $this->setLatest($value); break;
217 217
                 case 'url_targeting': $this->setUrlTargeting(new UrlTargeting($value)); break;
218 218
                 default:
219
-                    throw new Exception('Unknown option found in the Experiment entity: ' . $name);
219
+                    throw new Exception('Unknown option found in the Experiment entity: '.$name);
220 220
             }
221 221
         }
222 222
     }
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
             'key' => $this->getKey(),
237 237
             'last_modified' => $this->getLastModified(),
238 238
             'name' => $this->getName(),
239
-            'schedule' => $this->getSchedule()?$this->getSchedule()->toArray():null,
239
+            'schedule' => $this->getSchedule() ? $this->getSchedule()->toArray() : null,
240 240
             'status' => $this->getStatus(),            
241 241
             'id' => $this->getId(),
242 242
             'is_classic' => $this->getIsClassic(),
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
         // Remove options with empty values
280 280
         $cleanedOptions = array();
281 281
         foreach ($options as $name=>$value) {
282
-            if ($value!==null)
282
+            if ($value !== null)
283 283
                 $cleanedOptions[$name] = $value;
284 284
         }
285 285
         
Please login to merge, or discard this patch.