From 55a7118da9a0028f12ce4c8907b4e831f9bcb491 Mon Sep 17 00:00:00 2001 From: Niklas Keller Date: Sun, 7 May 2017 22:14:45 +0200 Subject: [PATCH] Add .editorconfig and fix code style --- .editorconfig | 8 ++++++++ lib/GzipInputStream.php | 2 +- lib/Parser.php | 2 +- lib/PendingReadException.php | 3 ++- lib/ResourceInputStream.php | 2 +- lib/functions.php | 2 +- 6 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..3564b94 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,8 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +indent_style = spaces +charset = utf-8 \ No newline at end of file diff --git a/lib/GzipInputStream.php b/lib/GzipInputStream.php index 47c7b89..80de153 100644 --- a/lib/GzipInputStream.php +++ b/lib/GzipInputStream.php @@ -53,4 +53,4 @@ class GzipInputStream implements InputStream { $this->source->close(); } -} \ No newline at end of file +} diff --git a/lib/Parser.php b/lib/Parser.php index 899ed60..181fa02 100644 --- a/lib/Parser.php +++ b/lib/Parser.php @@ -143,4 +143,4 @@ class Parser implements OutputStream { public function close() { $this->generator = null; } -} \ No newline at end of file +} diff --git a/lib/PendingReadException.php b/lib/PendingReadException.php index 0b8e904..996f111 100644 --- a/lib/PendingReadException.php +++ b/lib/PendingReadException.php @@ -1,6 +1,7 @@ close(); } } -} \ No newline at end of file +} diff --git a/lib/functions.php b/lib/functions.php index d04ba30..1b8b973 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -29,4 +29,4 @@ function pipe(InputStream $source, OutputStream $destination): Promise { return $written; }); -} \ No newline at end of file +}