Completed
Push — master ( 90835e...e5901e )
by Oleg
02:50
created
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/CampaignResults.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
                 }
68 68
                 case 'start_time': $this->setStartTime($value); break;
69 69
                 default:
70
-                    throw new Exception('Unknown option: ' . $name);
70
+                    throw new Exception('Unknown option: '.$name);
71 71
             }
72 72
         }
73 73
     }
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         // Remove options with empty values
93 93
         $cleanedOptions = array();
94 94
         foreach ($options as $name=>$value) {
95
-            if ($value!==null)
95
+            if ($value !== null)
96 96
                 $cleanedOptions[$name] = $value;
97 97
         }
98 98
         
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/EventFilter.php 1 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: ' . $name);
38
+                    throw new Exception('Unknown option: '.$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/Variation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
                 case 'variation_id': $this->setVariationId($value); break;
72 72
                 case 'weight': $this->setWeight($value); break;
73 73
                 default:
74
-                    throw new Exception('Unknown option: ' . $name);
74
+                    throw new Exception('Unknown option: '.$name);
75 75
             }
76 76
         }
77 77
     }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         // Remove options with empty values
98 98
         $cleanedOptions = array();
99 99
         foreach ($options as $name=>$value) {
100
-            if ($value!==null)
100
+            if ($value !== null)
101 101
                 $cleanedOptions[$name] = $value;
102 102
         }
103 103
         
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/ExperimentVariationReach.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
                     break;                
72 72
                 }
73 73
                 default:
74
-                    throw new Exception('Unknown option: ' . $name);
74
+                    throw new Exception('Unknown option: '.$name);
75 75
             }
76 76
         }
77 77
     }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         // Remove options with empty values
98 98
         $cleanedOptions = array();
99 99
         foreach ($options as $name=>$value) {
100
-            if ($value!==null)
100
+            if ($value !== null)
101 101
                 $cleanedOptions[$name] = $value;
102 102
         }
103 103
         
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/Campaign.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
                 case 'type': $this->setType($value); break;
135 135
                 case 'id': $this->setId($value); break;
136 136
                 default:
137
-                    throw new Exception('Unknown option: ' . $name);
137
+                    throw new Exception('Unknown option: '.$name);
138 138
             }
139 139
         }
140 140
     }
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
         // Remove options with empty values
173 173
         $cleanedOptions = array();
174 174
         foreach ($options as $name=>$value) {
175
-            if ($value!==null)
175
+            if ($value !== null)
176 176
                 $cleanedOptions[$name] = $value;
177 177
         }
178 178
         
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/Page.php 1 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: ' . $name);
123
+                    throw new Exception('Unknown option: '.$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/VariationReach.php 1 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: ' . $name);
52
+                    throw new Exception('Unknown option: '.$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/Event.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                 case 'is_classic': $this->setIsClassic($value); break;
125 125
                 case 'is_editable': $this->setIsEditable($value); break;
126 126
                 default:
127
-                    throw new Exception('Unknown option: ' . $name);
127
+                    throw new Exception('Unknown option: '.$name);
128 128
             }
129 129
         }
130 130
     }
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
             'category' => $this->getCategory(),
141 141
             'created' => $this->getCreated(),
142 142
             'description' => $this->getDescription(),
143
-            'event_filter' => $this->getEventFilter()?$this->getEventFilter()->toArray():null,
143
+            'event_filter' => $this->getEventFilter() ? $this->getEventFilter()->toArray() : null,
144 144
             'event_type' => $this->getEventType(),
145 145
             'key' => $this->getKey(),
146 146
             'name' => $this->getName(),
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         // Remove options with empty values
155 155
         $cleanedOptions = array();
156 156
         foreach ($options as $name=>$value) {
157
-            if ($value!==null)
157
+            if ($value !== null)
158 158
                 $cleanedOptions[$name] = $value;
159 159
         }
160 160
         
Please login to merge, or discard this patch.