Completed
Push — master ( f2d606...ed3e7f )
by Oleg
02:59
created
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/VariationReach.php 2 patches
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,8 +91,9 @@
 block discarded – undo
91 91
         // Remove options with empty values
92 92
         $cleanedOptions = array();
93 93
         foreach ($options as $name=>$value) {
94
-            if ($value!==null)
95
-                $cleanedOptions[$name] = $value;
94
+            if ($value!==null) {
95
+                            $cleanedOptions[$name] = $value;
96
+            }
96 97
         }
97 98
         
98 99
         return $cleanedOptions;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
                 case 'variation_id': $this->setVariationId($value); break;
50 50
                 case 'variation_reach': $this->setVariationReach($value); break;
51 51
                 default:
52
-                    throw new Exception('Unknown option found in VariationReach entity: ' . $name);
52
+                    throw new Exception('Unknown option found in VariationReach entity: '.$name);
53 53
             }
54 54
         }
55 55
     }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         // Remove options with empty values
70 70
         $cleanedOptions = array();
71 71
         foreach ($options as $name=>$value) {
72
-            if ($value!==null)
72
+            if ($value !== null)
73 73
                 $cleanedOptions[$name] = $value;
74 74
         }
75 75
         
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/EventFilter.php 2 patches
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,8 +91,9 @@
 block discarded – undo
91 91
         // Remove options with empty values
92 92
         $cleanedOptions = array();
93 93
         foreach ($options as $name=>$value) {
94
-            if ($value!==null)
95
-                $cleanedOptions[$name] = $value;
94
+            if ($value!==null) {
95
+                            $cleanedOptions[$name] = $value;
96
+            }
96 97
         }
97 98
         
98 99
         return $cleanedOptions;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
                 case 'filter_type': $this->setFilterType($value); break;
36 36
                 case 'selector': $this->setSelector($value); break;
37 37
                 default:
38
-                    throw new Exception('Unknown option found in the EventFilter entity: ' . $name);
38
+                    throw new Exception('Unknown option found in the EventFilter entity: '.$name);
39 39
             }
40 40
         }
41 41
     }
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         // Remove options with empty values
54 54
         $cleanedOptions = array();
55 55
         foreach ($options as $name=>$value) {
56
-            if ($value!==null)
56
+            if ($value !== null)
57 57
                 $cleanedOptions[$name] = $value;
58 58
         }
59 59
         
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/Audience.php 2 patches
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,8 +91,9 @@
 block discarded – undo
91 91
         // Remove options with empty values
92 92
         $cleanedOptions = array();
93 93
         foreach ($options as $name=>$value) {
94
-            if ($value!==null)
95
-                $cleanedOptions[$name] = $value;
94
+            if ($value!==null) {
95
+                            $cleanedOptions[$name] = $value;
96
+            }
96 97
         }
97 98
         
98 99
         return $cleanedOptions;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
                 case 'last_modified': $this->setLastModified($value); break;
94 94
                 case 'is_classic': $this->getIsClassic($value); break;
95 95
                 default:
96
-                    throw new Exception('Unknown option found in the Audience entity: ' . $name);
96
+                    throw new Exception('Unknown option found in the Audience entity: '.$name);
97 97
             }
98 98
         }
99 99
     }
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         // Remove options with empty values
120 120
         $cleanedOptions = array();
121 121
         foreach ($options as $name=>$value) {
122
-            if ($value!==null)
122
+            if ($value !== null)
123 123
                 $cleanedOptions[$name] = $value;
124 124
         }
125 125
         
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/Project.php 2 patches
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,8 +91,9 @@
 block discarded – undo
91 91
         // Remove options with empty values
92 92
         $cleanedOptions = array();
93 93
         foreach ($options as $name=>$value) {
94
-            if ($value!==null)
95
-                $cleanedOptions[$name] = $value;
94
+            if ($value!==null) {
95
+                            $cleanedOptions[$name] = $value;
96
+            }
96 97
         }
97 98
         
98 99
         return $cleanedOptions;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
                 case 'socket_token': $this->setSocketToken($value); break;
130 130
                 case 'description': $this->setDescription($value); break;
131 131
                 default:
132
-                    throw new Exception('Unknown option found in the Project entity: ' . $name);
132
+                    throw new Exception('Unknown option found in the Project entity: '.$name);
133 133
             }
134 134
         }
135 135
     }
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
             'platform' => $this->getPlatform(),
148 148
             'sdks' => $this->getSdks(),
149 149
             'status' => $this->getStatus(),
150
-            'web_snippet' => $this->getWebSnippet()?$this->getWebSnippet()->toArray():null,
150
+            'web_snippet' => $this->getWebSnippet() ? $this->getWebSnippet()->toArray() : null,
151 151
             'created' => $this->getCreated(),
152 152
             'id' => $this->getId(),
153 153
             'is_classic' => $this->getIsClassic(),
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
         // Remove options with empty values
160 160
         $cleanedOptions = array();
161 161
         foreach ($options as $name=>$value) {
162
-            if ($value!==null)
162
+            if ($value !== null)
163 163
                 $cleanedOptions[$name] = $value;
164 164
         }
165 165
         
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/ExperimentResults.php 2 patches
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,8 +91,9 @@
 block discarded – undo
91 91
         // Remove options with empty values
92 92
         $cleanedOptions = array();
93 93
         foreach ($options as $name=>$value) {
94
-            if ($value!==null)
95
-                $cleanedOptions[$name] = $value;
94
+            if ($value!==null) {
95
+                            $cleanedOptions[$name] = $value;
96
+            }
96 97
         }
97 98
         
98 99
         return $cleanedOptions;
Please login to merge, or discard this 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.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/Campaign.php 2 patches
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,8 +91,9 @@
 block discarded – undo
91 91
         // Remove options with empty values
92 92
         $cleanedOptions = array();
93 93
         foreach ($options as $name=>$value) {
94
-            if ($value!==null)
95
-                $cleanedOptions[$name] = $value;
94
+            if ($value!==null) {
95
+                            $cleanedOptions[$name] = $value;
96
+            }
96 97
         }
97 98
         
98 99
         return $cleanedOptions;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
                 case 'id': $this->setId($value); break;
142 142
                 case 'experiment_priorities': $this->setExperimentPriorities($value); break;
143 143
                 default:
144
-                    throw new Exception('Unknown option found in the Campaign entity: ' . $name);
144
+                    throw new Exception('Unknown option found in the Campaign entity: '.$name);
145 145
             }
146 146
         }
147 147
     }
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
         // Remove options with empty values
181 181
         $cleanedOptions = array();
182 182
         foreach ($options as $name=>$value) {
183
-            if ($value!==null)
183
+            if ($value !== null)
184 184
                 $cleanedOptions[$name] = $value;
185 185
         }
186 186
         
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/Experiment.php 3 patches
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,8 +91,9 @@
 block discarded – undo
91 91
         // Remove options with empty values
92 92
         $cleanedOptions = array();
93 93
         foreach ($options as $name=>$value) {
94
-            if ($value!==null)
95
-                $cleanedOptions[$name] = $value;
94
+            if ($value!==null) {
95
+                            $cleanedOptions[$name] = $value;
96
+            }
96 97
         }
97 98
         
98 99
         return $cleanedOptions;
Please login to merge, or discard this 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.
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -401,6 +401,9 @@  discard block
 block discarded – undo
401 401
         return $this->schedule;
402 402
     }
403 403
     
404
+    /**
405
+     * @param Schedule $schedule
406
+     */
404 407
     public function setSchedule($schedule)
405 408
     {
406 409
         $this->schedule = $schedule;
@@ -521,6 +524,9 @@  discard block
 block discarded – undo
521 524
         return $this->urlTargeting;
522 525
     }
523 526
     
527
+    /**
528
+     * @param UrlTargeting $urlTargeting
529
+     */
524 530
     public function setUrlTargeting($urlTargeting)
525 531
     {
526 532
         $this->urlTargeting = $urlTargeting;
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/Page.php 2 patches
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,8 +91,9 @@
 block discarded – undo
91 91
         // Remove options with empty values
92 92
         $cleanedOptions = array();
93 93
         foreach ($options as $name=>$value) {
94
-            if ($value!==null)
95
-                $cleanedOptions[$name] = $value;
94
+            if ($value!==null) {
95
+                            $cleanedOptions[$name] = $value;
96
+            }
96 97
         }
97 98
         
98 99
         return $cleanedOptions;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
                 case 'id': $this->setId($value); break;
121 121
                 case 'last_modified': $this->setLastModified($value); break;
122 122
                 default:
123
-                    throw new Exception('Unknown option found in the Page entity: ' . $name);
123
+                    throw new Exception('Unknown option found in the Page entity: '.$name);
124 124
             }
125 125
         }
126 126
     }
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
         // Remove options with empty values
151 151
         $cleanedOptions = array();
152 152
         foreach ($options as $name=>$value) {
153
-            if ($value!==null)
153
+            if ($value !== null)
154 154
                 $cleanedOptions[$name] = $value;
155 155
         }
156 156
         
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/WebSnippet.php 2 patches
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,8 +91,9 @@
 block discarded – undo
91 91
         // Remove options with empty values
92 92
         $cleanedOptions = array();
93 93
         foreach ($options as $name=>$value) {
94
-            if ($value!==null)
95
-                $cleanedOptions[$name] = $value;
94
+            if ($value!==null) {
95
+                            $cleanedOptions[$name] = $value;
96
+            }
96 97
         }
97 98
         
98 99
         return $cleanedOptions;
Please login to merge, or discard this 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 found in WebSnippet entity: ' . $name);
101
+                    throw new Exception('Unknown option found in WebSnippet entity: '.$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.