Skip to content

Commit 0bc5582

Browse files
committed
scoutapm: fix XML to remove useless wrapping para tags via script
1 parent f0db8a9 commit 0bc5582

3 files changed

Lines changed: 36 additions & 45 deletions

File tree

reference/scoutapm/functions/scoutapm-get-calls.xml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 410e060b066700e20e757fa8db0f6705dc22b3af Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara -->
3-
4-
<refentry xml:id="function.scoutapm-get-calls" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
2+
<!-- EN-Revision: 27cb550c69dc23ec95993a826609a1e9e406fc92 Maintainer: leonardolara Status: ready -->
3+
<!-- CREDITS: leonardolara -->
4+
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="function.scoutapm-get-calls">
55
<refnamediv>
66
<refname>scoutapm_get_calls</refname>
77
<refpurpose>Retorna uma lista de chamadas instrumentadas que ocorreram</refpurpose>
@@ -11,7 +11,7 @@
1111
&reftitle.description;
1212
<methodsynopsis>
1313
<type>array</type><methodname>scoutapm_get_calls</methodname>
14-
<void />
14+
<void/>
1515
</methodsynopsis>
1616
<para>Retorna uma lista de todas as chamadas de função instrumentadas desde a última chamada de <function>scoutapm_get_calls</function>. A lista é limpa sempre que a função é chamada.</para>
1717

@@ -32,9 +32,8 @@
3232

3333
<refsect1 role="examples">
3434
&reftitle.examples;
35-
<para>
36-
<example><title>Buscando chamadas instrumentadas</title>
37-
<programlisting role="php">
35+
<example><title>Buscando chamadas instrumentadas</title>
36+
<programlisting role="php">
3837
<![CDATA[
3938
<?php
4039
@@ -44,10 +43,10 @@ file_get_contents('b.txt');
4443
print_r(scoutapm_get_calls());
4544
?>
4645
]]>
47-
</programlisting>
48-
&example.outputs.similar;
49-
<screen>
50-
<![CDATA[
46+
</programlisting>
47+
&example.outputs.similar;
48+
<screen>
49+
<![CDATA[
5150
Array
5251
(
5352
[0] => Array
@@ -78,14 +77,12 @@ Array
7877
7978
)
8079
]]>
81-
</screen>
82-
</example>
83-
</para>
80+
</screen>
81+
</example>
8482
</refsect1>
8583

8684

8785
</refentry>
88-
8986
<!-- Keep this comment at the end of the file
9087
Local variables:
9188
mode: sgml

reference/scoutapm/functions/scoutapm-list-instrumented-functions.xml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 410e060b066700e20e757fa8db0f6705dc22b3af Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara -->
3-
4-
<refentry xml:id="function.scoutapm-list-instrumented-functions" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
2+
<!-- EN-Revision: 27cb550c69dc23ec95993a826609a1e9e406fc92 Maintainer: leonardolara Status: ready -->
3+
<!-- CREDITS: leonardolara -->
4+
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="function.scoutapm-list-instrumented-functions">
55
<refnamediv>
66
<refname>scoutapm_list_instrumented_functions</refname>
77
<refpurpose>Lista funções que o scoutapm irá instrumentar</refpurpose>
@@ -11,7 +11,7 @@
1111
&reftitle.description;
1212
<methodsynopsis>
1313
<type>array</type><methodname>scoutapm_list_instrumented_functions</methodname>
14-
<void />
14+
<void/>
1515
</methodsynopsis>
1616
<para>Retorna uma lista das funções que a extensão instrumentará.</para>
1717

@@ -33,18 +33,17 @@
3333

3434
<refsect1 role="examples">
3535
&reftitle.examples;
36-
<para>
37-
<example><title>Buscando a lista de funções que o scoutapm irá instrumentar</title>
38-
<programlisting role="php">
39-
<![CDATA[
36+
<example><title>Buscando a lista de funções que o scoutapm irá instrumentar</title>
37+
<programlisting role="php">
38+
<![CDATA[
4039
<?php
4140
print_r(scoutapm_list_instrumented_functions());
4241
?>
4342
]]>
44-
</programlisting>
45-
&example.outputs.similar;
46-
<screen>
47-
<![CDATA[
43+
</programlisting>
44+
&example.outputs.similar;
45+
<screen>
46+
<![CDATA[
4847
Array
4948
(
5049
[0] => file_get_contents
@@ -58,14 +57,12 @@ Array
5857
[8] => pdostatement->execute
5958
)
6059
]]>
61-
</screen>
62-
</example>
63-
</para>
60+
</screen>
61+
</example>
6462
</refsect1>
6563

6664

6765
</refentry>
68-
6966
<!-- Keep this comment at the end of the file
7067
Local variables:
7168
mode: sgml

reference/scoutapm/setup.xml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 765b2d6eec7dfbaeed900b32aa91a1360d73df42 Maintainer: leonardolara Status: ready --><!-- CREDITS: leonardolara -->
3-
4-
<chapter xml:id="scoutapm.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
2+
<!-- EN-Revision: 27cb550c69dc23ec95993a826609a1e9e406fc92 Maintainer: leonardolara Status: ready -->
3+
<!-- CREDITS: leonardolara -->
4+
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="scoutapm.setup">
55
&reftitle.setup;
66

77
<section xml:id="scoutapm.requirements">
88
&reftitle.required;
9-
<para>
10-
<itemizedlist>
11-
<listitem>
12-
<simpara>PHP &gt;= 7.1.0</simpara>
13-
</listitem>
14-
<listitem>
15-
<simpara>O Windows não é compatível no momento</simpara>
16-
</listitem>
17-
</itemizedlist>
18-
</para>
9+
<itemizedlist>
10+
<listitem>
11+
<simpara>PHP &gt;= 7.1.0</simpara>
12+
</listitem>
13+
<listitem>
14+
<simpara>O Windows não é compatível no momento</simpara>
15+
</listitem>
16+
</itemizedlist>
1917
</section>
2018

2119
<section xml:id="scoutapm.installation">
@@ -37,7 +35,6 @@ extension=scoutapm.so
3735
</section>
3836

3937
</chapter>
40-
4138
<!-- Keep this comment at the end of the file
4239
Local variables:
4340
mode: sgml

0 commit comments

Comments
 (0)