Skip to content

Commit

Permalink
styling
Browse files Browse the repository at this point in the history
  • Loading branch information
joedixon committed Jun 23, 2019
1 parent 326379c commit 1e8d87d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Drivers/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ private function saveGroupTranslations($language, $group, $translations)
*/
private function saveNamespacedGroupTranslations($language, $group, $translations)
{
list($namespace, $group) = explode('::', $group);
[$namespace, $group] = explode('::', $group);
$directory = "{$this->languageFilesPath}".DIRECTORY_SEPARATOR.'vendor'.DIRECTORY_SEPARATOR."{$namespace}".DIRECTORY_SEPARATOR."{$language}";

if (! $this->disk->exists($directory)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Scanner.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function findTranslations()
if (preg_match_all("/$matchingPattern/siU", $file->getContents(), $matches)) {
foreach ($matches[2] as $key) {
if (preg_match("/(^[a-zA-Z0-9:_-]+([.][^\1)\ ]+)+$)/siU", $key, $arrayMatches)) {
list($file, $k) = explode('.', $arrayMatches[0], 2);
[$file, $k] = explode('.', $arrayMatches[0], 2);
$results['group'][$file][$k] = '';
continue;
} else {
Expand Down

0 comments on commit 1e8d87d

Please sign in to comment.