Skip to content

Commit c7258a8

Browse files
committed
style: prettier vars and consts alignment
1 parent a70bbe2 commit c7258a8

4 files changed

Lines changed: 38 additions & 39 deletions

File tree

src/Spec/v3/Document.php

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -10,42 +10,42 @@
1010
class Document extends AbstractObject
1111
{
1212

13-
const SCHEME_HTTP = 'http';
14-
const SCHEME_HTTPS = 'https';
15-
const SCHEME_WEBSOCKET = 'ws';
16-
const SCHEME_SECURE_WEBSOCKET = 'wss';
17-
const MIME_TYPE_JSON = 'application/json';
18-
const MIME_TYPE_URLENCODED = 'application/x-www-form-urlencoded';
19-
const MIME_TYPE_MULTIPART = 'multipart/form-data';
20-
const PARAM_IN_PATH = 'path';
21-
const PARAM_IN_QUERY = 'query';
22-
const PARAM_IN_HEADER = 'header';
23-
const PARAM_IN_COOKIE = 'cookie';
24-
const PARAM_STYLE_MATRIX = 'matrix';
25-
const PARAM_STYLE_LABEL = 'label';
26-
const PARAM_STYLE_FORM = 'form';
27-
const PARAM_STYLE_SIMPLE = 'simple';
13+
const SCHEME_HTTP = 'http';
14+
const SCHEME_HTTPS = 'https';
15+
const SCHEME_WEBSOCKET = 'ws';
16+
const SCHEME_SECURE_WEBSOCKET = 'wss';
17+
const MIME_TYPE_JSON = 'application/json';
18+
const MIME_TYPE_URLENCODED = 'application/x-www-form-urlencoded';
19+
const MIME_TYPE_MULTIPART = 'multipart/form-data';
20+
const PARAM_IN_PATH = 'path';
21+
const PARAM_IN_QUERY = 'query';
22+
const PARAM_IN_HEADER = 'header';
23+
const PARAM_IN_COOKIE = 'cookie';
24+
const PARAM_STYLE_MATRIX = 'matrix';
25+
const PARAM_STYLE_LABEL = 'label';
26+
const PARAM_STYLE_FORM = 'form';
27+
const PARAM_STYLE_SIMPLE = 'simple';
2828
const PARAM_STYLE_SPACE_DELIMITED = 'spaceDelimited';
29-
const PARAM_STYLE_PIPE_DELIMITED = 'pipeDelimited';
30-
const PARAM_STYLE_DEEP_OBJECT = 'deepObject';
31-
const TYPE_STRING = 'string';
32-
const TYPE_INTEGER = 'integer';
33-
const TYPE_FLOAT = 'number';
34-
const TYPE_DOUBLE = 'number';
35-
const TYPE_NUMBER = 'number';
36-
const TYPE_BOOLEAN = 'boolean';
37-
const TYPE_ARRAY = 'array';
38-
const TYPE_OBJECT = 'object';
39-
const TYPE_NULL = 'null';
40-
const TYPE_FORMAT_STRING_INT32 = 'int32';
41-
const TYPE_FORMAT_STRING_INT64 = 'int64';
42-
const TYPE_FORMAT_STRING_BYTE = 'byte';
43-
const TYPE_FORMAT_STRING_BINARY = 'binary';
44-
const TYPE_FORMAT_STRING_DATE = 'date';
29+
const PARAM_STYLE_PIPE_DELIMITED = 'pipeDelimited';
30+
const PARAM_STYLE_DEEP_OBJECT = 'deepObject';
31+
const TYPE_STRING = 'string';
32+
const TYPE_INTEGER = 'integer';
33+
const TYPE_FLOAT = 'number';
34+
const TYPE_DOUBLE = 'number';
35+
const TYPE_NUMBER = 'number';
36+
const TYPE_BOOLEAN = 'boolean';
37+
const TYPE_ARRAY = 'array';
38+
const TYPE_OBJECT = 'object';
39+
const TYPE_NULL = 'null';
40+
const TYPE_FORMAT_STRING_INT32 = 'int32';
41+
const TYPE_FORMAT_STRING_INT64 = 'int64';
42+
const TYPE_FORMAT_STRING_BYTE = 'byte';
43+
const TYPE_FORMAT_STRING_BINARY = 'binary';
44+
const TYPE_FORMAT_STRING_DATE = 'date';
4545
const TYPE_FORMAT_STRING_DATETIME = 'date-time';
4646
const TYPE_FORMAT_STRING_PASSWORD = 'password';
47-
const TYPE_FORMAT_NUMBER_FLOAT = 'float';
48-
const TYPE_FORMAT_NUMBER_DOUBLE = 'double';
47+
const TYPE_FORMAT_NUMBER_FLOAT = 'float';
48+
const TYPE_FORMAT_NUMBER_DOUBLE = 'double';
4949

5050
/**
5151
* REQUIRED. This string MUST be the semantic version number of the OpenAPI Specification version that the

src/Spec/v3/Info.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ public function __construct(
6767
string $description = null,
6868
string $licenseName = 'Proprietary License'
6969
) {
70-
$this->title = $title;
71-
$this->version = $version;
70+
$this->title = $title;
71+
$this->version = $version;
7272
$this->description = $description;
73-
$this->license = new License(
73+
$this->license = new License(
7474
[
7575
'name' => $licenseName,
7676
]

src/Spec/v3/Parameter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
class Parameter extends AbstractParameter
3434
{
3535

36-
const IN_PATH = 'path';
37-
const IN_QUERY = 'query';
36+
const IN_PATH = 'path';
37+
const IN_QUERY = 'query';
3838
const IN_HEADER = 'header';
3939
const IN_COOKIE = 'cookie';
4040

src/Spec/v3/Server.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
*/
1010
class Server extends AbstractObject
1111
{
12-
1312
/**
1413
* REQUIRED. A URL to the target host.
1514
* This URL supports Server Variables and MAY be relative,

0 commit comments

Comments
 (0)