mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Replace alias functions with origins
This commit is contained in:
parent
d028ec404f
commit
5bdf3b57af
@ -68,7 +68,7 @@ class PreparedQuery extends BasePreparedQuery
|
||||
// Determine the type string
|
||||
foreach ($data as $item)
|
||||
{
|
||||
if (is_integer($item))
|
||||
if (is_int($item))
|
||||
{
|
||||
$bindTypes .= 'i';
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ class PreparedQuery extends BasePreparedQuery
|
||||
foreach ($data as $key => $item)
|
||||
{
|
||||
// Determine the type string
|
||||
if (is_integer($item))
|
||||
if (is_int($item))
|
||||
{
|
||||
$bindType = SQLITE3_INTEGER;
|
||||
}
|
||||
|
@ -1956,8 +1956,8 @@ class Email
|
||||
return false;
|
||||
}
|
||||
|
||||
fputs($fp, $this->headerStr);
|
||||
fputs($fp, $this->finalBody);
|
||||
fwrite($fp, $this->headerStr);
|
||||
fwrite($fp, $this->finalBody);
|
||||
$status = pclose($fp);
|
||||
|
||||
if ($status !== 0)
|
||||
|
@ -13,7 +13,7 @@ class Role implements FilterInterface
|
||||
{
|
||||
if (is_array($arguments))
|
||||
{
|
||||
$response->setBody(join(';', $arguments));
|
||||
$response->setBody(implode(';', $arguments));
|
||||
}
|
||||
elseif (is_null($arguments))
|
||||
{
|
||||
@ -30,7 +30,7 @@ class Role implements FilterInterface
|
||||
{
|
||||
if (is_array($arguments))
|
||||
{
|
||||
return join(';', $arguments);
|
||||
return implode(';', $arguments);
|
||||
}
|
||||
if (is_null($arguments))
|
||||
{
|
||||
|
@ -36,6 +36,9 @@ final class CodeIgniter4 extends AbstractRuleset
|
||||
'blank_line_after_opening_tag' => true,
|
||||
'indentation_type' => true,
|
||||
'line_ending' => true,
|
||||
'no_alias_functions' => [
|
||||
'sets' => ['@all'],
|
||||
],
|
||||
'static_lambda' => true,
|
||||
];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user