Skip to content

Commit 3c63a7a

Browse files
authored
Sync EN: fix example outputs inconsistent with code (#793)
1 parent 310a6f1 commit 3c63a7a

16 files changed

Lines changed: 46 additions & 47 deletions

File tree

language/oop5/inheritance.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: f94d903985119d3ac00f4528551df947f57b667f Maintainer: PhilDaiguille Status: ready -->
2+
<!-- EN-Revision: df78bd1d232f2cd8df673accf5ba0e280695639b Maintainer: PhilDaiguille Status: ready -->
33
<!-- Reviewed: no -->
44
<sect1 xml:id="language.oop5.inheritance" xmlns="http://docbook.org/ns/docbook">
55
<title>Herencia</title>
@@ -86,7 +86,7 @@ class Foo
8686
8787
public function printPHP()
8888
{
89-
echo 'PHP es genial' . PHP_EOL;
89+
echo 'PHP es genial.' . PHP_EOL;
9090
}
9191
}
9292
@@ -101,9 +101,9 @@ class Bar extends Foo
101101
$foo = new Foo();
102102
$bar = new Bar();
103103
$foo->printItem('baz'); // Muestra: 'Foo: baz'
104-
$foo->printPHP(); // Muestra: 'PHP es genial'
104+
$foo->printPHP(); // Muestra: 'PHP es genial.'
105105
$bar->printItem('baz'); // Muestra: 'Bar: baz'
106-
$bar->printPHP(); // Muestra: 'PHP es genial'
106+
$bar->printPHP(); // Muestra: 'PHP es genial.'
107107
108108
?>
109109
]]>

reference/datetime/functions/mktime.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 3a8c3e77df070a046c9d5b56b68926ca2d7e5ee3 Maintainer: Marqitos Status: ready -->
3+
<!-- EN-Revision: df78bd1d232f2cd8df673accf5ba0e280695639b Maintainer: Marqitos Status: ready -->
44
<!-- Reviewed: no -->
55
<refentry xml:id="function.mktime" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
@@ -255,11 +255,11 @@ print date('c', $nextyear) . "\n";
255255
<para>
256256
<example>
257257
<title>El último día del mes</title>
258-
<para>
258+
<simpara>
259259
El último día de cualquier mes dado se puede expresar como el día "0"
260260
del mes siguiente, no el día -1. Los dos ejemplos siguientes
261261
producirán la cadena "El último día en Feb 2000 es: 29".
262-
</para>
262+
</simpara>
263263
<programlisting role="php">
264264
<![CDATA[
265265
<?php

reference/dom/domelement/construct.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 4f5e2b22575131fa5e9c3004b1c874e1acb06573 Maintainer: chuso Status: ready -->
2+
<!-- EN-Revision: df78bd1d232f2cd8df673accf5ba0e280695639b Maintainer: chuso Status: ready -->
33
<!-- Reviewed: no -->
44
<refentry xml:id="domelement.construct" xmlns="http://docbook.org/ns/docbook">
55
<refnamediv>
@@ -69,7 +69,7 @@ $dom = new DOMDocument('1.0', 'iso-8859-1');
6969
$element = $dom->appendChild(new DOMElement('root'));
7070
$element_ns = new DOMElement('pr:node1', 'thisvalue', 'http://xyz');
7171
$element->appendChild($element_ns);
72-
echo $dom->saveXML(); /* <?xml version="1.0" encoding="utf-8"?>
72+
echo $dom->saveXML(); /* <?xml version="1.0" encoding="iso-8859-1"?>
7373
<root><pr:node1 xmlns:pr="http://xyz">thisvalue</pr:node1></root> */
7474
7575
?>

reference/ds/ds/map/ksort.xml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 2226ad08fd93e3979efbba47c5ae3545eec97d25 Maintainer: PhilDaiguille Status: ready -->
2+
<!-- EN-Revision: df78bd1d232f2cd8df673accf5ba0e280695639b Maintainer: PhilDaiguille Status: ready -->
33
<!-- Reviewed: no -->
44
<refentry xml:id="ds-map.ksort" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
55
<refnamediv>
@@ -15,9 +15,9 @@
1515
<modifier>public</modifier> <type>void</type><methodname>Ds\Map::ksort</methodname>
1616
<methodparam choice="opt"><type>callable</type><parameter>comparator</parameter></methodparam>
1717
</methodsynopsis>
18-
<para>
18+
<simpara>
1919
Ordena el mapa en el lugar por clave, utilizando una función <parameter>comparator</parameter> opcional.
20-
</para>
20+
</simpara>
2121

2222
</refsect1>
2323

@@ -35,9 +35,9 @@
3535

3636
<refsect1 role="returnvalues">
3737
&reftitle.returnvalues;
38-
<para>
38+
<simpara>
3939
&return.void;
40-
</para>
40+
</simpara>
4141
</refsect1>
4242

4343
<refsect1 role="examples">
@@ -101,7 +101,6 @@ print_r($map);
101101
<screen>
102102
<![CDATA[
103103
Ds\Map Object
104-
Ds\Map Object
105104
(
106105
[0] => Ds\Pair Object
107106
(

reference/ds/ds/map/ksorted.xml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 2226ad08fd93e3979efbba47c5ae3545eec97d25 Maintainer: PhilDaiguille Status: ready -->
2+
<!-- EN-Revision: df78bd1d232f2cd8df673accf5ba0e280695639b Maintainer: PhilDaiguille Status: ready -->
33
<!-- Reviewed: no -->
44
<refentry xml:id="ds-map.ksorted" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
55
<refnamediv>
@@ -13,9 +13,9 @@
1313
<modifier>public</modifier> <type>Ds\Map</type><methodname>Ds\Map::ksorted</methodname>
1414
<methodparam choice="opt"><type>callable</type><parameter>comparator</parameter></methodparam>
1515
</methodsynopsis>
16-
<para>
16+
<simpara>
1717
Devuelve una copia ordenada por clave, utilizando una función <parameter>comparator</parameter> opcional.
18-
</para>
18+
</simpara>
1919

2020
</refsect1>
2121

@@ -33,9 +33,9 @@
3333

3434
<refsect1 role="returnvalues">
3535
&reftitle.returnvalues;
36-
<para>
36+
<simpara>
3737
Devuelve una copia del mapa, ordenada por clave.
38-
</para>
38+
</simpara>
3939
</refsect1>
4040

4141
<refsect1 role="examples">
@@ -55,7 +55,6 @@ print_r($map->ksorted());
5555
<screen>
5656
<![CDATA[
5757
Ds\Map Object
58-
Ds\Map Object
5958
(
6059
[0] => Ds\Pair Object
6160
(
@@ -99,7 +98,6 @@ print_r($sorted);
9998
<screen>
10099
<![CDATA[
101100
Ds\Map Object
102-
Ds\Map Object
103101
(
104102
[0] => Ds\Pair Object
105103
(

reference/ds/ds/map/pairs.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: dd07341fae2c414adc1f700be0890ff32e8daab4 Maintainer: PhilDaiguille Status: ready -->
2+
<!-- EN-Revision: df78bd1d232f2cd8df673accf5ba0e280695639b Maintainer: PhilDaiguille Status: ready -->
33
<!-- Reviewed: no -->
44
<refentry xml:id="ds-map.pairs" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
55
<refnamediv>
@@ -47,7 +47,7 @@ var_dump($map->pairs());
4747
&example.outputs.similar;
4848
<screen>
4949
<![CDATA[
50-
object(Ds\Map)#8 (3) {
50+
object(Ds\Vector)#8 (3) {
5151
[0]=>
5252
object(Ds\Pair)#5 (2) {
5353
["key"]=>
@@ -70,7 +70,6 @@ object(Ds\Map)#8 (3) {
7070
int(3)
7171
}
7272
}
73-
p
7473
]]>
7574
</screen>
7675
</example>

reference/ds/ds/pair/clear.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: dd07341fae2c414adc1f700be0890ff32e8daab4 Maintainer: PhilDaiguille Status: ready -->
2+
<!-- EN-Revision: df78bd1d232f2cd8df673accf5ba0e280695639b Maintainer: PhilDaiguille Status: ready -->
33
<!-- Reviewed: no -->
44
<refentry xml:id="ds-pair.clear" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
55
<refnamediv>
@@ -50,9 +50,8 @@ print_r($pair);
5050
<![CDATA[
5151
Ds\Pair Object
5252
(
53-
[0] => 1
54-
[1] => 2
55-
[2] => 3
53+
[key] => a
54+
[value] => 1
5655
)
5756
Ds\Pair Object
5857
(

reference/ds/ds/vector/join.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: dd07341fae2c414adc1f700be0890ff32e8daab4 Maintainer: PhilDaiguille Status: ready -->
2+
<!-- EN-Revision: df78bd1d232f2cd8df673accf5ba0e280695639b Maintainer: PhilDaiguille Status: ready -->
33
<!-- Reviewed: no -->
44
<refentry xml:id="ds-vector.join" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
55
<refnamediv>
@@ -73,7 +73,7 @@ var_dump($vector->join());
7373
&example.outputs.similar;
7474
<screen>
7575
<![CDATA[
76-
string(11) "abc123"
76+
string(6) "abc123"
7777
]]>
7878
</screen>
7979
</example>

reference/memcached/memcached/fetch.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 1d8068ecb070fdc360d750e0c1f3f15796e61ec0 Maintainer: PhilDaiguille Status: ready -->
3+
<!-- EN-Revision: df78bd1d232f2cd8df673accf5ba0e280695639b Maintainer: PhilDaiguille Status: ready -->
44
<!-- Reviewed: yes -->
55
<refentry xml:id="memcached.fetch" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
66
<refnamediv>

reference/mongodb/functions/bson/fromphp.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 9f4cb232d01a06077a2324e38f767d63f87f2e5f Maintainer: PhilDaiguille Status: ready -->
2+
<!-- EN-Revision: df78bd1d232f2cd8df673accf5ba0e280695639b Maintainer: PhilDaiguille Status: ready -->
33
<!-- Reviewed: no -->
44
<refentry xml:id="function.mongodb.bson-fromphp" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
55
<refnamediv>
@@ -100,7 +100,7 @@ echo bin2hex($bson), "\n";
100100
&example.outputs;
101101
<screen>
102102
<![CDATA[
103-
0e00000010666f6f000100000000cat
103+
0e00000010666f6f000100000000
104104
]]>
105105
</screen>
106106
</example>

0 commit comments

Comments
 (0)