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 ;
0 commit comments