Skip to content

Commit

Permalink
Apply the coding standard
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Feb 13, 2025
1 parent 24e9ea2 commit 34df64c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion example/simple.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
'homepage.twig', // Can be found in the templates directory
[
'keyForTwig' => 'theValue', // Just an example line ;)
'say' => 'Hello world'
'say' => 'Hello world',
]
);
2 changes: 1 addition & 1 deletion scripts/tools/generate-twig-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
$twig = new TwigEnvironment(
$loader,
[
'cache' => $cache
'cache' => $cache,
]
);
$twig->addExtension(new ExtensionI18n());
Expand Down
4 changes: 2 additions & 2 deletions scripts/tools/update-po-files.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
$template = file_get_contents($poTemplate);

$mappings = new stdClass();
$mappings->mappings = array();
$mappings->replacements = array();
$mappings->mappings = [];
$mappings->replacements = [];

if (isset($options['json-mapping'])) {
$mappings = json_decode(file_get_contents($options['json-mapping']));
Expand Down
2 changes: 1 addition & 1 deletion tests/I18nTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function setUp(): void
$loader,
[
'cache' => $this->memoryCache,
'debug' => true
'debug' => true,
]
);

Expand Down

0 comments on commit 34df64c

Please sign in to comment.