Test Failed
Pull Request — master (#123)
by MusikAnimal
03:37
created
src/AppBundle/Helper/ApiHelper.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 use Mediawiki\Api\SimpleRequest;
10 10
 use Mediawiki\Api\FluentRequest;
11 11
 use Psr\Cache\CacheItemPoolInterface;
12
-use Symfony\Component\Config\Definition\Exception\Exception;
13 12
 use Symfony\Component\DependencyInjection\ContainerInterface;
14 13
 use Xtools\ProjectRepository;
15 14
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             $normalized = [];
77 77
             if (isset($result['query']['normalized'])) {
78 78
                 array_map(
79
-                    function ($e) use (&$normalized) {
79
+                    function($e) use (&$normalized) {
80 80
                         $normalized[$e['to']] = $e['from'];
81 81
                     },
82 82
                     $result['query']['normalized']
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
         $query = FluentRequest::factory()->setAction('query')->setParams($requestData);
162 162
         $innerPromise = $this->api->getRequestAsync($query);
163 163
 
164
-        $innerPromise->then(function ($result) use (&$data) {
164
+        $innerPromise->then(function($result) use (&$data) {
165 165
             // some failures come back as 200s, so we still resolve and let the outer function handle it
166 166
             if (isset($result['error']) || !isset($result['query'])) {
167 167
                 return $data['promise']->resolve($data);
Please login to merge, or discard this patch.