Skip to content

Commit 42a5d0e

Browse files
authored
Merge pull request #97 from geekwright/mamba-typos
Typo corrections from Mamba
2 parents 8987315 + 7b0f6f6 commit 42a5d0e

File tree

9 files changed

+22
-22
lines changed

9 files changed

+22
-22
lines changed

src/Database/Migrate.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
* and build a work queue of DDL/SQL to transform the existing tables to the
2222
* target definitions.
2323
*
24-
* Typically Migrate will be extended by a module specific class that will supply custom
24+
* Typically, Migrate will be extended by a module specific class that will supply custom
2525
* logic (see preSyncActions() method.)
2626
*
2727
* @category Xmf\Database\Migrate
2828
* @package Xmf
2929
* @author Richard Griffith <richard@geekwright.com>
30-
* @copyright 2018-2022 XOOPS Project (https://xoops.org)
30+
* @copyright 2018-2023 XOOPS Project (https://xoops.org)
3131
* @license GNU GPL 2 or later (https://www.gnu.org/licenses/gpl-2.0.html)
3232
* @link https://xoops.org
3333
*/

src/Database/Tables.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* @category Xmf\Database\Tables
2828
* @package Xmf
2929
* @author Richard Griffith <richard@geekwright.com>
30-
* @copyright 2011-2022 XOOPS Project (https://xoops.org)
30+
* @copyright 2011-2023 XOOPS Project (https://xoops.org)
3131
* @license GNU GPL 2 or later (https://www.gnu.org/licenses/gpl-2.0.html)
3232
* @link https://xoops.org
3333
*/
@@ -288,7 +288,7 @@ public function getColumnAttributes($table, $column)
288288
// Find table def.
289289
if (isset($this->tables[$table])) {
290290
$tableDef = $this->tables[$table];
291-
// loop thru and find the column
291+
// loop through and find the column
292292
foreach ($tableDef['columns'] as $col) {
293293
if (strcasecmp($col['name'], $column) === 0) {
294294
return $col['attributes'];
@@ -336,7 +336,7 @@ public function alterColumn($table, $column, $attributes, $newName = '')
336336
$tableDef = &$this->tables[$table];
337337
// Is this on a table we are adding?
338338
if (isset($tableDef['create']) && $tableDef['create']) {
339-
// loop thru and find the column
339+
// loop through and find the column
340340
foreach ($tableDef['columns'] as &$col) {
341341
if (strcasecmp($col['name'], $column) == 0) {
342342
$col['name'] = $newName;
@@ -349,7 +349,7 @@ public function alterColumn($table, $column, $attributes, $newName = '')
349349
} else {
350350
$this->queue[] = "ALTER TABLE `{$tableDef['name']}` " .
351351
"CHANGE COLUMN `{$column}` `{$newName}` {$attributes} ";
352-
// loop thru and find the column
352+
// loop through and find the column
353353
foreach ($tableDef['columns'] as &$col) {
354354
if (strcasecmp($col['name'], $column) == 0) {
355355
$col['name'] = $newName;

src/FilterInput.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* @author Richard Griffith <richard@geekwright.com>
2929
* @copyright 2005 Daniel Morris
3030
* @copyright 2005 - 2013 Open Source Matters, Inc. All rights reserved.
31-
* @copyright 2011-2018 XOOPS Project (https://xoops.org)
31+
* @copyright 2011-2023 XOOPS Project (https://xoops.org)
3232
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
3333
* @link https://xoops.org
3434
*/
@@ -65,7 +65,7 @@ class FilterInput
6565
'title',
6666
'xml'
6767
);
68-
// also will strip ALL event handlers
68+
// also, it will strip ALL event handlers
6969
protected $attrBlacklist = array('action', 'background', 'codebase', 'dynsrc', 'lowsrc');
7070

7171
/**

src/Key/KeyAbstract.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* @category Xmf\Key\KeyAbstract
2020
* @package Xmf
2121
* @author Richard Griffith <richard@geekwright.com>
22-
* @copyright 2018 XOOPS Project (https://xoops.org)
22+
* @copyright 2018-2023 XOOPS Project (https://xoops.org)
2323
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
2424
* @link https://xoops.org
2525
*/
@@ -34,7 +34,7 @@ abstract class KeyAbstract
3434
/**
3535
* KeyAbstract constructor.
3636
* @param StorageInterface $storage key store
37-
* @param string $name case insensitive key name, allow only A-Z, 0-9, _ and -
37+
* @param string $name case-insensitive key name, allow only A-Z, 0-9, _ and -
3838
*/
3939
public function __construct(StorageInterface $storage, $name)
4040
{

src/Module/Admin.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @category Xmf\Module\Admin
2424
* @package Xmf
2525
* @author Richard Griffith <richard@geekwright.com>
26-
* @copyright 2011-2022 XOOPS Project (https://xoops.org)
26+
* @copyright 2011-2023 XOOPS Project (https://xoops.org)
2727
* @license GNU GPL 2 or later (https://www.gnu.org/licenses/gpl-2.0.html)
2828
*/
2929
class Admin
@@ -48,7 +48,7 @@ protected function __construct()
4848
/**
4949
* Retrieve a module admin instance
5050
*
51-
* If we are on a next generation system this will be the a native Xoops\Module\Admin instance.
51+
* If we are on a next generation system this will be the native Xoops\Module\Admin instance.
5252
* Older systems with the Frameworks based admin class will get an instance of this class which
5353
* provides compatible methods built from the old Frameworks version.
5454
*
@@ -459,7 +459,7 @@ public static function iconUrl($name = '', $size = '32')
459459
}
460460

461461
/**
462-
* set paypal for 2.5.x renderAbout
462+
* set PayPal for 2.5.x renderAbout
463463
*
464464
* not part of next generation Xoops\Module\Admin
465465
*

src/Module/Helper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @package Xmf
2424
* @author trabis <lusopoemas@gmail.com>
2525
* @author Richard Griffith <richard@geekwright.com>
26-
* @copyright 2011-2018 XOOPS Project (https://xoops.org)
26+
* @copyright 2011-2023 XOOPS Project (https://xoops.org)
2727
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
2828
* @link https://xoops.org
2929
*/
@@ -47,7 +47,7 @@ public static function getHelper($dirname = 'system')
4747
if (class_exists('Xoops', false)) {
4848
$instance[$dirname] = \Xoops\Module\Helper::getHelper($dirname);
4949
} else {
50-
// otherwise get a GenericHelper instance for dirname
50+
// otherwise, get a GenericHelper instance for dirname
5151
if (xoops_isActiveModule($dirname)) {
5252
$instance[$dirname] = new static($dirname);
5353
}

src/Module/Helper/GenericHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
/**
1717
* GenericHelper implements a Xoops 2.6 Xoops\Module\Helper\HelperAbstract.
18-
* We use it pre 2.6 systems so we can encapsulate many of the changes
18+
* We use it pre 2.6 systems, so we can encapsulate many of the changes
1919
* needed to make modules more compatible with 2.6 in these methods.
2020
* The most common deprecated warnings can be avoided by using module
2121
* helper methods.
@@ -24,7 +24,7 @@
2424
* @package Xmf
2525
* @author trabis <lusopoemas@gmail.com>
2626
* @author Richard Griffith <richard@geekwright.com>
27-
* @copyright 2016-2018 XOOPS Project (https://xoops.org)
27+
* @copyright 2016-2023 XOOPS Project (https://xoops.org)
2828
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
2929
* @link https://xoops.org
3030
*/

src/Module/Helper/Permission.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* @package Xmf
2121
* @author trabis <lusopoemas@gmail.com>
2222
* @author Richard Griffith <richard@geekwright.com>
23-
* @copyright 2011-2018 XOOPS Project (https://xoops.org)
23+
* @copyright 2011-2023 XOOPS Project (https://xoops.org)
2424
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
2525
* @link https://xoops.org
2626
*/
@@ -96,7 +96,7 @@ public function getItemIds($gperm_name, $gperm_groupid)
9696
}
9797

9898
/**
99-
* Redirect to a url if user does not have permission for an item
99+
* Redirect to a URL if user does not have permission for an item
100100
*
101101
* @param string $gperm_name name of the permission to test
102102
* @param int $gperm_itemid id of the object to check

src/Request.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @author Richard Griffith <richard@geekwright.com>
2424
* @author trabis <lusopoemas@gmail.com>
2525
* @author Joomla!
26-
* @copyright 2011-2018 XOOPS Project (https://xoops.org)
26+
* @copyright 2011-2023 XOOPS Project (https://xoops.org)
2727
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
2828
* @link https://xoops.org
2929
*/
@@ -332,7 +332,7 @@ public static function getIP($name, $default = '', $hash = 'default')
332332
/**
333333
* get request header
334334
*
335-
* @param string $headerName name of header to retrieve, case insensitive
335+
* @param string $headerName name of header to retrieve, case-insensitive
336336
* @param string|null $default default to return if named header is not found
337337
*
338338
* @return string header value or default if header was not found
@@ -563,7 +563,7 @@ protected static function cleanVar($var, $mask = 0, $type = null)
563563
}
564564

565565
// Now we handle input filtering
566-
// If the allow raw flag is set, do not modify the variable
566+
// If the 'allow raw' flag is set, do not modify the variable
567567
if (!($mask & static::MASK_ALLOW_RAW)) {
568568
if ($mask & static::MASK_ALLOW_HTML) {
569569
// If the allow html flag is set, apply a safe html filter to the variable

0 commit comments

Comments
 (0)