Completed
Push — master ( 6427ed...a99496 )
by Oleg
02:58
created
tests/OptimizelyPHPTest/Service/v2/ExperimentsTest.php 1 patch
Braces   +7 added lines, -6 removed lines patch added patch discarded remove patch
@@ -238,8 +238,9 @@  discard block
 block discarded – undo
238 238
     
239 239
     public function testIntegration()
240 240
     {
241
-        if (!getenv('OPTIMIZELY_PHP_TEST_INTEGRATION')) 
242
-            $this->markTestSkipped('OPTIMIZELY_PHP_TEST_INTEGRATION env var is not set');
241
+        if (!getenv('OPTIMIZELY_PHP_TEST_INTEGRATION')) {
242
+                    $this->markTestSkipped('OPTIMIZELY_PHP_TEST_INTEGRATION env var is not set');
243
+        }
243 244
         
244 245
         $credentials = $this->loadCredentialsFromFile();
245 246
         
@@ -301,13 +302,13 @@  discard block
 block discarded – undo
301 302
                     }
302 303
                 }
303 304
 
304
-                if ($result->getNextPage()==null)
305
-                    break;
305
+                if ($result->getNextPage()==null) {
306
+                                    break;
307
+                }
306 308
 
307 309
                 $page ++;
308 310
             }
309
-        }
310
-        catch (Exception $e) {
311
+        } catch (Exception $e) {
311 312
             // Handle error.
312 313
             $code = $e->getCode();
313 314
             $httpCode = $e->getHttpCode();
Please login to merge, or discard this patch.