for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the SVN-Buddy library.
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @copyright Alexander Obuhovich <[email protected]>
* @link https://github.com/console-helpers/svn-buddy
*/
namespace ConsoleHelpers\SVNBuddy\Database;
trait TStatementProfiler
{
* Turns the profiler on and off.
* @param boolean $active True to turn on, false to turn off.
* @return void
public function setActive($active)
$this->active = (bool)$active;
active
}
* Is the profiler active?
* @return boolean
public function isActive()
return (bool)$this->active;
* @inheritDoc
public function getLogger()
return $this->logger;
public function getLogLevel()
return $this->logLevel;
public function setLogLevel($logLevel)
$this->logLevel = $logLevel;
logLevel
public function getLogFormat()
return $this->logFormat;
public function setLogFormat($logFormat)
$this->logFormat = $logFormat;
logFormat
public function start($function)
$function
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function start(/** @scrutinizer ignore-unused */ $function)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
public function finish($statement = null, array $values = [])
$statement
public function finish(/** @scrutinizer ignore-unused */ $statement = null, array $values = [])
$values
public function finish($statement = null, /** @scrutinizer ignore-unused */ array $values = [])