Skip to content

Commit e5f5b2f

Browse files
committed
Fixed #1017 #1048
1 parent 39eb8c0 commit e5f5b2f

21 files changed

+2
-186
lines changed

src/Elasticsearch/Endpoints/AbstractEndpoint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public function setType(?string $type)
160160
*
161161
* @return $this
162162
*/
163-
public function setID($docID)
163+
public function setId($docID)
164164
{
165165
if ($docID === null) {
166166
return $this;

src/Elasticsearch/Endpoints/Create.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,4 @@ public function setBody($body): Create
7272

7373
return $this;
7474
}
75-
76-
public function setId($id): Create
77-
{
78-
if (isset($id) !== true) {
79-
return $this;
80-
}
81-
$this->id = $id;
82-
83-
return $this;
84-
}
8575
}

src/Elasticsearch/Endpoints/Delete.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,4 @@ public function getMethod(): string
6363
{
6464
return 'DELETE';
6565
}
66-
67-
public function setId($id): Delete
68-
{
69-
if (isset($id) !== true) {
70-
return $this;
71-
}
72-
$this->id = $id;
73-
74-
return $this;
75-
}
7666
}

src/Elasticsearch/Endpoints/DeleteScript.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,4 @@ public function getMethod(): string
4242
{
4343
return 'DELETE';
4444
}
45-
46-
public function setId($id): DeleteScript
47-
{
48-
if (isset($id) !== true) {
49-
return $this;
50-
}
51-
$this->id = $id;
52-
53-
return $this;
54-
}
5545
}

src/Elasticsearch/Endpoints/Exists.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,4 @@ public function getMethod(): string
6565
{
6666
return 'HEAD';
6767
}
68-
69-
public function setId($id): Exists
70-
{
71-
if (isset($id) !== true) {
72-
return $this;
73-
}
74-
$this->id = $id;
75-
76-
return $this;
77-
}
7868
}

src/Elasticsearch/Endpoints/ExistsSource.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,4 @@ public function getMethod(): string
6464
{
6565
return 'HEAD';
6666
}
67-
68-
public function setId($id): ExistsSource
69-
{
70-
if (isset($id) !== true) {
71-
return $this;
72-
}
73-
$this->id = $id;
74-
75-
return $this;
76-
}
7767
}

src/Elasticsearch/Endpoints/Explain.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,4 @@ public function setBody($body): Explain
7777

7878
return $this;
7979
}
80-
81-
public function setId($id): Explain
82-
{
83-
if (isset($id) !== true) {
84-
return $this;
85-
}
86-
$this->id = $id;
87-
88-
return $this;
89-
}
9080
}

src/Elasticsearch/Endpoints/Get.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,4 @@ public function getMethod(): string
6565
{
6666
return 'GET';
6767
}
68-
69-
public function setId($id): Get
70-
{
71-
if (isset($id) !== true) {
72-
return $this;
73-
}
74-
$this->id = $id;
75-
76-
return $this;
77-
}
7868
}

src/Elasticsearch/Endpoints/GetScript.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,4 @@ public function getMethod(): string
4141
{
4242
return 'GET';
4343
}
44-
45-
public function setId($id): GetScript
46-
{
47-
if (isset($id) !== true) {
48-
return $this;
49-
}
50-
$this->id = $id;
51-
52-
return $this;
53-
}
5444
}

src/Elasticsearch/Endpoints/GetSource.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,4 @@ public function getMethod(): string
6464
{
6565
return 'GET';
6666
}
67-
68-
public function setId($id): GetSource
69-
{
70-
if (isset($id) !== true) {
71-
return $this;
72-
}
73-
$this->id = $id;
74-
75-
return $this;
76-
}
7767
}

0 commit comments

Comments
 (0)