Completed
Branch develop (dc0792)
by James
04:21 queued 01:18
created
lib/WebMarketingROI/OptimizelyPHP/OptimizelyApiClient.php 1 patch
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -289,14 +289,17 @@
 block discarded – undo
289 289
      */
290 290
     private function getAccessTokenByRefreshToken()
291 291
     {
292
-        if (!isset($this->authCredentials['client_id']))
293
-            throw new \Exception('OAuth 2.0 client ID is not set');
292
+        if (!isset($this->authCredentials['client_id'])) {
293
+                    throw new \Exception('OAuth 2.0 client ID is not set');
294
+        }
294 295
         
295
-        if (!isset($this->authCredentials['client_secret']))
296
-            throw new \Exception('OAuth 2.0 client secret is not set');
296
+        if (!isset($this->authCredentials['client_secret'])) {
297
+                    throw new \Exception('OAuth 2.0 client secret is not set');
298
+        }
297 299
         
298
-        if (!isset($this->authCredentials['refresh_token']))
299
-            throw new \Exception('Refresh token is not set');
300
+        if (!isset($this->authCredentials['refresh_token'])) {
301
+                    throw new \Exception('Refresh token is not set');
302
+        }
300 303
         
301 304
         $clientId = $this->authCredentials['client_id'];
302 305
         $clientSecret = $this->authCredentials['client_secret'];
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/CampaignResults.php 1 patch
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.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/VariantResults.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,8 +112,9 @@
 block discarded – undo
112 112
         // Remove options with empty values
113 113
         $cleanedOptions = array();
114 114
         foreach ($options as $name=>$value) {
115
-            if ($value!==null)
116
-                $cleanedOptions[$name] = $value;
115
+            if ($value!==null) {
116
+                            $cleanedOptions[$name] = $value;
117
+            }
117 118
         }
118 119
         
119 120
         return $cleanedOptions;
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/Event.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -153,8 +153,9 @@
 block discarded – undo
153 153
         // Remove options with empty values
154 154
         $cleanedOptions = array();
155 155
         foreach ($options as $name=>$value) {
156
-            if ($value!==null)
157
-                $cleanedOptions[$name] = $value;
156
+            if ($value!==null) {
157
+                            $cleanedOptions[$name] = $value;
158
+            }
158 159
         }
159 160
         
160 161
         return $cleanedOptions;
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/Datapoint.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,8 +88,9 @@
 block discarded – undo
88 88
         // Remove options with empty values
89 89
         $cleanedOptions = array();
90 90
         foreach ($options as $name=>$value) {
91
-            if ($value!==null)
92
-                $cleanedOptions[$name] = $value;
91
+            if ($value!==null) {
92
+                            $cleanedOptions[$name] = $value;
93
+            }
93 94
         }
94 95
         
95 96
         return $cleanedOptions;
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/Project.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -142,8 +142,9 @@
 block discarded – undo
142 142
         // Remove options with empty values
143 143
         $cleanedOptions = array();
144 144
         foreach ($options as $name=>$value) {
145
-            if ($value!==null)
146
-                $cleanedOptions[$name] = $value;
145
+            if ($value!==null) {
146
+                            $cleanedOptions[$name] = $value;
147
+            }
147 148
         }
148 149
         
149 150
         return $cleanedOptions;
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/Schedule.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,8 +59,9 @@
 block discarded – undo
59 59
         // Remove options with empty values
60 60
         $cleanedOptions = array();
61 61
         foreach ($options as $name=>$value) {
62
-            if ($value!==null)
63
-                $cleanedOptions[$name] = $value;
62
+            if ($value!==null) {
63
+                            $cleanedOptions[$name] = $value;
64
+            }
64 65
         }
65 66
         
66 67
         return $cleanedOptions;
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/WebSnippet.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -122,8 +122,9 @@
 block discarded – undo
122 122
         // Remove options with empty values
123 123
         $cleanedOptions = array();
124 124
         foreach ($options as $name=>$value) {
125
-            if ($value!==null)
126
-                $cleanedOptions[$name] = $value;
125
+            if ($value!==null) {
126
+                            $cleanedOptions[$name] = $value;
127
+            }
127 128
         }
128 129
         
129 130
         return $cleanedOptions;
Please login to merge, or discard this patch.
lib/WebMarketingROI/OptimizelyPHP/Resource/v2/Change.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,8 +128,9 @@
 block discarded – undo
128 128
         // Remove options with empty values
129 129
         $cleanedOptions = array();
130 130
         foreach ($options as $name=>$value) {
131
-            if ($value!==null)
132
-                $cleanedOptions[$name] = $value;
131
+            if ($value!==null) {
132
+                            $cleanedOptions[$name] = $value;
133
+            }
133 134
         }
134 135
         
135 136
         return $cleanedOptions;
Please login to merge, or discard this patch.