Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
HichemTab-tech committed Aug 4, 2023
1 parent fe93a1f commit 6c7b612
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hichemtab-tech/langify-laravel",
"version": "1.0.8",
"version": "1.0.9",
"description": "LangifyLaravel is a powerful Laravel language generation library that automates the process of creating language files for multilingual support. With just one language file, it generates translations for multiple languages, making localization a breeze.",
"keywords": [
"multilingual",
Expand Down
3 changes: 1 addition & 2 deletions src/Console/Commands/GenerateLangs.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ public function handle(): void

function var_export_with_square_brackets($expression): array|string|null
{
$expression = preg_replace('/^array\s\(/', '[', $expression);
return preg_replace('/\)$/', ']', $expression);
return str_replace(["array (\n", "\n)"], ["[\n", "\n];"], $expression);
}
}
4 changes: 1 addition & 3 deletions src/Console/Commands/stubs/langPlaceholder.stub
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
<?php
return [
{{CONTENT}}
];
return {{CONTENT}};

0 comments on commit 6c7b612

Please sign in to comment.