Skip to content

Commit 456f5df

Browse files
author
Dik Takken
committed
Improve parameter names in ext/xmlwriter
1 parent aecb05f commit 456f5df

File tree

2 files changed

+85
-92
lines changed

2 files changed

+85
-92
lines changed

ext/xmlwriter/php_xmlwriter.stub.php

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -6,85 +6,85 @@ function xmlwriter_open_uri(string $uri): XMLWriter|false {}
66

77
function xmlwriter_open_memory(): XMLWriter|false {}
88

9-
function xmlwriter_set_indent(XMLWriter $xmlwriter, bool $indent): bool {}
9+
function xmlwriter_set_indent(XMLWriter $writer, bool $enable): bool {}
1010

11-
function xmlwriter_set_indent_string(XMLWriter $xmlwriter, string $indentString): bool {}
11+
function xmlwriter_set_indent_string(XMLWriter $writer, string $indentation): bool {}
1212

13-
function xmlwriter_start_comment(XMLWriter $xmlwriter): bool {}
13+
function xmlwriter_start_comment(XMLWriter $writer): bool {}
1414

15-
function xmlwriter_end_comment(XMLWriter $xmlwriter): bool {}
15+
function xmlwriter_end_comment(XMLWriter $writer): bool {}
1616

17-
function xmlwriter_start_attribute(XMLWriter $xmlwriter, string $name): bool {}
17+
function xmlwriter_start_attribute(XMLWriter $writer, string $name): bool {}
1818

19-
function xmlwriter_end_attribute(XMLWriter $xmlwriter): bool {}
19+
function xmlwriter_end_attribute(XMLWriter $writer): bool {}
2020

21-
function xmlwriter_write_attribute(XMLWriter $xmlwriter, string $name, string $value): bool {}
21+
function xmlwriter_write_attribute(XMLWriter $writer, string $name, string $content): bool {}
2222

23-
function xmlwriter_start_attribute_ns(XMLWriter $xmlwriter, ?string $prefix, string $name, ?string $uri): bool {}
23+
function xmlwriter_start_attribute_ns(XMLWriter $writer, ?string $prefix, string $name, ?string $uri): bool {}
2424

25-
function xmlwriter_write_attribute_ns(XMLWriter $xmlwriter, ?string $prefix, string $name, ?string $uri, string $content): bool {}
25+
function xmlwriter_write_attribute_ns(XMLWriter $writer, ?string $prefix, string $name, ?string $uri, string $content): bool {}
2626

27-
function xmlwriter_start_element(XMLWriter $xmlwriter, string $name): bool {}
27+
function xmlwriter_start_element(XMLWriter $writer, string $name): bool {}
2828

29-
function xmlwriter_end_element(XMLWriter $xmlwriter): bool {}
29+
function xmlwriter_end_element(XMLWriter $writer): bool {}
3030

31-
function xmlwriter_full_end_element(XMLWriter $xmlwriter): bool {}
31+
function xmlwriter_full_end_element(XMLWriter $writer): bool {}
3232

33-
function xmlwriter_start_element_ns(XMLWriter $xmlwriter, ?string $prefix, string $name, ?string $uri): bool {}
33+
function xmlwriter_start_element_ns(XMLWriter $writer, ?string $prefix, string $name, ?string $uri): bool {}
3434

35-
function xmlwriter_write_element(XMLWriter $xmlwriter, string $name, ?string $content = null): bool {}
35+
function xmlwriter_write_element(XMLWriter $writer, string $name, ?string $content = null): bool {}
3636

37-
function xmlwriter_write_element_ns(XMLWriter $xmlwriter, ?string $prefix, string $name, ?string $uri, ?string $content = null): bool {}
37+
function xmlwriter_write_element_ns(XMLWriter $writer, ?string $prefix, string $name, ?string $uri, ?string $content = null): bool {}
3838

39-
function xmlwriter_start_pi(XMLWriter $xmlwriter, string $target): bool {}
39+
function xmlwriter_start_pi(XMLWriter $writer, string $target): bool {}
4040

41-
function xmlwriter_end_pi(XMLWriter $xmlwriter): bool {}
41+
function xmlwriter_end_pi(XMLWriter $writer): bool {}
4242

43-
function xmlwriter_write_pi(XMLWriter $xmlwriter, string $target, string $content): bool {}
43+
function xmlwriter_write_pi(XMLWriter $writer, string $target, string $content): bool {}
4444

45-
function xmlwriter_start_cdata(XMLWriter $xmlwriter): bool {}
45+
function xmlwriter_start_cdata(XMLWriter $writer): bool {}
4646

47-
function xmlwriter_end_cdata(XMLWriter $xmlwriter): bool {}
47+
function xmlwriter_end_cdata(XMLWriter $writer): bool {}
4848

49-
function xmlwriter_write_cdata(XMLWriter $xmlwriter, string $content): bool {}
49+
function xmlwriter_write_cdata(XMLWriter $writer, string $content): bool {}
5050

51-
function xmlwriter_text(XMLWriter $xmlwriter, string $content): bool {}
51+
function xmlwriter_text(XMLWriter $writer, string $content): bool {}
5252

53-
function xmlwriter_write_raw(XMLWriter $xmlwriter, string $content): bool {}
53+
function xmlwriter_write_raw(XMLWriter $writer, string $content): bool {}
5454

55-
function xmlwriter_start_document(XMLWriter $xmlwriter, ?string $version = "1.0", ?string $encoding = null, ?string $standalone = null): bool {}
55+
function xmlwriter_start_document(XMLWriter $writer, ?string $version = "1.0", ?string $encoding = null, ?string $standalone = null): bool {}
5656

57-
function xmlwriter_end_document(XMLWriter $xmlwriter): bool {}
57+
function xmlwriter_end_document(XMLWriter $writer): bool {}
5858

59-
function xmlwriter_write_comment(XMLWriter $xmlwriter, string $content): bool {}
59+
function xmlwriter_write_comment(XMLWriter $writer, string $content): bool {}
6060

61-
function xmlwriter_start_dtd(XMLWriter $xmlwriter, string $qualifiedName, ?string $publicId = null, ?string $systemId = null): bool {}
61+
function xmlwriter_start_dtd(XMLWriter $writer, string $qualifiedName, ?string $publicId = null, ?string $systemId = null): bool {}
6262

63-
function xmlwriter_end_dtd(XMLWriter $xmlwriter): bool {}
63+
function xmlwriter_end_dtd(XMLWriter $writer): bool {}
6464

65-
function xmlwriter_write_dtd(XMLWriter $xmlwriter, string $name, ?string $publicId = null, ?string $systemId = null, ?string $subset = null): bool {}
65+
function xmlwriter_write_dtd(XMLWriter $writer, string $name, ?string $publicId = null, ?string $systemId = null, ?string $content = null): bool {}
6666

67-
function xmlwriter_start_dtd_element(XMLWriter $xmlwriter, string $qualifiedName): bool {}
67+
function xmlwriter_start_dtd_element(XMLWriter $writer, string $qualifiedName): bool {}
6868

69-
function xmlwriter_end_dtd_element(XMLWriter $xmlwriter): bool {}
69+
function xmlwriter_end_dtd_element(XMLWriter $writer): bool {}
7070

71-
function xmlwriter_write_dtd_element(XMLWriter $xmlwriter, string $name, string $content): bool {}
71+
function xmlwriter_write_dtd_element(XMLWriter $writer, string $name, string $content): bool {}
7272

73-
function xmlwriter_start_dtd_attlist(XMLWriter $xmlwriter, string $name): bool {}
73+
function xmlwriter_start_dtd_attlist(XMLWriter $writer, string $name): bool {}
7474

75-
function xmlwriter_end_dtd_attlist(XMLWriter $xmlwriter): bool {}
75+
function xmlwriter_end_dtd_attlist(XMLWriter $writer): bool {}
7676

77-
function xmlwriter_write_dtd_attlist(XMLWriter $xmlwriter, string $name, string $content): bool {}
77+
function xmlwriter_write_dtd_attlist(XMLWriter $writer, string $name, string $content): bool {}
7878

79-
function xmlwriter_start_dtd_entity(XMLWriter $xmlwriter, string $name, bool $isparam): bool {}
79+
function xmlwriter_start_dtd_entity(XMLWriter $writer, string $name, bool $isParam): bool {}
8080

81-
function xmlwriter_end_dtd_entity(XMLWriter $xmlwriter): bool {}
81+
function xmlwriter_end_dtd_entity(XMLWriter $writer): bool {}
8282

83-
function xmlwriter_write_dtd_entity(XMLWriter $xmlwriter, string $name, string $content, bool $isparam = false, ?string $publicId = null, ?string $systemId = null, ?string $ndataid = null): bool {}
83+
function xmlwriter_write_dtd_entity(XMLWriter $writer, string $name, string $content, bool $isParam = false, ?string $publicId = null, ?string $systemId = null, ?string $notationData = null): bool {}
8484

85-
function xmlwriter_output_memory(XMLWriter $xmlwriter, bool $flush = true): string {}
85+
function xmlwriter_output_memory(XMLWriter $writer, bool $flush = true): string {}
8686

87-
function xmlwriter_flush(XMLWriter $xmlwriter, bool $empty = true): string|int {}
87+
function xmlwriter_flush(XMLWriter $writer, bool $empty = true): string|int {}
8888

8989
class XMLWriter
9090
{
@@ -95,10 +95,10 @@ public function openUri(string $uri): bool {}
9595
public function openMemory(): bool {}
9696

9797
/** @alias xmlwriter_set_indent */
98-
public function setIndent(bool $indent): bool {}
98+
public function setIndent(bool $enable): bool {}
9999

100100
/** @alias xmlwriter_set_indent_string */
101-
public function setIndentString(string $indentString): bool {}
101+
public function setIndentString(string $indentation): bool {}
102102

103103
/** @alias xmlwriter_start_comment */
104104
public function startComment(): bool {}
@@ -113,7 +113,7 @@ public function startAttribute(string $name): bool {}
113113
public function endAttribute(): bool {}
114114

115115
/** @alias xmlwriter_write_attribute */
116-
public function writeAttribute(string $name, string $value): bool {}
116+
public function writeAttribute(string $name, string $content): bool {}
117117

118118
/** @alias xmlwriter_start_attribute_ns */
119119
public function startAttributeNs(?string $prefix, string $name, ?string $uri): bool {}
@@ -179,7 +179,7 @@ public function startDtd(string $qualifiedName, ?string $publicId = null, ?strin
179179
public function endDtd(): bool {}
180180

181181
/** @alias xmlwriter_write_dtd */
182-
public function writeDtd(string $name, ?string $publicId = null, ?string $systemId = null, ?string $subset = null): bool {}
182+
public function writeDtd(string $name, ?string $publicId = null, ?string $systemId = null, ?string $content = null): bool {}
183183

184184
/** @alias xmlwriter_start_dtd_element */
185185
public function startDtdElement(string $qualifiedName): bool {}
@@ -200,13 +200,13 @@ public function endDtdAttlist(): bool {}
200200
public function writeDtdAttlist(string $name, string $content): bool {}
201201

202202
/** @alias xmlwriter_start_dtd_entity */
203-
public function startDtdEntity(string $name, bool $isparam): bool {}
203+
public function startDtdEntity(string $name, bool $isParam): bool {}
204204

205205
/** @alias xmlwriter_end_dtd_entity */
206206
public function endDtdEntity(): bool {}
207207

208208
/** @alias xmlwriter_write_dtd_entity */
209-
public function writeDtdEntity(string $name, string $content, bool $isparam = false, ?string $publicId = null, ?string $systemId = null, ?string $ndataid = null): bool {}
209+
public function writeDtdEntity(string $name, string $content, bool $isParam = false, ?string $publicId = null, ?string $systemId = null, ?string $notationData = null): bool {}
210210

211211
/** @alias xmlwriter_output_memory */
212212
public function outputMemory(bool $flush = true): string {}

0 commit comments

Comments
 (0)