@@ 42-46 (lines=5) @@ | ||
39 | $language = config('gopay.languages')[$fallback]; |
|
40 | } |
|
41 | ||
42 | if(defined($langConst = 'GoPay\Definition\Language::'.$language)) { |
|
43 | $this->config['language'] = constant($langConst); |
|
44 | } else { |
|
45 | $this->config['language'] = GoPay\Definition\Language::ENGLISH; |
|
46 | } |
|
47 | ||
48 | if(defined($scopeConst = 'GoPay\Definition\TokenScope::'.config('gopay.defaultScope'))){ |
|
49 | $this->config['scope'] = constant($scopeConst); |
|
@@ 96-101 (lines=6) @@ | ||
93 | ||
94 | public function scope($scope) |
|
95 | { |
|
96 | if(defined($scopeConst = 'GoPay\Definition\TokenScope::'.$scope)) |
|
97 | { |
|
98 | $this->config['scope'] = constant($scopeConst); |
|
99 | } else { |
|
100 | $this->config['scope'] = $scope; |
|
101 | } |
|
102 | $this->needReInit = true; |
|
103 | return $this; |
|
104 | } |