Passed
Push — master ( f5c913...8caac8 )
by Rafal
01:41
created
src/Domain/Model/Config.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
      */
13 13
     public function getClientId(): string
14 14
     {
15
-        $clientId = (string)$this->get('CLIENT_ID');
15
+        $clientId = (string) $this->get('CLIENT_ID');
16 16
         if (empty($clientId)) {
17 17
             throw new RuntimeException(
18 18
                 sprintf(Message::ERROR_GET_ENV_VARIABLE, 'CLIENT_ID')
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function getClientSecret(): string
29 29
     {
30
-        $clientSecret = (string)$this->get('CLIENT_SECRET');
30
+        $clientSecret = (string) $this->get('CLIENT_SECRET');
31 31
         if (empty($clientSecret)) {
32 32
             throw new RuntimeException(
33 33
                 sprintf(Message::ERROR_GET_ENV_VARIABLE, 'CLIENT_SECRET')
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      */
43 43
     public function getRedirectUri(): string
44 44
     {
45
-        $redirectUri = (string)$this->get('REDIRECT_URI');
45
+        $redirectUri = (string) $this->get('REDIRECT_URI');
46 46
         if (empty($redirectUri)) {
47 47
             throw new RuntimeException(
48 48
                 sprintf(Message::ERROR_GET_ENV_VARIABLE, 'REDIRECT_URI')
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function getSpotifyUsername(): string
59 59
     {
60
-        $spotifyUsername = (string)$this->get('SPOTIFY_USERNAME');
60
+        $spotifyUsername = (string) $this->get('SPOTIFY_USERNAME');
61 61
         if (empty($spotifyUsername)) {
62 62
             throw new RuntimeException(
63 63
                 sprintf(Message::ERROR_GET_ENV_VARIABLE, 'SPOTIFY_USERNAME')
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
      */
74 74
     private function get(string $name)
75 75
     {
76
-        if (isset($_ENV[$name])) {
77
-            return $_ENV[$name];
76
+        if (isset($_ENV[ $name ])) {
77
+            return $_ENV[ $name ];
78 78
         }
79 79
 
80 80
         return getenv($name);
Please login to merge, or discard this patch.