Skip to content

Commit fdea372

Browse files
committed
Fixed code generation for phpcs
1 parent 70ba199 commit fdea372

File tree

139 files changed

+530
-656
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+530
-656
lines changed

src/Elasticsearch/Client.php

Lines changed: 68 additions & 103 deletions
Large diffs are not rendered by default.

src/Elasticsearch/Endpoints/Bulk.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,4 @@ public function setBody($body): Bulk
8282
}
8383
return $this;
8484
}
85-
8685
}

src/Elasticsearch/Endpoints/Cat/Aliases.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
namespace Elasticsearch\Endpoints\Cat;
55

6-
76
use Elasticsearch\Endpoints\AbstractEndpoint;
87

98
/**
@@ -19,6 +18,8 @@
1918
*/
2019
class Aliases extends AbstractEndpoint
2120
{
21+
protected $name;
22+
2223
public function getURI(): string
2324
{
2425
$name = $this->name ?? null;
@@ -45,7 +46,7 @@ public function getMethod(): string
4546
{
4647
return 'GET';
4748
}
48-
49+
4950
public function setName($name): Aliases
5051
{
5152
if (isset($name) !== true) {
@@ -58,5 +59,4 @@ public function setName($name): Aliases
5859

5960
return $this;
6061
}
61-
6262
}

src/Elasticsearch/Endpoints/Cat/Allocation.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
namespace Elasticsearch\Endpoints\Cat;
55

6-
76
use Elasticsearch\Endpoints\AbstractEndpoint;
87

98
/**
@@ -19,6 +18,8 @@
1918
*/
2019
class Allocation extends AbstractEndpoint
2120
{
21+
protected $node_id;
22+
2223
public function getURI(): string
2324
{
2425
$node_id = $this->node_id ?? null;
@@ -47,7 +48,7 @@ public function getMethod(): string
4748
{
4849
return 'GET';
4950
}
50-
51+
5152
public function setNodeId($node_id): Allocation
5253
{
5354
if (isset($node_id) !== true) {
@@ -60,5 +61,4 @@ public function setNodeId($node_id): Allocation
6061

6162
return $this;
6263
}
63-
6464
}

src/Elasticsearch/Endpoints/Cat/Count.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
namespace Elasticsearch\Endpoints\Cat;
55

6-
76
use Elasticsearch\Endpoints\AbstractEndpoint;
87

98
/**
@@ -19,6 +18,7 @@
1918
*/
2019
class Count extends AbstractEndpoint
2120
{
21+
2222
public function getURI(): string
2323
{
2424
$index = $this->index ?? null;
@@ -44,5 +44,4 @@ public function getMethod(): string
4444
{
4545
return 'GET';
4646
}
47-
4847
}

src/Elasticsearch/Endpoints/Cat/Fielddata.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
namespace Elasticsearch\Endpoints\Cat;
55

6-
76
use Elasticsearch\Endpoints\AbstractEndpoint;
87

98
/**
@@ -19,6 +18,8 @@
1918
*/
2019
class Fielddata extends AbstractEndpoint
2120
{
21+
protected $fields;
22+
2223
public function getURI(): string
2324
{
2425
$fields = $this->fields ?? null;
@@ -46,7 +47,7 @@ public function getMethod(): string
4647
{
4748
return 'GET';
4849
}
49-
50+
5051
public function setFields($fields): Fielddata
5152
{
5253
if (isset($fields) !== true) {
@@ -59,5 +60,4 @@ public function setFields($fields): Fielddata
5960

6061
return $this;
6162
}
62-
6363
}

src/Elasticsearch/Endpoints/Cat/Health.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
namespace Elasticsearch\Endpoints\Cat;
55

6-
76
use Elasticsearch\Endpoints\AbstractEndpoint;
87

98
/**
@@ -19,6 +18,7 @@
1918
*/
2019
class Health extends AbstractEndpoint
2120
{
21+
2222
public function getURI(): string
2323
{
2424

@@ -42,5 +42,4 @@ public function getMethod(): string
4242
{
4343
return 'GET';
4444
}
45-
4645
}

src/Elasticsearch/Endpoints/Cat/Help.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
namespace Elasticsearch\Endpoints\Cat;
55

6-
76
use Elasticsearch\Endpoints\AbstractEndpoint;
87

98
/**
@@ -19,6 +18,7 @@
1918
*/
2019
class Help extends AbstractEndpoint
2120
{
21+
2222
public function getURI(): string
2323
{
2424

@@ -37,5 +37,4 @@ public function getMethod(): string
3737
{
3838
return 'GET';
3939
}
40-
4140
}

src/Elasticsearch/Endpoints/Cat/Indices.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
namespace Elasticsearch\Endpoints\Cat;
55

6-
76
use Elasticsearch\Endpoints\AbstractEndpoint;
87

98
/**
@@ -19,6 +18,7 @@
1918
*/
2019
class Indices extends AbstractEndpoint
2120
{
21+
2222
public function getURI(): string
2323
{
2424
$index = $this->index ?? null;
@@ -51,5 +51,4 @@ public function getMethod(): string
5151
{
5252
return 'GET';
5353
}
54-
5554
}

src/Elasticsearch/Endpoints/Cat/Master.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
namespace Elasticsearch\Endpoints\Cat;
55

6-
76
use Elasticsearch\Endpoints\AbstractEndpoint;
87

98
/**
@@ -19,6 +18,7 @@
1918
*/
2019
class Master extends AbstractEndpoint
2120
{
21+
2222
public function getURI(): string
2323
{
2424

@@ -42,5 +42,4 @@ public function getMethod(): string
4242
{
4343
return 'GET';
4444
}
45-
4645
}

0 commit comments

Comments
 (0)