| @@ 67-76 (lines=10) @@ | ||
| 64 | } |
|
| 65 | } |
|
| 66 | ||
| 67 | if (str_is('*.*.*', $namespace)) { |
|
| 68 | list($vendor, $type, $slug) = explode('.', $namespace); |
|
| 69 | ||
| 70 | $file = base_path("resources/addons/{$vendor}/{$slug}-{$type}/lang/{$locale}/{$group}.php"); |
|
| 71 | ||
| 72 | if ($this->files->exists($file)) { |
|
| 73 | $lines = array_replace_recursive($lines, $this->files->getRequire($file)); |
|
| 74 | } |
|
| 75 | } |
|
| 76 | ||
| 77 | return $lines; |
|
| 78 | } |
|
| 79 | ||
| @@ 99-110 (lines=12) @@ | ||
| 96 | } |
|
| 97 | } |
|
| 98 | ||
| 99 | if (str_is('*.*.*', $namespace)) { |
|
| 100 | list($vendor, $type, $slug) = explode('.', $namespace); |
|
| 101 | ||
| 102 | $file = $this->application->getResourcesPath( |
|
| 103 | "addons/{$vendor}/{$slug}-{$type}/lang/{$locale}/{$group}.php" |
|
| 104 | ); |
|
| 105 | ||
| 106 | if ($this->files->exists($file)) { |
|
| 107 | $lines = array_replace_recursive($lines, $this->files->getRequire($file)); |
|
| 108 | } |
|
| 109 | } |
|
| 110 | ||
| 111 | return $lines; |
|
| 112 | } |
|
| 113 | } |
|