Skip to content

Commit 8708b85

Browse files
committed
wip
1 parent a703f48 commit 8708b85

File tree

2 files changed

+1
-28
lines changed

2 files changed

+1
-28
lines changed

api.php

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,27 @@
1111

1212
interface RequestFactoryInterface
1313
{
14-
1514
public function createRequest(string $method, $uri): RequestInterface;
1615
}
1716

1817
// file: vendor/psr/http-factory/src/ResponseFactoryInterface.php
1918

2019
interface ResponseFactoryInterface
2120
{
22-
2321
public function createResponse(int $code = 200, string $reasonPhrase = ''): ResponseInterface;
2422
}
2523

2624
// file: vendor/psr/http-factory/src/ServerRequestFactoryInterface.php
2725

2826
interface ServerRequestFactoryInterface
2927
{
30-
3128
public function createServerRequest(string $method, $uri, array $serverParams = []): ServerRequestInterface;
3229
}
3330

3431
// file: vendor/psr/http-factory/src/StreamFactoryInterface.php
3532

3633
interface StreamFactoryInterface
3734
{
38-
3935
public function createStream(string $content = ''): StreamInterface;
4036

4137
public function createStreamFromFile(string $filename, string $mode = 'r'): StreamInterface;
@@ -47,7 +43,6 @@ public function createStreamFromResource($resource): StreamInterface;
4743

4844
interface UploadedFileFactoryInterface
4945
{
50-
5146
public function createUploadedFile(
5247
StreamInterface $stream,
5348
int $size = null,
@@ -61,15 +56,13 @@ public function createUploadedFile(
6156

6257
interface UriFactoryInterface
6358
{
64-
6559
public function createUri(string $uri = ''): UriInterface;
6660
}
6761

6862
// file: vendor/psr/http-message/src/MessageInterface.php
6963

7064
interface MessageInterface
7165
{
72-
7366
public function getProtocolVersion();
7467

7568
public function withProtocolVersion($version);
@@ -97,7 +90,6 @@ public function withBody(StreamInterface $body);
9790

9891
interface RequestInterface extends MessageInterface
9992
{
100-
10193
public function getRequestTarget();
10294

10395
public function withRequestTarget($requestTarget);
@@ -115,7 +107,6 @@ public function withUri(UriInterface $uri, $preserveHost = false);
115107

116108
interface ResponseInterface extends MessageInterface
117109
{
118-
119110
public function getStatusCode();
120111

121112
public function withStatus($code, $reasonPhrase = '');
@@ -127,7 +118,6 @@ public function getReasonPhrase();
127118

128119
interface ServerRequestInterface extends RequestInterface
129120
{
130-
131121
public function getServerParams();
132122

133123
public function getCookieParams();
@@ -159,7 +149,6 @@ public function withoutAttribute($name);
159149

160150
interface StreamInterface
161151
{
162-
163152
public function __toString();
164153

165154
public function close();
@@ -195,7 +184,6 @@ public function getMetadata($key = null);
195184

196185
interface UploadedFileInterface
197186
{
198-
199187
public function getStream();
200188

201189
public function moveTo($targetPath);
@@ -213,7 +201,6 @@ public function getClientMediaType();
213201

214202
interface UriInterface
215203
{
216-
217204
public function getScheme();
218205

219206
public function getAuthority();
@@ -251,15 +238,13 @@ public function __toString();
251238

252239
interface RequestHandlerInterface
253240
{
254-
255241
public function handle(ServerRequestInterface $request): ResponseInterface;
256242
}
257243

258244
// file: vendor/psr/http-server-middleware/src/MiddlewareInterface.php
259245

260246
interface MiddlewareInterface
261247
{
262-
263248
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface;
264249
}
265250

@@ -325,7 +310,6 @@ public function createServerRequest(string $method, $uri, array $serverParams =
325310

326311
trait MessageTrait
327312
{
328-
329313
private $headers = [];
330314

331315
private $headerNames = [];
@@ -518,7 +502,6 @@ public function __construct(string $method, $uri, array $headers = [], $body = n
518502

519503
trait RequestTrait
520504
{
521-
522505
private $method;
523506

524507
private $requestTarget;
@@ -819,7 +802,6 @@ public function withoutAttribute($attribute): self
819802

820803
final class Stream implements StreamInterface
821804
{
822-
823805
private $stream;
824806

825807
private $seekable;
@@ -1046,7 +1028,6 @@ public function getMetadata($key = null)
10461028

10471029
final class UploadedFile implements UploadedFileInterface
10481030
{
1049-
10501031
private const ERRORS = [
10511032
\UPLOAD_ERR_OK => 1,
10521033
\UPLOAD_ERR_INI_SIZE => 1,
@@ -1675,7 +1656,6 @@ private function createUriFromArray(array $server): UriInterface
16751656

16761657
interface ServerRequestCreatorInterface
16771658
{
1678-
16791659
public function fromGlobals(): ServerRequestInterface;
16801660

16811661
public function fromArrays(
@@ -6098,7 +6078,6 @@ public function jsonSerialize()
60986078

60996079
class ListDocument implements \JsonSerializable
61006080
{
6101-
61026081
private $records;
61036082

61046083
private $results;
@@ -6139,7 +6118,6 @@ public function jsonSerialize()
61396118

61406119
class ColumnIncluder
61416120
{
6142-
61436121
private function isMandatory(string $tableName, string $columnName, array $params): bool
61446122
{
61456123
return isset($params['mandatory']) && in_array($tableName . "." . $columnName, $params['mandatory']);
@@ -6203,7 +6181,6 @@ public function getValues(ReflectedTable $table, bool $primaryTable, /* object *
62036181

62046182
class ErrorCode
62056183
{
6206-
62076184
private $code;
62086185
private $message;
62096186
private $status;
@@ -6285,7 +6262,6 @@ public function getStatus(): int
62856262

62866263
class FilterInfo
62876264
{
6288-
62896265
private function addConditionFromFilterPath(PathTree $conditions, array $path, ReflectedTable $table, array $params)
62906266
{
62916267
$key = 'filter' . implode('', $path);
@@ -6349,7 +6325,6 @@ public function __construct(array $pkValues, array $fkValues)
63496325

63506326
class OrderingInfo
63516327
{
6352-
63536328
public function getColumnOrdering(ReflectedTable $table, array $params): array
63546329
{
63556330
$fields = array();
@@ -6394,7 +6369,6 @@ public function getDefaultColumnOrdering(ReflectedTable $table): array
63946369

63956370
class PaginationInfo
63966371
{
6397-
63986372
public $DEFAULT_PAGE_SIZE = 20;
63996373

64006374
public function hasPage(array $params): bool
@@ -6661,7 +6635,6 @@ public function _list(string $tableName, array $params): ListDocument
66616635

66626636
class RelationJoiner
66636637
{
6664-
66656638
private $reflection;
66666639
private $columns;
66676640

build.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function run(string $base, array $dirs, string $filename, array $ignore, array $
8989
$count += runDir($base, $dir, $lines, $ignore, $priority);
9090
}
9191
$data = implode("\n", $lines);
92-
$data = preg_replace('/\n\s*\n\s*\n/', "\n\n", $data);
92+
$data = preg_replace('/\n({)?\s*\n\s*\n/', "\n$1\n", $data);
9393
file_put_contents('tmp_' . $filename, $data);
9494
ob_start();
9595
include 'tmp_' . $filename;

0 commit comments

Comments
 (0)