for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types = 1);
/**
* @deprecated Use dependency injection or generated class
*/
function db($link_id = null)
$link_id
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
{
static $_db;
// Get from new container
if (array_key_exists('__core', $GLOBALS) && $_db === null) {
$_db = $GLOBALS['__core']->getContainer()->get('database');
}
return $_db;
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.