Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds null locale processor to remove brackets [[ ... ]] when don't use Translator #843

Merged
merged 5 commits into from
Dec 8, 2022

Conversation

butschster
Copy link
Member

Q A
Bugfix?
Breaks BC?
New feature? ✔️

@codecov
Copy link

codecov bot commented Dec 7, 2022

Codecov Report

Base: 84.71% // Head: 84.69% // Decreases project coverage by -0.02% ⚠️

Coverage data is based on head (303289f) compared to base (50eec0b).
Patch coverage: 50.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #843      +/-   ##
============================================
- Coverage     84.71%   84.69%   -0.03%     
- Complexity     5564     5567       +3     
============================================
  Files           701      703       +2     
  Lines         13631    13645      +14     
============================================
+ Hits          11547    11556       +9     
- Misses         2084     2089       +5     
Impacted Files Coverage Δ
src/Bridge/Stempler/tests/ConfigTest.php 0.00% <0.00%> (ø)
...empler/tests/Processor/NullLocaleProcessorTest.php 0.00% <0.00%> (ø)
...dge/Stempler/src/Bootloader/StemplerBootloader.php 71.42% <100.00%> (+1.42%) ⬆️
...dge/Stempler/src/Processor/NullLocaleProcessor.php 100.00% <100.00%> (ø)
src/Snapshots/src/FileSnapshot.php 92.59% <0.00%> (-3.71%) ⬇️
src/Views/src/Processor/ContextProcessor.php 100.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

*/
final class NullLocaleProcessor implements ProcessorInterface
{
private const REGEXP = '/\[\[(.*?)\]\]/s';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think locale format should be moved into Stempler. Is it possible?

@butschster butschster merged commit 005e973 into master Dec 8, 2022
@butschster butschster deleted the feature/fake-locale-processor branch December 8, 2022 07:56
@butschster butschster changed the title Adds null locale processor to remove brackets [[ ... ]] Adds null locale processor to remove brackets [[ ... ]] when don't use Translator Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants