Skip to content

Commit 178b493

Browse files
committed
style: remove line breaks
1 parent e2d85f6 commit 178b493

File tree

1 file changed

+15
-21
lines changed

1 file changed

+15
-21
lines changed

tests/CI4Twig/TwigTest.php

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -85,41 +85,35 @@ public function testAddFunctionsRunsOnlyOnce()
8585

8686
public function testFunctionAsIs()
8787
{
88-
$obj = new Twig(
89-
[
90-
'paths' => __DIR__ . '/../templates/',
91-
'functions' => ['md5'],
92-
'cache' => false,
93-
]
94-
);
88+
$obj = new Twig([
89+
'paths' => __DIR__ . '/../templates/',
90+
'functions' => ['md5'],
91+
'cache' => false,
92+
]);
9593

9694
$output = $obj->render('functions_asis');
9795
$this->assertSame("900150983cd24fb0d6963f7d28e17f72\n", $output);
9896
}
9997

10098
public function testFunctionSafe()
10199
{
102-
$obj = new Twig(
103-
[
104-
'paths' => __DIR__ . '/../templates/',
105-
'functions_safe' => ['test_safe'],
106-
'cache' => false,
107-
]
108-
);
100+
$obj = new Twig([
101+
'paths' => __DIR__ . '/../templates/',
102+
'functions_safe' => ['test_safe'],
103+
'cache' => false,
104+
]);
109105

110106
$output = $obj->render('functions_safe');
111107
$this->assertSame("<s>test</s>\n", $output);
112108
}
113109

114110
public function testFilter()
115111
{
116-
$obj = new Twig(
117-
[
118-
'paths' => __DIR__ . '/../templates/',
119-
'filters' => ['str_rot13'],
120-
'cache' => false,
121-
]
122-
);
112+
$obj = new Twig([
113+
'paths' => __DIR__ . '/../templates/',
114+
'filters' => ['str_rot13'],
115+
'cache' => false,
116+
]);
123117

124118
$output = $obj->render('filters');
125119
$this->assertSame("PbqrVtavgre Fvzcyr naq Frpher Gjvt\n", $output);

0 commit comments

Comments
 (0)