codespell assisted typo cleaning
authorJean-Michel Vourgère <nirgal@debian.org>
Thu, 7 Nov 2019 09:10:07 +0000 (10:10 +0100)
committerJean-Michel Vourgère <nirgal@debian.org>
Thu, 7 Nov 2019 09:10:07 +0000 (10:10 +0100)
classes/Misc.php
classes/database/Postgres.php
classes/database/Postgres10.php
classes/database/Postgres84.php
libraries/highlight.php
tests/selenium/README
tests/simpletests/testcase/Databases/DatabaseTest.php

index e2553e5557b4770c32d8e9b0abb9fbf171156a56..7df578cc6b395d7c7b82e5b103a650c8d27c7218 100644 (file)
                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))
index 500843c45742f8af593c95d4e912c08ec4f507c2..04e639b469b7fd33f7e66ef79531a459c57ebc91 100644 (file)
@@ -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
         */
index 77bbe45588eb75c53d581906816bd40fd818eebe..f7a02be4fc055c3513aca094887336da7b204fcb 100644 (file)
@@ -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
index 59d9f2f777d413bdd6c355b7fe8f896f4920ebef..81fde26aa7b95774a2f23bb9b0419007c31d7405 100644 (file)
@@ -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
index 74b93e30d99239dd4707eca94c014110e677a5f5..27317b934dbc57630fc17b577004bbd7986aa898 100644 (file)
@@ -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",
index 0a05e2459682984bcb645139300a46eeceb203e4..db6fc8abfc6fad71acf38f057e805e16886b1bb7 100644 (file)
@@ -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)
index ec4d36b1accfb00bb8659d68d1a3aefc677adeb6..441c98f1b81dee9addc132cef186ff62f2ace01d 100644 (file)
@@ -84,7 +84,7 @@ class DatabaseTest extends PreconditionSet
         $this->assertWantedText($lang['strdatabasecreated']);\r
 \r
         // Release the resource. \r
-               // XXX In fact, this line doesnot work because of phpPgAdmin's bug.\r
+               // XXX In fact, this line does not work because of phpPgAdmin's bug.\r
                // "cannot delete opened database"\r
         $this->dropDatabase('spikesource1');\r
 \r
@@ -132,7 +132,7 @@ class DatabaseTest extends PreconditionSet
         $this->assertWantedText($lang['strdatabasecreated']);\r
 \r
         // Release the resource.\r
-               // XXX In fact, this line doesnot work because of phpPgAdmin's bug (?)\r
+               // XXX In fact, this line does not work because of phpPgAdmin's bug (?)\r
                // "cannot delete opened database"\r
         $this->dropDatabase('spikesource2');\r
 \r