Completed
Push — master ( 99411a...724418 )
by Hugo
12s queued 11s
created
spec/Yproximite/WannaSpeakBundle/Api/SoundsSpec.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
                 SoundsInterface::API,
49 49
                 'upload',
50 50
                 ['name' => 'the name'],
51
-                Argument::that(function ($args) {
51
+                Argument::that(function($args) {
52 52
                     return $args['sound'] instanceof DataPart;
53 53
                 })
54 54
             )
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             ->willReturn($response);
57 57
 
58 58
         $this
59
-            ->upload(__DIR__.'/../../../../tests/fixtures/callee.mp3', 'the name')
59
+            ->upload(__DIR__ . '/../../../../tests/fixtures/callee.mp3', 'the name')
60 60
             ->shouldBe(['error' => null, 'data' => [/* ... */]]);
61 61
     }
62 62
 
@@ -67,14 +67,14 @@  discard block
 block discarded – undo
67 67
                 SoundsInterface::API,
68 68
                 'upload',
69 69
                 ['name' => 'the name'],
70
-                Argument::that(function ($args) {
70
+                Argument::that(function($args) {
71 71
                     return $args['sound'] instanceof DataPart;
72 72
                 })
73 73
             )
74 74
             ->shouldBeCalled()
75 75
             ->willReturn($response);
76 76
 
77
-        $file = new \SplFileInfo(__DIR__.'/../../../../tests/fixtures/callee.mp3');
77
+        $file = new \SplFileInfo(__DIR__ . '/../../../../tests/fixtures/callee.mp3');
78 78
 
79 79
         $this
80 80
             ->upload($file, 'the name')
Please login to merge, or discard this patch.
tests/HttpClientTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -313,7 +313,7 @@
 block discarded – undo
313 313
                 'query_tag1' => 12345,
314 314
                 'query_foo1' => true,
315 315
                 'query_foo2' => false,
316
-              ],
316
+                ],
317 317
             [
318 318
                 'body_name' => 'The name',
319 319
                 'body_tag1' => 12345,
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -276,7 +276,7 @@
 block discarded – undo
276 276
     {
277 277
         $fieldsAllFound = false;
278 278
 
279
-        $client = $this->createHttpClient(static function (string $method, string $url, array $options) use (&$fieldsAllFound): MockResponse {
279
+        $client = $this->createHttpClient(static function(string $method, string $url, array $options) use (&$fieldsAllFound): MockResponse {
280 280
             static::assertSame('9999999999', $options['query']['id']);
281 281
             static::assertRegExp('#^\d{10}-[a-z0-9]{32}$#', $options['query']['key']);
282 282
             static::assertSame('the api', $options['query']['api']);
Please login to merge, or discard this patch.
src/HttpClient.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     {
95 95
         $timeStamp = time();
96 96
 
97
-        return $timeStamp.'-'.md5($this->accountId.$timeStamp.$this->secretKey);
97
+        return $timeStamp . '-' . md5($this->accountId . $timeStamp . $this->secretKey);
98 98
     }
99 99
 
100 100
     /**
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      */
105 105
     private function sanitizeParameters(array $parameters): array
106 106
     {
107
-        return array_reduce(array_keys($parameters), static function (array $acc, string $fieldKey) use ($parameters) {
107
+        return array_reduce(array_keys($parameters), static function(array $acc, string $fieldKey) use ($parameters) {
108 108
             $fieldValue = $parameters[$fieldKey];
109 109
 
110 110
             if (true === $fieldValue) {
Please login to merge, or discard this patch.