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 --- ste.php | 62 ++++++++++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 46 insertions(+), 16 deletions(-) (limited to 'ste.php') diff --git a/ste.php b/ste.php index 35e2084..72d6eca 100644 --- a/ste.php +++ b/ste.php @@ -38,22 +38,52 @@ require_once(__DIR__ . "/src/ste/STECore.php"); /* Providing "proxy classes", so old applications can continue using the ste namespace */ -class ASTNode extends \kch42\ste\ASTNode {} -class TagNode extends \kch42\ste\TagNode {} -class TextNode extends \kch42\ste\TextNode {} -class VariableNode extends \kch42\ste\VariableNode {} -class ParseCompileError extends \kch42\ste\ParseCompileError {} -class RuntimeError extends \kch42\ste\RuntimeError {} -class FatalRuntimeError extends \kch42\ste\FatalRuntimeError {} -class StorageAccessFailure extends \kch42\ste\StorageAccessFailure {} -class CantLoadTemplate extends \kch42\ste\CantLoadTemplate {} -class CantSaveTemplate extends \kch42\ste\CantSaveTemplate {} -class FilesystemStorageAccess extends \kch42\ste\FilesystemStorageAccess {} -class Parser extends \kch42\ste\Parser {} -class Transcompiler extends \kch42\ste\Transcompiler {} -class STECore extends \kch42\ste\STECore {} - -interface StorageAccess extends \kch42\ste\StorageAccess {} +class ASTNode extends \kch42\ste\ASTNode +{ +} +class TagNode extends \kch42\ste\TagNode +{ +} +class TextNode extends \kch42\ste\TextNode +{ +} +class VariableNode extends \kch42\ste\VariableNode +{ +} +class ParseCompileError extends \kch42\ste\ParseCompileError +{ +} +class RuntimeError extends \kch42\ste\RuntimeError +{ +} +class FatalRuntimeError extends \kch42\ste\FatalRuntimeError +{ +} +class StorageAccessFailure extends \kch42\ste\StorageAccessFailure +{ +} +class CantLoadTemplate extends \kch42\ste\CantLoadTemplate +{ +} +class CantSaveTemplate extends \kch42\ste\CantSaveTemplate +{ +} +class FilesystemStorageAccess extends \kch42\ste\FilesystemStorageAccess +{ +} +class Parser extends \kch42\ste\Parser +{ +} +class Transcompiler extends \kch42\ste\Transcompiler +{ +} +class STECore extends \kch42\ste\STECore +{ +} + +interface StorageAccess extends \kch42\ste\StorageAccess +{ +} /* We also put the storage mode constants here (they were outside of the interface before for some reason I can't remember...) */ -- cgit v1.2.3-70-g09d2