Completed
Push — master ( 4f84cc...331858 )
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
@@ -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
     }
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
             'key' => $this->getKey(),
199 199
             'last_modified' => $this->getLastModified(),
200 200
             'name' => $this->getName(),
201
-            'schedule' => $this->getSchedule()?$this->getSchedule()->toArray():null,
201
+            'schedule' => $this->getSchedule() ? $this->getSchedule()->toArray() : null,
202 202
             'status' => $this->getStatus(),            
203 203
             'id' => $this->getId(),
204 204
             'is_classic' => $this->getIsClassic(),
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
         // Remove options with empty values
237 237
         $cleanedOptions = array();
238 238
         foreach ($options as $name=>$value) {
239
-            if ($value!==null)
239
+            if ($value !== null)
240 240
                 $cleanedOptions[$name] = $value;
241 241
         }
242 242
         
Please login to merge, or discard this patch.