@@ -28,7 +28,10 @@ |
||
28 | 28 | */ |
29 | 29 | protected static function configDomainIsSet(): bool |
30 | 30 | { |
31 | - if (!$domain = Config::domain()) return false; // config was not set |
|
31 | + if (!$domain = Config::domain()) { |
|
32 | + return false; |
|
33 | + } |
|
34 | + // config was not set |
|
32 | 35 | |
33 | 36 | //the host could have a different domain, thats why we check it here |
34 | 37 | return Str::contains(self::host(), $domain); |
@@ -20,7 +20,9 @@ |
||
20 | 20 | |
21 | 21 | public function get(): ?string |
22 | 22 | { |
23 | - if (!$this->has()) return null; |
|
23 | + if (!$this->has()) { |
|
24 | + return null; |
|
25 | + } |
|
24 | 26 | |
25 | 27 | try { |
26 | 28 | //Somehow I got this error: unserialize(): Error at offset 0 of 2 bytes |