Passed
Push — master ( aab3fb...321227 )
by Rafal
01:33
created
test/Unit/Domain/Model/ConfigTest.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
     {
27 27
         $this->config = new Config();
28 28
         foreach ($this->env as $envName => $envValue) {
29
-            $this->env[$envName] = $_ENV[$envName];
30
-            $_ENV[$envName] = null;
29
+            $this->env[ $envName ] = $_ENV[ $envName ];
30
+            $_ENV[ $envName ] = null;
31 31
         }
32 32
         parent::setUp();
33 33
     }
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     protected function tearDown(): void
36 36
     {
37 37
         foreach ($this->env as $envName => $envValue) {
38
-            $_ENV[$envName] = $envValue;
38
+            $_ENV[ $envName ] = $envValue;
39 39
         }
40 40
         parent::tearDown();
41 41
     }
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
     public function testGetClientSecret()
44 44
     {
45 45
         $envValue = 'UnitSecret';
46
-        $_ENV['CLIENT_SECRET'] = $envValue;
47
-        $this->assertSame($envValue,$this->config->getClientSecret());
46
+        $_ENV[ 'CLIENT_SECRET' ] = $envValue;
47
+        $this->assertSame($envValue, $this->config->getClientSecret());
48 48
     }
49 49
 
50 50
     public function testGetClientSecretException()
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
     public function testGetClientId()
57 57
     {
58 58
         $envValue = 'UnitId';
59
-        $_ENV['CLIENT_ID'] = $envValue;
60
-        $this->assertSame($envValue,$this->config->getClientId());
59
+        $_ENV[ 'CLIENT_ID' ] = $envValue;
60
+        $this->assertSame($envValue, $this->config->getClientId());
61 61
     }
62 62
 
63 63
     public function testGetClientIdException()
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
     public function testGetRedirectUri()
70 70
     {
71 71
         $envValue = 'UnitRedirectUri';
72
-        $_ENV['REDIRECT_URI'] = $envValue;
73
-        $this->assertSame($envValue,$this->config->getRedirectUri());
72
+        $_ENV[ 'REDIRECT_URI' ] = $envValue;
73
+        $this->assertSame($envValue, $this->config->getRedirectUri());
74 74
     }
75 75
 
76 76
     public function testGetRedirectUriException()
@@ -82,8 +82,8 @@  discard block
 block discarded – undo
82 82
     public function testGetSpotifyUsername()
83 83
     {
84 84
         $envValue = 'UnitSpotifyUserName';
85
-        $_ENV['SPOTIFY_USERNAME'] = $envValue;
86
-        $this->assertSame($envValue,$this->config->getSpotifyUsername());
85
+        $_ENV[ 'SPOTIFY_USERNAME' ] = $envValue;
86
+        $this->assertSame($envValue, $this->config->getSpotifyUsername());
87 87
     }
88 88
 
89 89
     public function testGetSpotifyUsernameException()
Please login to merge, or discard this patch.