Skip to content

Commit 804e05e

Browse files
committed
cs-fix ran to lint code.
1 parent 7756a30 commit 804e05e

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/TwigFunctionsScanner.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
namespace Gettext\Scanner;
1414

1515
use Twig\Environment;
16-
use Twig\Source;
1716
use Twig\Node\Expression\FunctionExpression;
1817
use Twig\Node\ModuleNode;
18+
use Twig\Source;
1919

2020
class TwigFunctionsScanner implements FunctionsScannerInterface
2121
{
@@ -32,7 +32,7 @@ private function createFunction(FunctionExpression $node, string $filename): ?Pa
3232
{
3333
$name = $node->getAttribute('name');
3434

35-
if (! in_array($name, $this->functions, true)) {
35+
if (!in_array($name, $this->functions, true)) {
3636
return null;
3737
}
3838

@@ -67,11 +67,10 @@ private function extractGettextFunctions($token, string $filename, array &$funct
6767
foreach ($token->getIterator() as $subToken) {
6868
$this->extractGettextFunctions($subToken, $filename, $functions);
6969
}
70-
71-
if($token instanceof ModuleNode){
70+
71+
if ($token instanceof ModuleNode) {
7272
$embeddedTemplates = $token->getAttribute('embedded_templates');
73-
foreach($embeddedTemplates as $embed)
74-
{
73+
foreach ($embeddedTemplates as $embed) {
7574
$this->extractGettextFunctions($embed, $filename, $functions);
7675
}
7776
}

tests/TimberFunctionsScannerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function testTwigFunctionsExtractor()
7474

7575
// text 3
7676
$function = array_shift($functions);
77-
$this->cmp($function, $file, 7, '__', [ 'text 3 (with parenthesis)']);
77+
$this->cmp($function, $file, 7, '__', ['text 3 (with parenthesis)']);
7878

7979
// text 4
8080
$function = array_shift($functions);

0 commit comments

Comments
 (0)