Replace alias functions with origins

This commit is contained in:
Jérôme Gamez 2021-06-07 13:38:13 +02:00
parent d028ec404f
commit 5bdf3b57af
No known key found for this signature in database
GPG Key ID: 4E902530D3BC24D1
5 changed files with 9 additions and 6 deletions

View File

@ -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';
}

View File

@ -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;
}

View File

@ -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)

View File

@ -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))
{

View File

@ -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,
];