Completed
Push — master ( 99411a...99411a )
by Hugo
30s queued 10s
created
src/DependencyInjection/WannaSpeakExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         $configuration = new Configuration();
23 23
         $config        = $this->processConfiguration($configuration, $configs);
24 24
 
25
-        $loader = new Loader\PhpFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
25
+        $loader = new Loader\PhpFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
26 26
         $loader->load('services.php');
27 27
 
28 28
         $container->setParameter('wanna_speak.api.account_id', $config['api']['credentials']['account_id']);
Please login to merge, or discard this patch.
src/Resources/config/services.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 
5 5
 use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
6 6
 
7
-return static function (ContainerConfigurator $containerConfigurator): void {
7
+return static function(ContainerConfigurator $containerConfigurator): void {
8 8
     $services = $containerConfigurator->services();
9 9
 
10 10
     $services->defaults()
@@ -12,12 +12,12 @@  discard block
 block discarded – undo
12 12
         ->autowire()
13 13
         ->autoconfigure();
14 14
 
15
-    $services->load('Yproximite\WannaSpeakBundle\\', __DIR__.'/../..')
15
+    $services->load('Yproximite\WannaSpeakBundle\\', __DIR__ . '/../..')
16 16
         ->exclude([
17
-            __DIR__.'/../../DependencyInjection',
18
-            __DIR__.'/../../Exception',
19
-            __DIR__.'/../../Resources',
20
-            __DIR__.'/../../WannaSpeakBundle.php',
17
+            __DIR__ . '/../../DependencyInjection',
18
+            __DIR__ . '/../../Exception',
19
+            __DIR__ . '/../../Resources',
20
+            __DIR__ . '/../../WannaSpeakBundle.php',
21 21
         ]);
22 22
 
23 23
     $services->get(\Yproximite\WannaSpeakBundle\HttpClient::class)
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
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         ]);
74 74
 
75 75
         // Prevent FormDataPart to throw when encountering a non-string value
76
-        $fields = array_reduce(array_keys($fields), function (array $acc, string $fieldKey) use ($fields) {
76
+        $fields = array_reduce(array_keys($fields), function(array $acc, string $fieldKey) use ($fields) {
77 77
             $fieldValue = $fields[$fieldKey];
78 78
 
79 79
             if (true === $fieldValue) {
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     {
104 104
         $timeStamp = time();
105 105
 
106
-        return $timeStamp.'-'.md5($this->accountId.$timeStamp.$this->secretKey);
106
+        return $timeStamp . '-' . md5($this->accountId . $timeStamp . $this->secretKey);
107 107
     }
108 108
 
109 109
     /**
Please login to merge, or discard this patch.
tests/Api/SoundsTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
             ))
94 94
         );
95 95
 
96
-        $sounds->upload(__DIR__.'/../fixtures/callee.mp3', 'the name');
96
+        $sounds->upload(__DIR__ . '/../fixtures/callee.mp3', 'the name');
97 97
     }
98 98
 
99 99
     public function testUploadFileAsSplFileInfo(): void
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
             ))
113 113
         );
114 114
 
115
-        $splFileInfo = new \SplFileInfo(__DIR__.'/../fixtures/callee.mp3');
115
+        $splFileInfo = new \SplFileInfo(__DIR__ . '/../fixtures/callee.mp3');
116 116
 
117 117
         $sounds->upload($splFileInfo, 'the name');
118 118
     }
Please login to merge, or discard this patch.
spec/Yproximite/WannaSpeakBundle/Api/SoundsSpec.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
             ->request(
48 48
                 SoundsInterface::API,
49 49
                 'upload',
50
-                Argument::that(function ($args) {
50
+                Argument::that(function($args) {
51 51
                     return $args['sound'] instanceof DataPart
52 52
                         && 'the name' === $args['name'];
53 53
                 })
@@ -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
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
             ->request(
67 67
                 SoundsInterface::API,
68 68
                 'upload',
69
-                Argument::that(function ($args) {
69
+                Argument::that(function($args) {
70 70
                     return $args['sound'] instanceof DataPart
71 71
                         && 'the name' === $args['name'];
72 72
                 })
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
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 1 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
             $body = '';
281 281
             while ('' !== $part = $options['body']()) {
282 282
                 $body .= $part;
Please login to merge, or discard this patch.