Completed
Push — master ( 8b1dd2...f2d606 )
by Oleg
02:17
created
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/ExperimentMetricResults.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
                 case 'scope': $this->setScope($value); break;
129 129
                 case 'winning_direction': $this->setWinningDirection($value); break;
130 130
                 default:
131
-                    throw new Exception('Unknown option found in the ExperimentMetricResults entity: ' . $name);
131
+                    throw new Exception('Unknown option found in the ExperimentMetricResults entity: '.$name);
132 132
             }
133 133
         }
134 134
     }
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
         // Remove options with empty values
161 161
         $cleanedOptions = array();
162 162
         foreach ($options as $name=>$value) {
163
-            if ($value!==null)
163
+            if ($value !== null)
164 164
                 $cleanedOptions[$name] = $value;
165 165
         }
166 166
         
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/ExperimentResults.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
                 case 'start_time': $this->setStartTime($value); break;
84 84
                 case 'stats_config': $this->setStatsConfig(new StatsConfig($value)); break;
85 85
                 default:
86
-                    throw new Exception('Unknown option found in the ExperimentResults entity: ' . $name);
86
+                    throw new Exception('Unknown option found in the ExperimentResults entity: '.$name);
87 87
             }
88 88
         }
89 89
     }
@@ -98,9 +98,9 @@  discard block
 block discarded – undo
98 98
             'end_time' => $this->getEndTime(),
99 99
             'experiment_id' => $this->getExperimentId(),
100 100
             'metrics' => array(),
101
-            'reach' => $this->getReach()?$this->getReach()->toArray():null,
101
+            'reach' => $this->getReach() ? $this->getReach()->toArray() : null,
102 102
             'start_time' => $this->getStartTime(),
103
-            'stats_config' => $this->getStatsConfig()?$this->getStatsConfig()->toArray():null,
103
+            'stats_config' => $this->getStatsConfig() ? $this->getStatsConfig()->toArray() : null,
104 104
         );
105 105
         
106 106
         foreach ($this->getMetrics() as $metric) {
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         // Remove options with empty values
111 111
         $cleanedOptions = array();
112 112
         foreach ($options as $name=>$value) {
113
-            if ($value!==null)
113
+            if ($value !== null)
114 114
                 $cleanedOptions[$name] = $value;
115 115
         }
116 116
         
Please login to merge, or discard this patch.