Skip to content

Commit abe469b

Browse files
authored
Merge pull request #1950 from vibbow/pr_fix_side_issue
Fix some side issue
2 parents 9bdfb13 + 904cc34 commit abe469b

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

system/Database/BaseBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ protected function _like($field, string $match = '', string $type = 'AND ', stri
10241024
*
10251025
* @return string $like_statement
10261026
*/
1027-
public function _like_statement(string $prefix = null, string $column, string $not = null, string $bind, bool $insensitiveSearch = false): string
1027+
protected function _like_statement(string $prefix = null, string $column, string $not = null, string $bind, bool $insensitiveSearch = false): string
10281028
{
10291029
$like_statement = "{$prefix} {$column} {$not} LIKE :{$bind}:";
10301030

system/Database/BaseConnection.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,7 +1247,7 @@ public function protectIdentifiers($item, bool $prefixSingle = false, bool $prot
12471247
*
12481248
* This function escapes column and table names
12491249
*
1250-
* @param mixed
1250+
* @param mixed $item
12511251
*
12521252
* @return mixed
12531253
*/
@@ -1442,7 +1442,7 @@ public function escapeString($str, bool $like = false)
14421442
* specific escaping for LIKE conditions
14431443
*
14441444
* @param string|string[]
1445-
* @return mixed
1445+
* @return string|string[]
14461446
*/
14471447
public function escapeLikeString($str)
14481448
{
@@ -1507,19 +1507,19 @@ public function callFunction(string $functionName, ...$params): bool
15071507
/**
15081508
* Returns an array of table names
15091509
*
1510-
* @param boolean $constrain_by_prefix = FALSE
1510+
* @param boolean $constrainByPrefix = FALSE
15111511
* @return boolean|array
15121512
* @throws \CodeIgniter\Database\Exceptions\DatabaseException
15131513
*/
1514-
public function listTables(bool $constrain_by_prefix = false)
1514+
public function listTables(bool $constrainByPrefix = false)
15151515
{
15161516
// Is there a cached result?
15171517
if (isset($this->dataCache['table_names']) && $this->dataCache['table_names'])
15181518
{
15191519
return $this->dataCache['table_names'];
15201520
}
15211521

1522-
if (false === ($sql = $this->_listTables($constrain_by_prefix)))
1522+
if (false === ($sql = $this->_listTables($constrainByPrefix)))
15231523
{
15241524
if ($this->DBDebug)
15251525
{
@@ -1567,12 +1567,12 @@ public function listTables(bool $constrain_by_prefix = false)
15671567
/**
15681568
* Determine if a particular table exists
15691569
*
1570-
* @param string $table_name
1570+
* @param string $tableName
15711571
* @return boolean
15721572
*/
1573-
public function tableExists(string $table_name): bool
1573+
public function tableExists(string $tableName): bool
15741574
{
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());
15761576
}
15771577

15781578
//--------------------------------------------------------------------

system/Entity.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
use CodeIgniter\Exceptions\EntityException;
4242
use CodeIgniter\I18n\Time;
4343
use CodeIgniter\Exceptions\CastException;
44+
use CodeIgniter\Exceptions\EntityException;
4445

4546
/**
4647
* Entity encapsulation, for use with CodeIgniter\Model

0 commit comments

Comments
 (0)