Skip to content

Commit 6047c10

Browse files
authored
Fix codespell typos in actively maintained PECL extensions (#5633)
* Fix codespell typos in actively maintained PECL extensions Run codespell across the documentation for non-core extensions that are still actively maintained on PECL (mongodb, imagick, swoole, oci8, sqlsrv, memcached, gearman, ibm_db2) and apply the suggestions. Split out from the broader non-standard extensions pass so each maintainer can review their own surface independently.
1 parent 8d40a1f commit 6047c10

37 files changed

Lines changed: 74 additions & 74 deletions

reference/gearman/gearmantask/create.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="gearmantask.create">
3+
<refentry xml:id="gearmantask.create" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
44
<refnamediv>
55
<refname>GearmanTask::create</refname>
66
<refpurpose>Create a task (deprecated)</refpurpose>
@@ -30,7 +30,7 @@
3030
<refsect1 role="returnvalues">
3131
&reftitle.returnvalues;
3232
<simpara>
33-
A <classname>GearmanTask</classname> oject&return.falseforfailure;.
33+
A <classname>GearmanTask</classname> object&return.falseforfailure;.
3434
</simpara>
3535
</refsect1>
3636

reference/ibm_db2/functions/db2-escape-string.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-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.db2-escape-string">
3+
<refentry xml:id="function.db2-escape-string" xmlns="http://docbook.org/ns/docbook">
44
<refnamediv>
55
<refname>db2_escape_string</refname>
66
<refpurpose>
@@ -61,7 +61,7 @@ if ($conn) {
6161
$str[0] = "All characters: \x00 , \n , \r , \ , ' , \" , \x1a .";
6262
$str[1] = "Backslash (\). Single quote ('). Double quote (\")";
6363
$str[2] = "The NULL character \0 must be quoted as well";
64-
$str[3] = "Intersting characters: \x1a , \x00 .";
64+
$str[3] = "Interesting characters: \x1a , \x00 .";
6565
$str[4] = "Nothing to quote";
6666
$str[5] = 200676;
6767
$str[6] = "";
@@ -79,7 +79,7 @@ if ($conn) {
7979
db2_escape_string: All characters: \0 , \n , \r , \\ , \' , \" , \Z .
8080
db2_escape_string: Backslash (\\). Single quote (\'). Double quote (\")
8181
db2_escape_string: The NULL character \0 must be quoted as well
82-
db2_escape_string: Intersting characters: \Z , \0 .
82+
db2_escape_string: Interesting characters: \Z , \0 .
8383
db2_escape_string: Nothing to quote
8484
db2_escape_string: 200676
8585
db2_escape_string:

reference/imagick/examples.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ $images->writeImages();
6060
<para>
6161
This is an example of creating a reflection of an image.
6262
The reflection is created by flipping the image and overlaying a gradient on it.
63-
Then both, the original image and the reflection is overlayed on a canvas.
63+
Then both, the original image and the reflection is overlaid on a canvas.
6464
<example>
6565
<title>Creating a reflection of an image</title>
6666
<programlisting role="php">
@@ -79,7 +79,7 @@ $im->borderImage(new ImagickPixel("white"), 5, 5);
7979
$reflection = $im->clone();
8080
$reflection->flipImage();
8181
82-
/* Create gradient. It will be overlayed on the reflection */
82+
/* Create gradient. It will be overlaid on the reflection */
8383
$gradient = new Imagick();
8484
8585
/* Gradient needs to be large enough for the image and the borders */

reference/imagick/imagick/brightnesscontrastimage.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
<methodparam><type>float</type><parameter>contrast</parameter></methodparam>
1616
<methodparam choice="opt"><type>int</type><parameter>channel</parameter><initializer>Imagick::CHANNEL_DEFAULT</initializer></methodparam>
1717
</methodsynopsis>
18-
<para>
19-
Change the brightness and/or contrast of an image. It converts the brightness and contrast parameters into slope and intercept and calls a polynomical function to apply to the image.
20-
</para>
18+
<simpara>
19+
Change the brightness and/or contrast of an image. It converts the brightness and contrast parameters into slope and intercept and calls a polynomial function to apply to the image.
20+
</simpara>
2121

2222
</refsect1>
2323

reference/imagick/imagick/distortimage.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="imagick.distortimage">
3+
<refentry xml:id="imagick.distortimage" xmlns="http://docbook.org/ns/docbook">
44
<refnamediv>
55
<refname>Imagick::distortImage</refname>
66
<refpurpose>Distorts an image using various distortion methods</refpurpose>
@@ -120,7 +120,7 @@ $controlPoints = array( 10, 10,
120120
/* Perform the distortion */
121121
$im->distortImage(Imagick::DISTORTION_PERSPECTIVE, $controlPoints, true);
122122
123-
/* Ouput the image */
123+
/* Output the image */
124124
header("Content-Type: image/png");
125125
echo $im;
126126
?>

reference/imagick/imagick/evaluateimage.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="imagick.evaluateimage">
3+
<refentry xml:id="imagick.evaluateimage" xmlns="http://docbook.org/ns/docbook">
44
<refnamediv>
55
<refname>Imagick::evaluateImage</refname>
66
<refpurpose>Applies an expression to an image</refpurpose>
@@ -14,11 +14,11 @@
1414
<methodparam><type>float</type><parameter>constant</parameter></methodparam>
1515
<methodparam choice="opt"><type>int</type><parameter>channel</parameter><initializer>Imagick::CHANNEL_DEFAULT</initializer></methodparam>
1616
</methodsynopsis>
17-
<para>
18-
Applys an arithmetic, relational, or logical expression to an image. Use
17+
<simpara>
18+
Applies an arithmetic, relational, or logical expression to an image. Use
1919
these operators to lighten or darken an image, to increase or decrease
2020
contrast in an image, or to produce the "negative" of an image.
21-
</para>
21+
</simpara>
2222
</refsect1>
2323

2424
<refsect1 role="parameters">

reference/imagick/imagick/extentimage.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="imagick.extentimage">
3+
<refentry xml:id="imagick.extentimage" xmlns="http://docbook.org/ns/docbook">
44
<refnamediv>
55
<refname>Imagick::extentImage</refname>
66
<refpurpose>Set image size</refpurpose>
@@ -23,14 +23,14 @@
2323
</para>
2424

2525
<caution>
26-
<para>
26+
<simpara>
2727
Prior to ImageMagick 6.5.7-8 (1623), $x was positive when shifting to the left and negative when shifting to the right, and $y was positive when shifting an image up and negative when shifting an image down.
2828

29-
Somewhere betwen ImageMagick 6.3.7 (1591) and ImageMagick 6.5.7-8 (1623), the axes of $x and $y were flipped, so that $x was negative when shifting to the left and positive when shifting to the right, and $y was negative when shifting an image up and positive when shifting an image down.
29+
Somewhere between ImageMagick 6.3.7 (1591) and ImageMagick 6.5.7-8 (1623), the axes of $x and $y were flipped, so that $x was negative when shifting to the left and positive when shifting to the right, and $y was negative when shifting an image up and positive when shifting an image down.
3030

3131
Somewhere between ImageMagick 6.5.7-8 (1623) and ImageMagick 6.6.9-7 (1641), the axes of $x and $y were flipped back to pre-ImageMagick 6.5.7-8 (1623) functionality.
3232

33-
</para>
33+
</simpara>
3434
</caution>
3535
</refsect1>
3636

reference/imagick/imagick/getimageproperties.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="imagick.getimageproperties">
3+
<refentry xml:id="imagick.getimageproperties" xmlns="http://docbook.org/ns/docbook">
44
<refnamediv>
55
<refname>Imagick::getImageProperties</refname>
66
<refpurpose>Returns the image properties</refpurpose>
@@ -69,7 +69,7 @@ $im = new imagick("/path/to/example.jpg");
6969
/* Get the EXIF information */
7070
$exifArray = $im->getImageProperties("exif:*");
7171
72-
/* Loop trough the EXIF properties */
72+
/* Loop through the EXIF properties */
7373
foreach ($exifArray as $name => $property)
7474
{
7575
echo "{$name} => {$property}<br />\n";

reference/imagick/imagick/sigmoidalcontrastimage.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="imagick.sigmoidalcontrastimage" xmlns:xlink="http://www.w3.org/1999/xlink">
3+
<refentry xml:id="imagick.sigmoidalcontrastimage" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
44
<refnamediv>
55
<refname>Imagick::sigmoidalContrastImage</refname>
66
<refpurpose>Adjusts the contrast of an image</refpurpose>
@@ -53,9 +53,9 @@
5353
<varlistentry>
5454
<term><parameter>beta</parameter></term>
5555
<listitem>
56-
<para>
57-
Where the midpoint of the gradient will be. This value should be in the range 0 to 1 - mutliplied by the quantum value for ImageMagick.
58-
</para>
56+
<simpara>
57+
Where the midpoint of the gradient will be. This value should be in the range 0 to 1 - multiplied by the quantum value for ImageMagick.
58+
</simpara>
5959
</listitem>
6060
</varlistentry>
6161
<varlistentry>

reference/imagick/imagick/trimimage.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="imagick.trimimage">
3+
<refentry xml:id="imagick.trimimage" xmlns="http://docbook.org/ns/docbook">
44
<refnamediv>
55
<refname>Imagick::trimImage</refname>
66
<refpurpose>Remove edges from the image</refpurpose>
@@ -70,7 +70,7 @@ $im = new Imagick("image.jpg");
7070
/* Trim the image. */
7171
$im->trimImage(0);
7272
73-
/* Ouput the image */
73+
/* Output the image */
7474
header("Content-Type: image/" . $im->getImageFormat());
7575
echo $im;
7676
?>

0 commit comments

Comments
 (0)