@@ -1247,7 +1247,7 @@ public function protectIdentifiers($item, bool $prefixSingle = false, bool $prot
1247
1247
*
1248
1248
* This function escapes column and table names
1249
1249
*
1250
- * @param mixed
1250
+ * @param mixed $item
1251
1251
*
1252
1252
* @return mixed
1253
1253
*/
@@ -1442,7 +1442,7 @@ public function escapeString($str, bool $like = false)
1442
1442
* specific escaping for LIKE conditions
1443
1443
*
1444
1444
* @param string|string[]
1445
- * @return mixed
1445
+ * @return string|string[]
1446
1446
*/
1447
1447
public function escapeLikeString ($ str )
1448
1448
{
@@ -1507,19 +1507,19 @@ public function callFunction(string $functionName, ...$params): bool
1507
1507
/**
1508
1508
* Returns an array of table names
1509
1509
*
1510
- * @param boolean $constrain_by_prefix = FALSE
1510
+ * @param boolean $constrainByPrefix = FALSE
1511
1511
* @return boolean|array
1512
1512
* @throws \CodeIgniter\Database\Exceptions\DatabaseException
1513
1513
*/
1514
- public function listTables (bool $ constrain_by_prefix = false )
1514
+ public function listTables (bool $ constrainByPrefix = false )
1515
1515
{
1516
1516
// Is there a cached result?
1517
1517
if (isset ($ this ->dataCache ['table_names ' ]) && $ this ->dataCache ['table_names ' ])
1518
1518
{
1519
1519
return $ this ->dataCache ['table_names ' ];
1520
1520
}
1521
1521
1522
- if (false === ($ sql = $ this ->_listTables ($ constrain_by_prefix )))
1522
+ if (false === ($ sql = $ this ->_listTables ($ constrainByPrefix )))
1523
1523
{
1524
1524
if ($ this ->DBDebug )
1525
1525
{
@@ -1567,12 +1567,12 @@ public function listTables(bool $constrain_by_prefix = false)
1567
1567
/**
1568
1568
* Determine if a particular table exists
1569
1569
*
1570
- * @param string $table_name
1570
+ * @param string $tableName
1571
1571
* @return boolean
1572
1572
*/
1573
- public function tableExists (string $ table_name ): bool
1573
+ public function tableExists (string $ tableName ): bool
1574
1574
{
1575
- return in_array ($ this ->protectIdentifiers ($ table_name , true , false , false ), $ this ->listTables ());
1575
+ return in_array ($ this ->protectIdentifiers ($ tableName , true , false , false ), $ this ->listTables ());
1576
1576
}
1577
1577
1578
1578
//--------------------------------------------------------------------
0 commit comments