@@ 93-100 (lines=8) @@ | ||
90 | ||
91 | $scopes = $this->scopes; |
|
92 | $scope = $this->option('scope'); |
|
93 | if (! empty($scope)) { |
|
94 | $scopes = explode(',', $scope); |
|
95 | foreach ($scopes as $scope) { |
|
96 | if (! in_array($scope, $this->scopes)) { |
|
97 | throw new InvalidArgumentException('Scope "' . $scope . '" is not found! Available scopes is ' . implode(', ', $this->scopes)); |
|
98 | } |
|
99 | } |
|
100 | } |
|
101 | ||
102 | $path = $this->option('path', 'storage/multilang'); |
|
103 | $this->path = base_path($path); |
@@ 92-99 (lines=8) @@ | ||
89 | ||
90 | $scopes = $this->scopes; |
|
91 | $scope = $this->option('scope'); |
|
92 | if (! empty($scope)) { |
|
93 | $scopes = explode(',', $scope); |
|
94 | foreach ($scopes as $scope) { |
|
95 | if (! in_array($scope, $this->scopes)) { |
|
96 | throw new InvalidArgumentException('Scope "' . $scope . '" is not found! Available scopes is ' . implode(', ', $this->scopes)); |
|
97 | } |
|
98 | } |
|
99 | } |
|
100 | ||
101 | $path = $this->option('path', 'storage/multilang'); |
|
102 | $this->path = base_path($path); |