Skip to content

Commit 0e9c88e

Browse files
carestadandywer
authored andcommitted
Fix bug from andywer#49 where $content could be undefined (andywer#50)
1 parent 0e49474 commit 0e9c88e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Console/ExportCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,15 @@ protected function generateMessageFiles(string $path, string $messages)
118118

119119
if (key_exists($locale, $messages)) {
120120
$content = 'Lang.addMessages(' . json_encode([$locale => $messages[$locale]], JSON_PRETTY_PRINT) . ');';
121-
}
122121

123-
File::put($fileName, $content);
124-
$this->line("Generated $fileName");
122+
File::put($fileName, $content);
123+
$this->line("Generated $fileName");
124+
}
125125
}
126126
}
127127

128128
/**
129-
* Generage the config file.
129+
* Generate the config file.
130130
*
131131
* @param string $path
132132
*/

0 commit comments

Comments
 (0)