summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Michel Vourgère2019-11-07 09:10:07 +0000
committerJean-Michel Vourgère2019-11-07 09:10:07 +0000
commit412990f57c5ab5ec4ead9ec09d39e650993730d5 (patch)
tree19737f65c4c8bedd68347edafce7c786e11fed53
parentb8140fe276e0f75ce6798205a2908c0907e4aa4f (diff)
codespell assisted typo cleaning
-rw-r--r--classes/Misc.php2
-rw-r--r--classes/database/Postgres.php10
-rw-r--r--classes/database/Postgres10.php4
-rw-r--r--classes/database/Postgres84.php4
-rw-r--r--libraries/highlight.php2
-rw-r--r--tests/selenium/README2
-rw-r--r--tests/simpletests/testcase/Databases/DatabaseTest.php4
7 files changed, 14 insertions, 14 deletions
diff --git a/classes/Misc.php b/classes/Misc.php
index e2553e55..7df578cc 100644
--- a/classes/Misc.php
+++ b/classes/Misc.php
@@ -1796,7 +1796,7 @@
function inisizeToBytes($strIniSize) {
// This function will take the string value of an ini 'size' parameter,
// and return a double (64-bit float) representing the number of bytes
- // that the parameter represents. Or false if $strIniSize is unparseable.
+ // that the parameter represents. Or false if $strIniSize is unparsable.
$a_IniParts = array();
if (!is_string($strIniSize))
diff --git a/classes/database/Postgres.php b/classes/database/Postgres.php
index 500843c4..04e639b4 100644
--- a/classes/database/Postgres.php
+++ b/classes/database/Postgres.php
@@ -698,7 +698,7 @@ class Postgres extends ADODB_base {
if (!$conf['show_system']) {
// XXX: The mention of information_schema here is in the wrong place, but
// it's the quickest fix to exclude the info schema from 7.4
- $where = " AND pn.nspname NOT LIKE \$_PATERN_\$pg\_%\$_PATERN_\$ AND pn.nspname != 'information_schema'";
+ $where = " AND pn.nspname NOT LIKE \$_PATTERN_\$pg\_%\$_PATTERN_\$ AND pn.nspname != 'information_schema'";
$lan_where = "AND pl.lanispl";
}
else {
@@ -712,7 +712,7 @@ class Postgres extends ADODB_base {
$sql = "SELECT * FROM (";
}
- $term = "\$_PATERN_\$%{$term}%\$_PATERN_\$";
+ $term = "\$_PATTERN_\$%{$term}%\$_PATTERN_\$";
$sql .= "
SELECT 'SCHEMA' AS type, oid, NULL AS schemaname, NULL AS relname, nspname AS name
@@ -3126,7 +3126,7 @@ class Postgres extends ADODB_base {
/**
* Updates a view.
- * @param $viewname The name fo the view to update
+ * @param $viewname The name of the view to update
* @param $definition The new definition for the view
* @return 0 success
* @return -1 transaction error
@@ -3557,7 +3557,7 @@ class Postgres extends ADODB_base {
// get the max number of col used in a constraint for the table
$sql = "SELECT DISTINCT
- max(SUBSTRING(array_dims(c.conkey) FROM \$patern\$^\\[.*:(.*)\\]$\$patern\$)) as nb
+ max(SUBSTRING(array_dims(c.conkey) FROM \$pattern\$^\\[.*:(.*)\\]$\$pattern\$)) as nb
FROM pg_catalog.pg_constraint AS c
JOIN pg_catalog.pg_class AS r ON (c.conrelid=r.oid)
JOIN pg_catalog.pg_namespace AS ns ON (r.relnamespace=ns.oid)
@@ -7004,7 +7004,7 @@ class Postgres extends ADODB_base {
}
/**
- * Helper function that computes encypted PostgreSQL passwords
+ * Helper function that computes encrypted PostgreSQL passwords
* @param $username The username
* @param $password The password
*/
diff --git a/classes/database/Postgres10.php b/classes/database/Postgres10.php
index 77bbe455..f7a02be4 100644
--- a/classes/database/Postgres10.php
+++ b/classes/database/Postgres10.php
@@ -47,7 +47,7 @@ class Postgres10 extends Postgres11 {
if (!$conf['show_system']) {
// XXX: The mention of information_schema here is in the wrong place, but
// it's the quickest fix to exclude the info schema from 7.4
- $where = " AND pn.nspname NOT LIKE \$_PATERN_\$pg\_%\$_PATERN_\$ AND pn.nspname != 'information_schema'";
+ $where = " AND pn.nspname NOT LIKE \$_PATTERN_\$pg\_%\$_PATTERN_\$ AND pn.nspname != 'information_schema'";
$lan_where = "AND pl.lanispl";
}
else {
@@ -61,7 +61,7 @@ class Postgres10 extends Postgres11 {
$sql = "SELECT * FROM (";
}
- $term = "\$_PATERN_\$%{$term}%\$_PATERN_\$";
+ $term = "\$_PATTERN_\$%{$term}%\$_PATTERN_\$";
$sql .= "
SELECT 'SCHEMA' AS type, oid, NULL AS schemaname, NULL AS relname, nspname AS name
diff --git a/classes/database/Postgres84.php b/classes/database/Postgres84.php
index 59d9f2f7..81fde26a 100644
--- a/classes/database/Postgres84.php
+++ b/classes/database/Postgres84.php
@@ -98,7 +98,7 @@ class Postgres84 extends Postgres90 {
if (!$conf['show_system']) {
// XXX: The mention of information_schema here is in the wrong place, but
// it's the quickest fix to exclude the info schema from 7.4
- $where = " AND pn.nspname NOT LIKE \$_PATERN_\$pg\_%\$_PATERN_\$ AND pn.nspname != 'information_schema'";
+ $where = " AND pn.nspname NOT LIKE \$_PATTERN_\$pg\_%\$_PATTERN_\$ AND pn.nspname != 'information_schema'";
$lan_where = "AND pl.lanispl";
}
else {
@@ -112,7 +112,7 @@ class Postgres84 extends Postgres90 {
$sql = "SELECT * FROM (";
}
- $term = "\$_PATERN_\$%{$term}%\$_PATERN_\$";
+ $term = "\$_PATTERN_\$%{$term}%\$_PATTERN_\$";
$sql .= "
SELECT 'SCHEMA' AS type, oid, NULL AS schemaname, NULL AS relname, nspname AS name
diff --git a/libraries/highlight.php b/libraries/highlight.php
index 74b93e30..27317b93 100644
--- a/libraries/highlight.php
+++ b/libraries/highlight.php
@@ -346,7 +346,7 @@ function syntax_highlight_helper($text, $language)
"SQRT", "STATEMENT", "STATIC", "STOP", "STORAGE",
"STREAM", "STRING", "STRINGRANGE", "STRG",
"STRUCTURE", "SUBSCRIPTRANGE", "SUBRG", "SUBSTR",
- "SUBTRACT", "SUM", "SUPERCEDE","SYSIN", "SYSPRINT",
+ "SUBTRACT", "SUM", "SYSIN", "SYSPRINT",
"SYSTEM", "SYSTEM_PROTECTION", "TAB", "TAN",
"TAND", "TANH", "TEMPORARY","%THEN", "THEN",
"TIME", "TIMEOUT_PERIOD", "%TITLE", "TITLE",
diff --git a/tests/selenium/README b/tests/selenium/README
index 0a05e245..db6fc8ab 100644
--- a/tests/selenium/README
+++ b/tests/selenium/README
@@ -31,7 +31,7 @@ in the test suite and use the previous created tables.
These scripts are included and executed in TestSuite.php in alphanumeric order. See comments in file ./tests/selenium/src/skeleton.php-dist
which is a template of test-builder.
When executed from TestSuite.php, test-builders should:
-- create a "TestBuilder" intance which gonna helps write HTML tests quickly.
+- create a "TestBuilder" instance which gonna helps write HTML tests quickly.
The constructor takes the following arguments:
- HTML title of the page
- Test description (appears on top of the tests table)
diff --git a/tests/simpletests/testcase/Databases/DatabaseTest.php b/tests/simpletests/testcase/Databases/DatabaseTest.php
index ec4d36b1..441c98f1 100644
--- a/tests/simpletests/testcase/Databases/DatabaseTest.php
+++ b/tests/simpletests/testcase/Databases/DatabaseTest.php
@@ -84,7 +84,7 @@ class DatabaseTest extends PreconditionSet
$this->assertWantedText($lang['strdatabasecreated']);
// Release the resource.
- // XXX In fact, this line doesnot work because of phpPgAdmin's bug.
+ // XXX In fact, this line does not work because of phpPgAdmin's bug.
// "cannot delete opened database"
$this->dropDatabase('spikesource1');
@@ -132,7 +132,7 @@ class DatabaseTest extends PreconditionSet
$this->assertWantedText($lang['strdatabasecreated']);
// Release the resource.
- // XXX In fact, this line doesnot work because of phpPgAdmin's bug (?)
+ // XXX In fact, this line does not work because of phpPgAdmin's bug (?)
// "cannot delete opened database"
$this->dropDatabase('spikesource2');