Completed
Push — master ( 90835e...e5901e )
by Oleg
02:50
created
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/WebSnippet.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
                 case 'code_revision': $this->setCodeRevision($value); break;
99 99
                 case 'js_file_size': $this->setJsFileSize($value); break;
100 100
                 default:
101
-                    throw new Exception('Unknown option: ' . $name);
101
+                    throw new Exception('Unknown option: '.$name);
102 102
             }
103 103
         }
104 104
     }
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
         // Remove options with empty values
125 125
         $cleanedOptions = array();
126 126
         foreach ($options as $name=>$value) {
127
-            if ($value!==null)
127
+            if ($value !== null)
128 128
                 $cleanedOptions[$name] = $value;
129 129
         }
130 130
         
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
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
                 case 'last_modified': $this->setLastModified($value); break;
116 116
                 case 'socket_token': $this->setSocketToken($value); break;
117 117
                 default:
118
-                    throw new Exception('Unknown option: ' . $name);
118
+                    throw new Exception('Unknown option: '.$name);
119 119
             }
120 120
         }
121 121
     }
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
             'dcp_service_id' => $this->getDcpServiceId(),
133 133
             'platform' => $this->getPlatform(),
134 134
             'status' => $this->getStatus(),
135
-            'web_snippet' => $this->getWebSnippet()?$this->getWebSnippet()->toArray():null,
135
+            'web_snippet' => $this->getWebSnippet() ? $this->getWebSnippet()->toArray() : null,
136 136
             'created' => $this->getCreated(),
137 137
             'id' => $this->getId(),
138 138
             'is_classic' => $this->getIsClassic(),
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
         // Remove options with empty values
144 144
         $cleanedOptions = array();
145 145
         foreach ($options as $name=>$value) {
146
-            if ($value!==null)
146
+            if ($value !== null)
147 147
                 $cleanedOptions[$name] = $value;
148 148
         }
149 149
         
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/Schedule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
                 case 'stop_time': $this->setStopTime($value); break;
43 43
                 case 'time_zone': $this->setTimezone($value); break;
44 44
                 default:
45
-                    throw new Exception('Unknown option: ' . $name);
45
+                    throw new Exception('Unknown option: '.$name);
46 46
             }
47 47
         }
48 48
     }
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         // Remove options with empty values
62 62
         $cleanedOptions = array();
63 63
         foreach ($options as $name=>$value) {
64
-            if ($value!==null)
64
+            if ($value !== null)
65 65
                 $cleanedOptions[$name] = $value;
66 66
         }
67 67
         
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/ExperimentMetricResults.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
                 case 'unit': $this->setUnit($value); break;
75 75
                 case 'variation_results': $this->setVariationResults($value); break;
76 76
                 default:
77
-                    throw new Exception('Unknown option: ' . $name);
77
+                    throw new Exception('Unknown option: '.$name);
78 78
             }
79 79
         }
80 80
     }
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
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
                 case 'id': $this->setId($value); break;
162 162
                 case 'is_classic': $this->setIsClassic($value); break;                
163 163
                 default:
164
-                    throw new Exception('Unknown option: ' . $name);
164
+                    throw new Exception('Unknown option: '.$name);
165 165
             }
166 166
         }
167 167
     }
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
             'last_modified' => $this->getLastModified(),
184 184
             'metrics' => array(),
185 185
             'name' => $this->getName(),
186
-            'schedule' => $this->getSchedule()?$this->getSchedule()->toArray():null,
186
+            'schedule' => $this->getSchedule() ? $this->getSchedule()->toArray() : null,
187 187
             'status' => $this->getStatus(),
188 188
             'variations' => array(),
189 189
             'id' => $this->getId(),
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
         // Remove options with empty values
206 206
         $cleanedOptions = array();
207 207
         foreach ($options as $name=>$value) {
208
-            if ($value!==null)
208
+            if ($value !== null)
209 209
                 $cleanedOptions[$name] = $value;
210 210
         }
211 211
         
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/Datapoint.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
                 case 'value': $this->setValue($value); break;
69 69
                 case 'visitors_remaining': $this->setVisitorsRemaining($value); break;
70 70
                 default:
71
-                    throw new Exception('Unknown option: ' . $name);
71
+                    throw new Exception('Unknown option: '.$name);
72 72
             }
73 73
         }
74 74
     }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         // Remove options with empty values
91 91
         $cleanedOptions = array();
92 92
         foreach ($options as $name=>$value) {
93
-            if ($value!==null)
93
+            if ($value !== null)
94 94
                 $cleanedOptions[$name] = $value;
95 95
         }
96 96
         
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/Action.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
                 }
43 43
                 case 'page_id': $this->setPageId($value); break;
44 44
                 default:
45
-                    throw new Exception('Unknown option: ' . $name);
45
+                    throw new Exception('Unknown option: '.$name);
46 46
             }
47 47
         }
48 48
     }
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         // Remove options with empty values
65 65
         $cleanedOptions = array();
66 66
         foreach ($options as $name=>$value) {
67
-            if ($value!==null)
67
+            if ($value !== null)
68 68
                 $cleanedOptions[$name] = $value;
69 69
         }
70 70
         
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/ExperimentResults.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
                 case 'reach': $this->setReach(new ExperimentVariationReach($value)); break;
76 76
                 case 'start_time': $this->setStartTime($value); break;
77 77
                 default:
78
-                    throw new Exception('Unknown option: ' . $name);
78
+                    throw new Exception('Unknown option: '.$name);
79 79
             }
80 80
         }
81 81
     }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
             'end_time' => $this->getEndTime(),
91 91
             'experiment_id' => $this->getExperimentId(),
92 92
             'metrics' => array(),
93
-            'reach' => $this->getReach()?$this->getReach()->toArray():null,
93
+            'reach' => $this->getReach() ? $this->getReach()->toArray() : null,
94 94
             'start_time' => $this->getStartTime()
95 95
         );
96 96
         
@@ -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/Audience.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
                 case 'id': $this->setId($value); break;
85 85
                 case 'last_modified': $this->setLastModified($value); break;
86 86
                 default:
87
-                    throw new Exception('Unknown option: ' . $name);
87
+                    throw new Exception('Unknown option: '.$name);
88 88
             }
89 89
         }
90 90
     }
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
         // Remove options with empty values
110 110
         $cleanedOptions = array();
111 111
         foreach ($options as $name=>$value) {
112
-            if ($value!==null)
112
+            if ($value !== null)
113 113
                 $cleanedOptions[$name] = $value;
114 114
         }
115 115
         
Please login to merge, or discard this patch.