Skip to content

Commit

Permalink
Modify the php - render blank line serializing
Browse files Browse the repository at this point in the history
  • Loading branch information
simonprev committed Aug 13, 2024
1 parent 9527998 commit 216f3ff
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/langue/formatter/laravel_php/serializer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ defmodule Langue.Formatter.LaravelPhp.Serializer do
render =
"""
<?php
return #{render};
"""

Expand Down
1 change: 1 addition & 0 deletions lib/langue/formatter/simple_php/serializer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ defmodule Langue.Formatter.SimplePhp.Serializer do
render =
"""
<?php
return #{render};
"""

Expand Down
1 change: 1 addition & 0 deletions test/langue/laravel_php/expectation_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ defmodule LangueTest.Formatter.LaravelPhp.Expectation do
def render do
"""
<?php
return [
'required'=>'Le champ :attribute est obligatoire.',
'required_if'=>'Le champ :attribute est obligatoire quand la valeur de :other est :value.',
Expand Down
1 change: 1 addition & 0 deletions test/langue/simple_php/expectation_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ defmodule LangueTest.Formatter.SimplePhp.Expectation do
def render do
"""
<?php
return [
'a'=>'Test',
'b.c'=>'Not nested'
Expand Down

0 comments on commit 216f3ff

Please sign in to comment.