Completed
Push — master ( 0c2a73...853a48 )
by Sébastien
11s
created
www/index.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 use Symfony\Component\HttpFoundation\JsonResponse;
9 9
 use Symfony\Component\HttpFoundation\Request;
10 10
 
11
-require_once __DIR__ . '/../vendor/autoload.php';
11
+require_once __DIR__.'/../vendor/autoload.php';
12 12
 
13 13
 $app = new Silex\Application();
14 14
 
@@ -56,15 +56,15 @@  discard block
 block discarded – undo
56 56
 );
57 57
 $app->match(
58 58
     'error_random',
59
-    function (Request $request) {
60
-        $statusCode = time() % 3 <= 0 ? 200 : 502 ;
59
+    function(Request $request) {
60
+        $statusCode = time() % 3 <= 0 ? 200 : 502;
61 61
 
62 62
         return new JsonResponse([], $statusCode);
63 63
     }
64 64
 );
65 65
 $app->match(
66 66
     'always_error',
67
-    function (Request $request) {
67
+    function(Request $request) {
68 68
         return new JsonResponse([], 502);
69 69
     }
70 70
 );
Please login to merge, or discard this patch.
src/Rest/RestApiBrowser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
114 114
             new ExecutionTimeLimited(new SleepWaiter(), $maxExecutionTime)
115 115
         );
116 116
         $restApiBrowser = $this;
117
-        $runner->run(new Callback(function () use ($restApiBrowser, $method, $uri, $body, $assertion) {
117
+        $runner->run(new Callback(function() use ($restApiBrowser, $method, $uri, $body, $assertion) {
118 118
             $restApiBrowser->sendRequest($method, $uri, $body);
119 119
 
120 120
             return $assertion();
Please login to merge, or discard this patch.