From 2381c52c690342f773a7cfa500387b6bfad76952 Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Thu, 30 Apr 2020 09:38:05 +0200 Subject: Automatic code formatting Also add git hooks that checks formatting --- tests/test_tagname/code.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tests/test_tagname/code.php') diff --git a/tests/test_tagname/code.php b/tests/test_tagname/code.php index 6001358..e934989 100644 --- a/tests/test_tagname/code.php +++ b/tests/test_tagname/code.php @@ -2,7 +2,8 @@ use kch42\ste\STECore; -function test_func(STECore $ste) { +function test_func(STECore $ste) +{ $names = array( "foo", "ab_cd", @@ -13,8 +14,9 @@ function test_func(STECore $ste) { foreach ($names as $name) { $ste->register_tag( $name, - function ($ste, $params, $sub) use ($name) { return $name; } + function ($ste, $params, $sub) use ($name) { + return $name; + } ); } - } -- cgit v1.2.3-54-g00ecf