mirror of
https://github.com/danog/byte-stream.git
synced 2024-11-26 20:04:51 +01:00
Add .editorconfig and fix code style
This commit is contained in:
parent
6241988750
commit
55a7118da9
8
.editorconfig
Normal file
8
.editorconfig
Normal file
@ -0,0 +1,8 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
indent_style = spaces
|
||||
charset = utf-8
|
@ -53,4 +53,4 @@ class GzipInputStream implements InputStream {
|
||||
|
||||
$this->source->close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -143,4 +143,4 @@ class Parser implements OutputStream {
|
||||
public function close() {
|
||||
$this->generator = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace Amp\ByteStream;
|
||||
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
@ -14,4 +15,4 @@ class PendingReadException extends StreamException {
|
||||
) {
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -136,4 +136,4 @@ class ResourceInputStream implements InputStream {
|
||||
$this->close();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -29,4 +29,4 @@ function pipe(InputStream $source, OutputStream $destination): Promise {
|
||||
|
||||
return $written;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user