diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2020-04-30 09:38:05 +0200 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2020-04-30 09:38:25 +0200 |
commit | 2381c52c690342f773a7cfa500387b6bfad76952 (patch) | |
tree | 340296ea529e40b81012c936703429a86481788e /steloader.php | |
parent | 2d26169b367af60cbc03d417c09918f50aa3b882 (diff) | |
download | ste-2381c52c690342f773a7cfa500387b6bfad76952.tar.gz ste-2381c52c690342f773a7cfa500387b6bfad76952.tar.bz2 ste-2381c52c690342f773a7cfa500387b6bfad76952.zip |
Automatic code formatting
Also add git hooks that checks formatting
Diffstat (limited to 'steloader.php')
-rw-r--r-- | steloader.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/steloader.php b/steloader.php index 8c4c36f..5e490be 100644 --- a/steloader.php +++ b/steloader.php @@ -6,9 +6,10 @@ * Use a full-fledged PSR-3 autoloader (e.g. the composer loader) for production! */ -function autoload_ste($cl) { +function autoload_ste($cl) +{ $path = explode("\\", $cl); - if(($path[0] == "kch42") && ($path[1] == "ste")) { + if (($path[0] == "kch42") && ($path[1] == "ste")) { require_once(__DIR__ . "/src/ste/" . $path[2] . ".php"); } } |