Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Commit 6c7b612

Browse files
some fixes
1 parent fe93a1f commit 6c7b612

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hichemtab-tech/langify-laravel",
3-
"version": "1.0.8",
3+
"version": "1.0.9",
44
"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.",
55
"keywords": [
66
"multilingual",

src/Console/Commands/GenerateLangs.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ public function handle(): void
113113

114114
function var_export_with_square_brackets($expression): array|string|null
115115
{
116-
$expression = preg_replace('/^array\s\(/', '[', $expression);
117-
return preg_replace('/\)$/', ']', $expression);
116+
return str_replace(["array (\n", "\n)"], ["[\n", "\n];"], $expression);
118117
}
119118
}
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
<?php
2-
return [
3-
{{CONTENT}}
4-
];
2+
return {{CONTENT}};

0 commit comments

Comments
 (0)